Client API entreprise
Client pour https://api.gouv.fr/les-api/api-entreprise.
Ajout de la dépendance dans un requirements.txt
Par exemple:
api-entreprise>=31,<32
Uilisation de la cli
Une CLI est fournie avec la bibliothèque
Installation
python -m pipx install api-entreprise
Utilisation
api-entreprise --help
Utilisation d'un ratelimiter client
Il est possible d'utiliser un ratelimiter client basé sur https://pypi.org/project/pyrate-limiter/ en version 2.10+ pour éviter de faire des appels à l'API entreprise trop rapidement et de se faire bloquer. Notez tout de même que ce client reste compatible avec les headers de ratelimit (429).
Depuis la version 31, le ratelimiter client est optionnel. Il est possible de l'installer avec l'extras api-entreprise[ratelimiter].
Metadata
Release files for api-entreprise 31.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| api_entreprise-31.0.1.tar.gz | 23.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| api_entreprise-31.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.6 kB
Release files / api_entreprise-31.0.1.tar.gz
| Download URL | api_entreprise-31.0.1.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edd793e1ef7943c9238b0ca41a59579b497f0abb4f2f68cd556fb8ff455e1009
|
|
BLAKE2b-256 checksum How to use checksums |
06f5509375c60e10e728d7b573829f1d5b8a42b8df44498f7de58f96c8e9e5a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / api_entreprise-31.0.1-py3-none-any.whl
| Download URL | api_entreprise-31.0.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
898b57a55f2aca111cadc3996befb06436d51996d87d7079b3c3d53d0392db54
|
|
BLAKE2b-256 checksum How to use checksums |
c7fc3a0a36603196e7202ad8b2f05942d7dfc5ac9ade96096b9cb8ce4868d754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|