【文件属性】:
文件名称:python-opencivicdata-api:过时的
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-11 16:11:02
Python
开放公民数据 API Python 包装器
该模块提供了opencivicdata.package模块,这是一组与 一起使用的绑定。
快速开始
大多数用户会希望使用预先配置的 Sunlight OCD API 客户端,它从与相同的位置读取您的 Sunlight API 密钥。
只需设置SUNLIGHT_API_KEY envvar,或者将您的密钥写出到~/.sunlight.key 。
from opencivicdata . api import SunlightOCDAPI
api = SunlightOCDAPI ()
for person in api . people_by_lat_lon ( 42.35 , - 71.06 ):
print ( person )
可用客户
Open Civic Data API 绑定有 3 个内置客户端,一个没有任何内置配置( o
【文件预览】:
python-opencivicdata-api-master
----eg()
--------people.py(205B)
----opencivicdata()
--------api()
----LICENSE(1KB)
----requirements.txt(9B)
----setup.py(848B)
----.gitignore(43B)
----README.md(3KB)