Parser de CDR (Constancia de Recepción) para Facturación Electrónica Perú
Project description
xfep-parser
Parser de CDR (Constancia de Recepción) para Facturación Electrónica Perú.
Extrae y parsea la respuesta ApplicationResponse de SUNAT desde archivos ZIP con XML UBL 2.1.
Instalación
pip install -e ".[dev]"
Uso
from xfep.parser import parse_cdr, CdrStatus
response = parse_cdr(cdr_zip_bytes)
print(response.status) # CdrStatus.ACEPTADO
print(response.code) # "0"
print(response.description) # "La Factura..."
print(response.notes) # [CdrNote(code="4252", text="...")]
Licencia
Apache License 2.0 — ver LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xfep_parser-0.1.0.tar.gz
(18.1 kB
view details)
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 xfep_parser-0.1.0.tar.gz.
File metadata
- Download URL: xfep_parser-0.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d590a147079dba4abe377bec5f0d77c6fdd4b80e4582899909f712e2544437dc
|
|
| MD5 |
aa4bd143430c8fa321ee002fb07d014f
|
|
| BLAKE2b-256 |
36bb0f1b1865eb2e964d5078c8743cdfb84c73f6e288d5b200f87f1fe891dfad
|
File details
Details for the file xfep_parser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xfep_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b253b4ace8907392f5dc1feebd184f0c4a98191d71799f1ca9ba31add386002
|
|
| MD5 |
8ab4e2b17b0f808eb09295ecbf150b52
|
|
| BLAKE2b-256 |
4c27414230de956b4178b811fde939ca7e7ed9cde55803deceeedc47d4941db3
|