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 details)
Built Distribution
File details
Details for the file chorus-api-1.0.1.tar.gz
.
File metadata
- Download URL: chorus-api-1.0.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0790aa8e143c63825b9f2b6dc029de3d207b72cb72f37d146d716cf0ebdd2181 |
|
MD5 | cc1e2d161b22a104222e3e29cd7f49cf |
|
BLAKE2b-256 | 982ebf2bb6afc2ac0bc5f10ab955e3874761a6e8aff652aa35eeb5bc6f14da7e |
File details
Details for the file chorus_api-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: chorus_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83908b245c97dfac706a95a0252cf4b85454e7d8e1f6fa57f3023ac7308c5148 |
|
MD5 | 448ac197fee1a1e918e770b156b84419 |
|
BLAKE2b-256 | bf747d477d0d94f6de43e9148121707392b30ef27acfab9fa0da191eb306ef0e |