Electronic Disclosure Statement (EDS) API Client
This driver allows other projects to interact with the City of Chicago's EDS system.
Setup
Dependencies
Installation
eds-api-client is installable via pip.
Usage
This driver provides three endpoints. In order to succesfully instantiate the EDSAPIClient class, provide values for client_id, client_secret, and domain. If no domain is provided, the default value is https://apiqa.chicago.gov
This driver provides three main functions:
- Register a user
new_user_response = api_client.register_user(registration_data,
app_username=client_username,
app_password=client_password)
- Log in a user
response = api_client._get_access_token(client_username, client_password)
- Submit an EDS
response = api_client.submit_eds(submission_data, client_username, client_password)
Development
Clone this repository, create a virtual environment, then install the package and test requirements.
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
To run the tests:
pytest -sv
Copyright and attribution
Copyright (c) 2023 DataMade. Released under the MIT License.
Metadata
Release files for eds-api-client 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eds_api_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for eds_api_client-0.0.1-py3-none-any.whl |
Release files / eds_api_client-0.0.1-py3-none-any.whl
| Download URL | eds_api_client-0.0.1-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6117eaaf3c5a0809f8171bb299306044d98f6ca2641dad76c9aad89ef23dd523
|
|
BLAKE2b-256 checksum How to use checksums |
6430fa9ef451800eacba89cfacdf3668537391c566eb73dfb1c5739e9e66e165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for eds-api-client 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.