Chorus API Package https://piste.gouv.fr
Project description
CHORUS-API / PISTE.GOUV.FR
chorus-api
Chorus API Package https://piste.gouv.fr
How to install chorus-api
Install
pip install chorus-api
Usage
from chorusapi.client import ChorusAPI
from exemples.env import CLIENT_ID, CLIENT_SECRET
chorus_api = ChorusAPI(
client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
token = chorus_api.auth().get_token()
print(token)
from chorusapi.client import ChorusAPI
from exemples.env import CLIENT_ID, CLIENT_SECRET, TECH_USERNAME, TECH_PASSWORD
chorus_api = ChorusAPI(
client_id=CLIENT_ID,
client_secret=CLIENT_SECRET,
tech_username=TECH_USERNAME,
tech_password=TECH_PASSWORD
)
status_depot = chorus_api.auth().consulter_cr("CPP0XXXXXXXXXXXXX")
print(status_depot.__dict__)
More details in examples folders
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chorus-api-1.0.1.tar.gz
(22.2 kB
view hashes)
Built Distribution
chorus_api-1.0.1-py3-none-any.whl
(12.2 kB
view hashes)
Close
Hashes for chorus_api-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83908b245c97dfac706a95a0252cf4b85454e7d8e1f6fa57f3023ac7308c5148 |
|
MD5 | 448ac197fee1a1e918e770b156b84419 |
|
BLAKE2b-256 | bf747d477d0d94f6de43e9148121707392b30ef27acfab9fa0da191eb306ef0e |