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 32.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| api_entreprise-32.0.0.tar.gz | 26.2 kB | Without provenance | Details for api_entreprise-32.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| api_entreprise-32.0.0-py3-none-any.whl | Python 3 | none | any | Details for api_entreprise-32.0.0-py3-none-any.whl |
Total release size: 41.8 kB
Release files / api_entreprise-32.0.0.tar.gz
| Download URL | api_entreprise-32.0.0.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf65b1d806ac9338942899e63499ddf40f061ce8f988ef34738108670508f225
|
|
BLAKE2b-256 checksum How to use checksums |
a032fea3358fab3faeee55c49121a68c0eb74692cd2d59310e9ef1fc3c9bc8c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / api_entreprise-32.0.0-py3-none-any.whl
| Download URL | api_entreprise-32.0.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d078e7f3620203142ee08ff247e58d4d1a3bcebe0463e5177549a281854f9a7
|
|
BLAKE2b-256 checksum How to use checksums |
9b24a4020045f6b65996a34d7981f57bf8e6e6a5842b571d87f8158c1f856cc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for api-entreprise 32.0.0
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.