Chorus API Package https://piste.gouv.fr
Project description
CHORUS API
chorusapi
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.0.tar.gz
(22.1 kB
view details)
Built Distribution
File details
Details for the file chorus-api-1.0.0.tar.gz
.
File metadata
- Download URL: chorus-api-1.0.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3b6cada4df34816d11635778fc1d188c8d3da2eb9f6c6421761a3de0877176 |
|
MD5 | 9edf67cbe5252f1a8e224291db8be301 |
|
BLAKE2b-256 | 3537ba84ddae2136277dec4c08418729fc6ec4fa375a4e997f863777f6d8e565 |
File details
Details for the file chorus_api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: chorus_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.1 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 | dc124db682a8815d10d072403072db763e94513ac1ec73c4afb5e0ad8d132401 |
|
MD5 | 462b67613772f8ba541d75f3a3da5b69 |
|
BLAKE2b-256 | 4ac6a9719f9266dad737c77803b6f8f7a5e2e2807e9fecb1193e405e8c18bc34 |