FEL Invoices Downloader for SAT of Guatemala
Downloads received and emited invoices in FEL (Factura En Linea) of Guatemala SAT
How to use it
Installation
pip install sat_gt_fel_invoices_downloader
Example
How to download invoice in PDF
from sat_gt_fel_invoices_downloader import SATDownloader
import datetime
import os.path
from sat_gt_fel_invoices_downloader.models import SatCredentials
sat_credentials = SatCredentials("YOUR AGENCIA DIGITAL USER", "YOUR AGENCIA DIGITAL PASSWORD")
sat = SATDownloader()
sat.setCredentials(credentials=sat_credentials)
invoices = sat.get_invoices(
datetime.date(2021, 10, 1), date_end=datetime.date.today(), received=True
)
dir = os.path.dirname(
'c:\\Users\\my-user\\Downloads\\"'
)
for invoice in invoices:
sat.get_pdf(invoice, save_in_dir=dir)
How to download invoice in XML
from sat_gt_fel_invoices_downloader import SATDownloader
import datetime
import os.path
from sat_gt_fel_invoices_downloader.models import SatCredentials
sat_credentials = SatCredentials("YOUR AGENCIA DIGITAL USER", "YOUR AGENCIA DIGITAL PASSWORD")
sat = SATDownloader()
sat.setCredentials(credentials=sat_credentials)
invoices = sat.get_invoices(
datetime.date(2021, 10, 1), date_end=datetime.date.today(), received=True
)
dir = os.path.dirname(
'c:\\Users\\my-user\\Downloads\\"'
)
for invoice in invoices:
sat.get_xml(invoice, save_in_dir=dir)
How to get invoices in model structure
from sat_gt_fel_invoices_downloader import SATDownloader
import datetime
import os.path
from sat_gt_fel_invoices_downloader.models import SatCredentials
sat_credentials = SatCredentials("YOUR AGENCIA DIGITAL USER", "YOUR AGENCIA DIGITAL PASSWORD")
sat = SATDownloader()
sat.setCredentials(credentials=sat_credentials)
invoices = sat.get_invoices(
datetime.date(2021, 10, 1), date_end=datetime.date.today(), received=True
)
dir = os.path.dirname(
'c:\\Users\\my-user\\Downloads\\"'
)
for invoice in invoices:
print(sat.get_model(invoice))
Metadata
Release files for sat-gt-fel-invoices-downloader 0.5.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sat_gt_fel_invoices_downloader-0.5.13.tar.gz | 20.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sat_gt_fel_invoices_downloader-0.5.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.3 kB
Release files / sat_gt_fel_invoices_downloader-0.5.13.tar.gz
| Download URL | sat_gt_fel_invoices_downloader-0.5.13.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
651ad6bd7320306a95ca47378c5a3cd8437649afc4b81bbcb6118097680671da
|
|
BLAKE2b-256 checksum How to use checksums |
c8fcb97285def6c3bbfd6d518df66824bfae846858a5b3c2ebb7d606bcf75e51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / sat_gt_fel_invoices_downloader-0.5.13-py3-none-any.whl
| Download URL | sat_gt_fel_invoices_downloader-0.5.13-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82775b58f4b72aa7b30d4d073bd867dbde6ede1ea6e0e6a92deb0648a2151c0c
|
|
BLAKE2b-256 checksum How to use checksums |
19534b61adc94b8f83530e1f1acca37d950df98272bebe24d0ffd357aeb2cf14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for sat-gt-fel-invoices-downloader 0.5.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.