猜测-rest webservice
guessit-rest的Python项目详细描述
猜测它是一个python库,它从视频文件名中提取尽可能多的信息。
这是GuessIt的rest webservice。
从源安装
$ git clone https://github.com/guessit-io/guessit-rest
$ cd guessit-rest
然后使用pyenv或任何您可能喜欢的virtualenv管理器配置virtualenv。
$ pyenv virtualenv ...
然后在virtualenv中安装依赖项
$ pip install -e .
然后使用主模块运行猜测rest api。
$ python guessitrest
用法
将浏览器连接到http://localhost:5000/?filename=test.avi
API文档可在 Swagger UI
测试服务器在https://api.guessit.io上可用。此服务器的API速率限制很小, 所以如果你真的需要一个猜测rest api,你必须在你自己的服务器上托管它。
usage: guessitrest [-h] [-l LISTENING_ADRESS] [-p LISTENING_PORT] optional arguments: -h, --help show this help message and exit -l LISTENING_ADRESS, --listening-adress LISTENING_ADRESS Listening IP Adress of the HTTP Server. -p LISTENING_PORT, --listening-port LISTENING_PORT Listening TCP Port of the HTTP Server.
酒瓶盛满
此项目当前使用fork of flask-restful。见 flask-restful/flask-restful#645。
作为一种解决方法,我们使用了一个分叉瓶restul模块的副本,使其可以从源代码处获得。
您仍然可以使用原始的flask restful运行rest api,但是在^{tt1}上对多个文件名使用post$ 资源已损坏。
许可证
我猜它是根据LGPLv3 license授权的。