Cliente API para Colppy (NO OFICIAL)
Project description
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
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 colppy_api-1.2.2.tar.gz.
File metadata
- Download URL: colppy_api-1.2.2.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d44911327e8c37c2c5f19d6c28a550ec040e4a62da5fc777fcc62f1799dec7
|
|
| MD5 |
6cadae27b2d9c375fd73a489c2391d42
|
|
| BLAKE2b-256 |
b20002bfb5d0e40852d12e5644eee751239daad4a30dd0e0e87210daab60a4e9
|
File details
Details for the file colppy_api-1.2.2-py3-none-any.whl.
File metadata
- Download URL: colppy_api-1.2.2-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38b952b9ab6f1fca79ff2f4f34f06a6d02cc6978300d8e046ed1ada8c6b3ef12
|
|
| MD5 |
789d97c6440946c6b604052701dc1437
|
|
| BLAKE2b-256 |
bec36a50952afaffe50b8cda65938eb2b3923ff18cbf7a9a42d7b66bdba76785
|