Metadata-Version: 2.4
Name: xfep-parser
Version: 0.1.0
Summary: Parser de CDR (Constancia de Recepción) para Facturación Electrónica Perú
Project-URL: Homepage, https://github.com/Xpertik/xfep-parser
Project-URL: Repository, https://github.com/Xpertik/xfep-parser
Project-URL: Issues, https://github.com/Xpertik/xfep-parser/issues
Project-URL: Documentation, https://github.com/Xpertik/xfep-parser#readme
Author-email: Jhonatan Mosquera Tabra <jhonatanmt83@gmail.com>
Maintainer-email: Jhonatan Mosquera Tabra <jhonatanmt83@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: cdr,constancia-recepcion,cpe,facturacion-electronica,parser,peru,sunat,xml
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial :: Accounting
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Markup :: XML
Requires-Python: >=3.13
Requires-Dist: lxml>=5.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# 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

```bash
pip install -e ".[dev]"
```

## Uso

```python
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](LICENSE).
