launchlibrary.net api的包装器
python-launch-librar的Python项目详细描述
python启动库
用于启动库web api的简单python包装器。也可以异步使用。
可用型号:Agency, AgencyType, Launch, Launch Status, Pad, Location, Rocket, RocketFamily
api的使用很简单。
使用量
可在Read The Docs中找到适当的文档。
要安装,只需使用pip:pip install python-launch-library
# Import the launchlibrary libimportlaunchlibraryasll# Create an instance of the APIapi=ll.Api()# You can also specify api url, api version...# And request the next 5 launches, for example.launches=ll.Launch.fetch(api,next=5)# Any argument after "api" is not constrained (w/ kwargs).# ^ Returns a list of launch objects.# You can fetch the pythonic property names by using launch.param_namesproperties=launches[0].param_names# It's now possible to also use the regular API names as well as pythonic names.vid_urls=launches[0].vid_urlsvid_urls_2=launches[0].vidURLs
待办事项
- [X]整理存储库
- [X]添加异常以处理服务器超时
- [X]处理嵌套模型(即启动模型内的定位模型内的pad模型)
- [X]使用DateTime类处理时间
- [X]正确打包并上传到PYPI
- [X]为API调用添加更多抽象方法(接受建议)
- [X]添加神奇方法比较(接受建议)
- [X]异步操作
- [X]使用getattr为实际的API名称添加别名
- []添加测试
- []您的建议
请随意打开问题和请求!我通常每天检查github。