芝加哥经济披露声明(EDS)API客户端
项目描述
电子披露声明(EDS)API客户端
此驱动程序允许其他项目与芝加哥市的EDS系统交互。
设置
依赖项
安装
eds-api-client
可以通过pip安装。
用法
此驱动程序提供三个端点。为了成功实例化EDSAPIClient
类,请提供client_id
、client_secret
和domain
的值。如果没有提供domain
,则默认值为https://apiqa.chicago.gov
此驱动程序提供三个主要功能
- 注册用户
new_user_response = api_client.register_user(registration_data,
app_username=client_username,
app_password=client_password)
- 登录用户
response = api_client._get_access_token(client_username, client_password)
- 提交EDS
response = api_client.submit_eds(submission_data, client_username, client_password)
开发
克隆此存储库,创建虚拟环境,然后安装软件包并测试要求。
git clone https://github.com/datamade/eds-api-client.git
python3 -m venv ~/.virtualenvs/python-eds-client
source ~/.virtualends/python-eds-client
pip install -e .
pip install -r test_requirements.txt
要运行测试
pytest -sv
版权和归属
版权(c)2023 DataMade。在MIT许可证下发布。
项目详情
下载文件
下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。
源分发
此版本没有提供源分发文件。请参阅生成分发存档的教程。
构建的分发版
eds_api_client-0.0.1-py3-none-any.whl (13.0 kB 查看哈希值)
关闭
eds_api_client-0.0.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 6117eaaf3c5a0809f8171bb299306044d98f6ca2641dad76c9aad89ef23dd523 |
|
MD5 | 30f26610fbc6b6e3c74d64f288eb2f25 |
|
BLAKE2b-256 | 6430fa9ef451800eacba89cfacdf3668537391c566eb73dfb1c5739e9e66e165 |