electricore-client
Client Python léger vers l'API facturiste electricore.
Dépendances de base : httpx + pydantic uniquement — pas de polars, duckdb ni
fastapi. Pensé pour être consommé par souscriptions_odoo (Odoo 19) et tout
intégrateur qui n'a pas besoin de tirer le moteur entier.
Lecture seule sur electricore (« Odoo tire d'electricore », ADR-0027/0012).
Installation
pip install electricore-client # base : httpx + pydantic
pip install "electricore-client[arrow]" # + client Arrow (DataFrames polars)
Usage
from electricore_client import ElectricoreClient
client = ElectricoreClient(url="https://electricore.example", api_key="…")
# Méta-périodes mensuelles (flux JSONL typé, sans pagination)
with client.meta_periodes(mois="2026-05-01") as stream:
print(stream.contract_version) # version de contrat (en-tête)
for periode in stream: # itère des PeriodeMeta typés
...
# Chronologie d'un point ou d'un contrat (union discriminée)
with client.chronologie(pdl="12345678901234") as stream:
lignes = stream.collect()
# Calculateur TURPE variable (POST RPC, pas un stream)
resultats = client.turpe_variable([...]) # résultats indexés par id opaque
# Prestations F15 à refacturer (pull-tout, dédup par `reference` côté consommateur)
with client.prestations() as stream:
for prestation in stream: # itère des PrestationF15 typés
...
# Résolution RSC : lot d'id_Affaire (X12) → ref_situation_contractuelle (POST RPC)
resultats = client.resoudre_rsc(["id_affaire_1", "id_affaire_2"])
par_id = {r.id_affaire: r for r in resultats} # chaque résultat porte ref ou error
Le client Arrow historique (flux/releves/facturation/accise/cta → pl.DataFrame)
vit dans electricore_client.arrow, derrière l'extra [arrow].
Conception
Voir ADR-0043.
Metadata
Release files for electricore-client 0.5.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 |
|---|---|---|---|---|
| electricore_client-0.5.0.tar.gz | 30.2 kB | With provenance | Details for electricore_client-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| electricore_client-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for electricore_client-0.5.0-py3-none-any.whl |
Total release size: 55.1 kB
Release files / electricore_client-0.5.0.tar.gz
| Download URL | electricore_client-0.5.0.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8a4f21bc25b870c864765b0289eb3da9360bf069352ca7d49f468a44f617bf4
|
|
BLAKE2b-256 checksum How to use checksums |
78f86ee4a2a3cf7973de6e0d0574f7c64ca8f37ebb937c3cb1fe08bfcdf2c34f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logRelease files / electricore_client-0.5.0-py3-none-any.whl
| Download URL | electricore_client-0.5.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
047d74b73eb1f4e062c7d36a66541428a5b76696ebd395efc19b7c7cdf5e75ba
|
|
BLAKE2b-256 checksum How to use checksums |
e93fcf5ff9eead97988f383fe44df803156bd722e7b0babb3ff687900c96796f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logSecurity for electricore-client 0.5.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for electricore_client-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logA 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.