alegra-api-client: Python package for consuming the Alegra API
Project description
AlegraPy
Este paquete nos permite consumir el API del la plataforma de facturacion Alegra mediante python 🐍
Características
- Permite leer facturas, pagos, productos, contactos
- Permite crear facturas, pagos, productos, contactos
- Permite borrar facturas, pagos, productos, contactos
Instalación y uso
1. Obtener token de acceso
Debes seguir los siguientes pasos para obtener el token de acceso:
- Ingresar a la aplicación de Alegra.
- Haz clic sobre el vínculo "Configuración" en la parte superior derecha de la pantalla de Alegra y haz clic en la sección "API - Integraciones con otros sistemas"
- En la nueva pantalla puedes encontrar el correo con el cual debes acceder al API y el token. Si aún no cuentas con un token puedes generarlo también.
2. Instalación
pip install alegrapy==0.0.1
3. Uso
Un ejemplo para usar este paquete
from alegra import invoices, contacts, session
session.user = "your_email@domnain.com"
session.token = "your_token"
invoice = invoices()
invoice.read(1,fields='pdf')
invoice.list(0,3)
contact = contacts()
contact.read(12)
contact.list(0,2)
Créditos
- Camilo Andrés Rodriguez
referencias
Licencia
Este proyecto está bajo la Licencia [MIT].
¡Puedes personalizarlo según las necesidades específicas de tu proyecto!
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
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 alegrapy-0.0.2.tar.gz.
File metadata
- Download URL: alegrapy-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dda63d9acb98f08823454e7c285d40cd6fba1e76e5fa9a7ab6216b34e389022d
|
|
| MD5 |
ed8875bf82eae4e0fd5cf00bf033741a
|
|
| BLAKE2b-256 |
f7d0b2de5204ae0e80d73258d57646ff4871deb1cbf3c7f5dd4bb57561fcdafe
|
File details
Details for the file alegrapy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: alegrapy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c44e9658a9d5abdadb83f26733b61450a5a5e8f921d5346dee25f13d07f3b0
|
|
| MD5 |
8635348d96350107cfc54752631ba4b5
|
|
| BLAKE2b-256 |
72f82cefc252c95e5e4e4d48988ffc152479f4ddda9659bd1d31c70242617e0d
|