用于aws部署的bootdev命令
bootdev的Python项目详细描述
#bootdev
命令行工具,用于部署具有chef devops管理功能的自动缩放体系结构。
安装它。
*签出源代码:`git clone git://github.com/echo nest/pyechonest.git`并自行安装。
入门
*安装pyechonest
**获取api密钥**-要使用echo嵌套api,您需要echo嵌套api密钥。您可以在[developer.echo nest.com](http://developer.echonest.com)上免费获得一个,
**设置api**键-您可以通过以下两种方法之一:
*将名为“echo嵌套api”的环境变量设置为api键
*在python脚本的开头包含这段代码:
``python
config
config.echo嵌套api key=“your api key”
````
*查看下面的[文档](http://echo nest.github.com/pyechonest/)和示例。
*
查找与“比基尼杀手”类似的艺术家:
``python
来自pyechonest import artist
bk=artist.artist('bikini kill')
打印“类似于以下艺术家的艺术家:”%(bk.name,)
对于bk中的类似艺术家:打印“\t%s”%(类似的艺术家名称,)
````
从pyech嵌套导入艺术家的pyechonest-import-artist
weezer-results=artist.search(name='weezer')
weezer=weezer-weezer-results[0]
weezer-blogs=weezer.blog
````````````
`````````
`````从pyechonest导入艺术家的python
pyechonest-weezer.search(name='weezer’)
weezer=weezer-weezer-weezer-weezer-results[0]
巢导入艺术家
a=artist.artist('lady gaga'lady gaga')
>打印a.id
`````````
pyechonest导入艺人
hotttt-artist.top-hotttt():
print hotttt-artist.name,hotttt-artist.hotttnesss
````
br/>搜索歌曲:
````python
``pyechonest导入歌曲
rkp-results=song.search(artist'radiohead'radiohead,title'karma-police')
karma-police=rkp-results[0]
打印karma-carma-police.pu-carma-police.artist-carma-police.artist-pu-pu-plast-是的Karma_police.audio_summary['tempo','duration:',Karma_police.audio_summary['duration']
``````
从pyechonest import song
s s_results=song.search(artist='the national',title='slow show',bucket=['id:7digital us','tracks'],limit=true)
slow_show=ss_results[0]
ss_tracks=slow_show.get_tracks('7digital-us')
print ss_tracks[0].get('preview_url')
`````
-![alt text](http://i.imgur.com/wwlyo.gif“沮丧的猫不敢相信这是他第12次点击自动链接的readme.md url”)
命令行工具,用于部署具有chef devops管理功能的自动缩放体系结构。
安装它。
*签出源代码:`git clone git://github.com/echo nest/pyechonest.git`并自行安装。
入门
*安装pyechonest
**获取api密钥**-要使用echo嵌套api,您需要echo嵌套api密钥。您可以在[developer.echo nest.com](http://developer.echonest.com)上免费获得一个,
**设置api**键-您可以通过以下两种方法之一:
*将名为“echo嵌套api”的环境变量设置为api键
*在python脚本的开头包含这段代码:
``python
config
config.echo嵌套api key=“your api key”
````
*查看下面的[文档](http://echo nest.github.com/pyechonest/)和示例。
*
查找与“比基尼杀手”类似的艺术家:
``python
来自pyechonest import artist
bk=artist.artist('bikini kill')
打印“类似于以下艺术家的艺术家:”%(bk.name,)
对于bk中的类似艺术家:打印“\t%s”%(类似的艺术家名称,)
````
从pyech嵌套导入艺术家的pyechonest-import-artist
weezer-results=artist.search(name='weezer')
weezer=weezer-weezer-results[0]
weezer-blogs=weezer.blog
````````````
`````````
`````从pyechonest导入艺术家的python
pyechonest-weezer.search(name='weezer’)
weezer=weezer-weezer-weezer-weezer-results[0]
巢导入艺术家
a=artist.artist('lady gaga'lady gaga')
>打印a.id
`````````
pyechonest导入艺人
hotttt-artist.top-hotttt():
print hotttt-artist.name,hotttt-artist.hotttnesss
````
br/>搜索歌曲:
````python
``pyechonest导入歌曲
rkp-results=song.search(artist'radiohead'radiohead,title'karma-police')
karma-police=rkp-results[0]
打印karma-carma-police.pu-carma-police.artist-carma-police.artist-pu-pu-plast-是的Karma_police.audio_summary['tempo','duration:',Karma_police.audio_summary['duration']
``````
从pyechonest import song
s s_results=song.search(artist='the national',title='slow show',bucket=['id:7digital us','tracks'],limit=true)
slow_show=ss_results[0]
ss_tracks=slow_show.get_tracks('7digital-us')
print ss_tracks[0].get('preview_url')
`````
-![alt text](http://i.imgur.com/wwlyo.gif“沮丧的猫不敢相信这是他第12次点击自动链接的readme.md url”)