hanhuoer / Musicoo

🎶 基于 Python 的音乐服务

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Musicoo

license python stars issues forks

                                                                                                           
              ____                                                                                         
            ,'  , `.                                                                                       
         ,-+-,.' _ |                            ,--,                               .--,  .--,  .--,        
      ,-+-. ;   , ||         ,--,             ,--.'|               ,---.     ,---. |\  \ |\  \ |\  \       
     ,--.'|'   |  ;|       ,'_ /|   .--.--.   |  |,               '   ,'\   '   ,'\` \  `` \  `` \  `      
    |   |  ,', |  ':  .--. |  | :  /  /    '  `--'_       ,---.  /   /   | /   /   |\ \  \\ \  \\ \  \     
    |   | /  | |  ||,'_ /| :  . | |  :  /`./  ,' ,'|     /     \.   ; ,. :.   ; ,. : , \  \, \  \, \  \    
    '   | :  | :  |,|  ' | |  . . |  :  ;_    '  | |    /    / ''   | |: :'   | |: : / /` // /` // /` /    
    ;   . |  ; |--' |  | ' |  | |  \  \    `. |  | :   .    ' / '   | .; :'   | .; :` /  /` /  /` /  /     
    |   : |  | ,    :  | : ;  ; |   `----.   \'  : |__ '   ; :__|   :    ||   :    | .  /| .  /| .  /      
    |   : '  |/     '  :  `--'   \ /  /`--'  /|  | '.'|'   | '.'|\   \  /  \   \  /./__/ ./__/ ./__/       
    ;   | |`-'      :  ,      .-./'--'.     / ;  :    ;|   :    : `----'    `----'                         
    |   ;/           `--`----'      `--'---'  |  ,   /  \   \  /                                           
    '---'                                      ---`-'    `----'                                            

开放接口信息请查看 Wiki

安装

1.克隆项目

> git clone https://github.com/hanhuoer/Musicoo.git

2.安装依赖

> pip install -r requirements.txt

使用

1.修改配置 config.Setting

# config/Setting.py

# 配置 Web 服务
WEB_SERVER = {
    "HOST": "127.0.0.1",
    "PORT": 8888
}

# 以上配置在项目启动后的访问地址为 http://127.0.0.1:8888

2.启动项目

进入项目 start 目录

# 启动项目之前确保项目依赖全部安装

# 启动服务
> python Musicoo.py run
# 启动时指定 host, port 将使用 setting 中的配置
> python Musicoo.py run --host 0.0.0.0
# 启动时指定 port, host 将使用 setting 中的配置
> python Musicoo.py run --port 8888
# 启动时指定 host port
> python Musicoo.py run --host 0.0.0.0 --port 8888

更新日志

2019-12-02 版本 1.0.1 添加日志、异常处理和项目启动可选参数

2019-12-02 版本 1.0.0 首次发布

开源协议

GPL © hanhuoer

About

🎶 基于 Python 的音乐服务

License:GNU General Public License v3.0


Languages

Language:Python 100.0%