nap:请求HTTP API的便捷方法

时间:2021-05-14 13:01:13
【文件属性】:
文件名称:nap:请求HTTP API的便捷方法
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-14 13:01:13
python api http requests http-api 小憩 Nap提供了请求HTTP API的便捷方法。 在对一些HTTP API包装器类进行编码之后,我决定对Nap进行编码。 它只是围绕一个小包装( 〜150 loc )。 Requests是一个出色的HTTP库,它支持在当今的网络中完成工作所需的一切。 例子 from nap . url import Url api = Url ( 'https://api.github.com/' ) # GET https://api.github.com/users api . get ( 'users' ) users = api . join ( 'users' ) # GET https://api.github.com/users/kimmobrunfeldt users . get ( 'kimmobrunfeldt' ) # Another way to make the same
【文件预览】:
nap-master
----MANIFEST.in(160B)
----scripts()
--------make-release.py(4KB)
----requirements-dev.txt(253B)
----requirements.txt(23B)
----.travis.yml(831B)
----tox.ini(381B)
----LICENSE(1KB)
----test()
--------test_nap_extend_behavior.py(2KB)
--------test_nap.py(5KB)
--------__init__.py(0B)
----setup.cfg(21B)
----setup.py(2KB)
----README.md(4KB)
----Makefile(2KB)
----docs()
--------nap-api.md(4KB)
--------readme.md(4KB)
----nap()
--------__init__.py(165B)
--------url.py(5KB)
----.editorconfig(586B)
----.gitignore(372B)

网友评论