https://github.com/jsonfm/pysri
Facturación electrónica del SRI con Python
https://github.com/jsonfm/pysri
ecuador facturacion-electronica invoice python sri
Last synced: 3 months ago
JSON representation
Facturación electrónica del SRI con Python
- Host: GitHub
- URL: https://github.com/jsonfm/pysri
- Owner: jsonfm
- Created: 2024-04-08T04:34:50.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-13T04:38:42.000Z (about 1 year ago)
- Last Synced: 2025-01-30T12:30:13.863Z (5 months ago)
- Topics: ecuador, facturacion-electronica, invoice, python, sri
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### PySRI
Python + SRI e-invoicing
### Sign XML Invoice and Authorize
```python
from pysri import sign_invoice_and_authorize, AmbienteTypewith open("/signature.p12", mode="rb") as file:
p12 = file.read() # bytesinvoice_xml = """some important data"""
response = sign_invoice_and_authorize(
p12,
"password",
invoice_xml,
AmbienteType.PRUEBAS,
validate_input=True
)
```