Helpers for eInvoicing and eReporting in France
Project description
This python library provides helper methods for eInvoicing and eReporting in France. This lib is used by the Odoo community module l10n_fr_einvoicing available on akretion/fr-einvoicing, but we would be very happy if other software use it too. The primary goal of this lib is to mutualize code between different versions of the module for different versions of Odoo.
This lib implements the AFNOR XP Z12-013 standard for the APIs of the Accredited Platforms (Plateformes Agréées i.e. PA in French). It will also contain code to generate and parse CDAR XML files to manage the life-cycle of e-invoices.
This lib is currently under development. Consider it as alpha software: method names and arguments can change at any time. Breaking changes will slow down when we reach beta status and it will end when we reach production status.
The AFNOR APIs are fully tested with SUPER PDP, but the code should work with any other AFNOR-compliant accredited platform.
Licence
This library is published under the GNU Lesser General Public License v2.1 or, at your option, any later version.
Contributors
- Alexis de Lattre alexis.delattre@akretion.com
Changelog
-
version 0.10 dated 2026-06-11
- _parse_flow_dict(): when AP returns 'Pending', the lib will return 'sent'
-
version 0.9 dated 2026-06-09
- Add support for MDT-129 in parse_cdar() and parse_cdar_raw()
- in generate_cdar(), schemeID attributes are not hard-coded any more. Support for several SchemeIDs for GlobalID nodes
-
version 0.8 dated 2026-06-09
- search_flows_parsed() now accepts updated_after as datetime object (timezone aware or timezone naive as UTC)
-
version 0.7 dated 2026-05-28 (OCA code sprint in Santander)
- Restore method get_session()
- Add two new methods authorization_code_first_token() and get_authorization_url()
- Code reformatting for better readability
-
version 0.6 dated 2026-05-21
- Remove method get_session()
- Method search_flows_parsed() accepts flow_direction argument with only lowercase letters
- Methods search_flow_parsed(), get_flow_metadata_parsed() and send_flow_parsed() returnd an additionnal key flow_direction in the flow with value in lowercase letters.
-
version 0.5 dated 2026-05-15
- Add support for MDT-96 in CDAR XML for generation and parsing
- rename keys doc_status and doc_characteristics to their designation in the standard (MDG-37 and MDG-43)
-
version 0.4 dated 2026-05-14
- Add methods to generate and parse CDAR XML files for life cycle
-
version 0.3 dated 2026-04-30
- Add methods send_flow_parsed(), search_flows_parsed() and get_flow_metadata_parsed()
- Add multi-page support in search_flows()
-
version 0.2 dated 2026-04-23
- Fixes in re-formatting of directory lines for B2G when SIRET has specific global properties
-
version 0.1 dated 2026-04-22
- initial release
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfrctc-0.10.tar.gz.
File metadata
- Download URL: pyfrctc-0.10.tar.gz
- Upload date:
- Size: 63.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13dd50eb69b88e7f39b5e4ea65c6a8e912042607256de29db0a7a395dcfdf1be
|
|
| MD5 |
71983e8afd064e089fe44b4f97732e54
|
|
| BLAKE2b-256 |
c7b62aef52bf7a19ae2327a2690e2a4fe5b90ef11ebabd9247a387fab46eb58f
|
Provenance
The following attestation bundles were made for pyfrctc-0.10.tar.gz:
Publisher:
release.yml on akretion/pyfrctc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfrctc-0.10.tar.gz -
Subject digest:
13dd50eb69b88e7f39b5e4ea65c6a8e912042607256de29db0a7a395dcfdf1be - Sigstore transparency entry: 1790583966
- Sigstore integration time:
-
Permalink:
akretion/pyfrctc@17f8ff17d2975adc60bca937cb64fb1f539ab97a -
Branch / Tag:
refs/tags/0.10 - Owner: https://github.com/akretion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@17f8ff17d2975adc60bca937cb64fb1f539ab97a -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyfrctc-0.10-py3-none-any.whl.
File metadata
- Download URL: pyfrctc-0.10-py3-none-any.whl
- Upload date:
- Size: 68.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
158ba79e2799fae633ab66a85ae7940def5046cf2358b810f182676d626ae460
|
|
| MD5 |
0de442f3d17e520126b32b850213d7a9
|
|
| BLAKE2b-256 |
b4e21e45967ccfde45b9459875fa2456f8a1330d2dafd84654b3d9e36a419464
|
Provenance
The following attestation bundles were made for pyfrctc-0.10-py3-none-any.whl:
Publisher:
release.yml on akretion/pyfrctc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfrctc-0.10-py3-none-any.whl -
Subject digest:
158ba79e2799fae633ab66a85ae7940def5046cf2358b810f182676d626ae460 - Sigstore transparency entry: 1790584031
- Sigstore integration time:
-
Permalink:
akretion/pyfrctc@17f8ff17d2975adc60bca937cb64fb1f539ab97a -
Branch / Tag:
refs/tags/0.10 - Owner: https://github.com/akretion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@17f8ff17d2975adc60bca937cb64fb1f539ab97a -
Trigger Event:
release
-
Statement type: