从国家气象局下载观测、预警和咨询数据
nws-wwa的Python项目详细描述
从国家气象局下载观测、警告和咨询数据
安装
$ pipenv install nws-wwa
命令行用法
^{pr2}$从国家气象局下载数据。在
$ nwswwa all $ nwswwa hazards $ nwswwa warnings
Python用法
导入库。在
>>> import nws_wwa >>> data = nws_wwa.all() >>> data = nws_wwa.hazards() >>> data = nws_wwa.warnings()
贡献
安装用于开发的依赖项。在
$ pipenv install --dev
运行测试:
$ make test
将新版本发布到PyPI。在
$ make ship
开发CLI
命令行界面是使用Click和setuptools实现的。要在本地安装它以便在虚拟环境中进行开发,请运行以下安装命令:prescribed by the Click documentation。在
$ pip install --editable .
- 项目
标签: