Colppy API Client
Cliente Python para la API de Colppy, sistema de gestión contable y financiera.
Instalación
pip install colppy-api
Configuración
El paquete incluye una CLI para facilitar la configuración inicial:
# Crear archivo de configuración interactivamente
colppy-api init
O puedes crear manualmente un archivo config.json en el directorio raíz de tu proyecto:
{
"ColppyAPI": {
"COLPPY_API_URI": "https://login.colppy.com/lib/frontera2/service.php",
"COLPPY_AUTH_USER": "tu_usuario",
"COLPPY_AUTH_PASSWORD": "tu_password",
"COLPPY_PARAMS_USER": "tu_usuario_params",
"COLPPY_PARAMS_PASSWORD": "tu_password_params"
},
"LogLevel": {
"LOG_LEVEL": "DEBUG"
}
}
Uso Básico
from colppy import ColppyAPIClient
async def main():
# Inicializar cliente
client = ColppyAPIClient()
await client.get_token()
# Ejemplo: Obtener empresas
empresas = await client.get_empresas()
await client.logout()
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Funcionalidades Principales
- Gestión de empresas
- Gestión de clientes
- Gestión de proveedores
- Comprobantes de compra y venta
- Movimientos contables
- Manejo de sesiones
Tipos de Comprobantes
| ID | Código | Descripción |
|---|---|---|
| 1 | FAC | Factura de Compra |
| 2 | NCC | Nota de Crédito Compra |
| 3 | NDC | Nota de Débito Compra |
| 4 | FAV | Factura de Venta |
| 5 | NCV | Nota de Crédito Venta |
| 6 | NDV | Nota de Débito Venta |
| 7 | FCC | Factura Compra Contado |
| 8 | FVC | Factura Venta Contado |
Desarrollo
Para contribuir al desarrollo:
# Clonar repositorio
git clone https://github.com/groovinads/colppy-api.git
# Crear entorno virtual
python -m venv .venv
# Activar entorno virtual
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windows
# Instalar en modo desarrollo
pip install -e .
Scripts de Desarrollo
# Publicar en PyPI
python scripts/run.py publish
# Limpiar caché
python scripts/run.py clean-cache
# Limpiar proyecto
python scripts/run.py clean
# Ejecutar todo
python scripts/run.py all
Comandos CLI
# Inicializar configuración
colppy-api init
# Ver ayuda
colppy-api --help
Licencia
MIT License
Metadata
Release files for colppy-api 1.2.2
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 | Actions |
|---|---|---|---|---|
| colppy_api-1.2.2.tar.gz | 33.3 kB | Without provenance | Details for colppy_api-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colppy_api-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for colppy_api-1.2.2-py3-none-any.whl |
Total release size: 64.3 kB
Release files / colppy_api-1.2.2.tar.gz
| Download URL | colppy_api-1.2.2.tar.gz |
|---|---|
| Size | 33.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2d44911327e8c37c2c5f19d6c28a550ec040e4a62da5fc777fcc62f1799dec7
|
|
BLAKE2b-256 checksum How to use checksums |
b20002bfb5d0e40852d12e5644eee751239daad4a30dd0e0e87210daab60a4e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / colppy_api-1.2.2-py3-none-any.whl
| Download URL | colppy_api-1.2.2-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38b952b9ab6f1fca79ff2f4f34f06a6d02cc6978300d8e046ed1ada8c6b3ef12
|
|
BLAKE2b-256 checksum How to use checksums |
bec36a50952afaffe50b8cda65938eb2b3923ff18cbf7a9a42d7b66bdba76785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for colppy-api 1.2.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.