An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

### PySRI

Python + SRI e-invoicing

### Sign XML Invoice and Authorize

```python
from pysri import sign_invoice_and_authorize, AmbienteType

with open("/signature.p12", mode="rb") as file:
p12 = file.read() # bytes

invoice_xml = """some important data"""
response = sign_invoice_and_authorize(
p12,
"password",
invoice_xml,
AmbienteType.PRUEBAS,
validate_input=True
)
```