CLI y biblioteca Python de cuitonline.com. No oficial.
Project description
cuitonline es cliente no oficial para el sitio cuitonline.com basado en scraping que obtiene . Podés usarla tanto como una CLI (interfaz de línea de comandos) o como una biblioteca en Python.
Permite realizar busquedas (por ahora físicas) por nombre, CUIT, DNI, etc. y obtener información básica estructurada como dirección, localidad, provincia, etc. La linea de comando devuelve los resultados como json a la salida estándar, por lo que es fácil de integrar con otras herramientas.
Uso como CLI
Para un uso rápido ejecutalo con uvx (comando que es parte de uv):
uvx cuitonline "criterio de búsqueda" [--pagina <número_de_página>]
Si quieres instalar el CLI permantentemente:
uv tool install cuitonline
y luego usa directamente cuitonline desde tu terminal.
Por supuesto, puedes usar pipx, pip o cualquier otro gestor de paquetes python.
Ejemplos
Para filtrar los resultados, puedes usar jq. Por ejemplo podés encontrar a Dios en Rosario:
cuitonline "lionel messi" | jq '.[] | select(.localidad | contains("Rosario"))'
Uso como biblioteca
Puedes agregar cuitonline como depedendencia de tu proyecto Python y realizar búsquedas y procesar los datos obtenidos.
-
search(criterio: str, pagina: int = 1) -> List[Persona]- Realiza una búsqueda en CUIT Online.
- Parámetros:
criterio: Texto a buscar (nombre, CUIT, DNI, etc.).pagina: Número de página para buscar (por defecto, 1).
- Retorno: Lista de objetos
Persona.
-
PersonaEs el modelo Pydantic para representar información de una persona.- Atributos principales:
nombre: Nombre completo.cuit: Número de CUIT.tipo_persona: Tipo de persona (física o jurídica).genero,direccion,provincia,localidad,nacionalidad,monotributo,empleador: son detalles adicionales que se cargan (haciendo un request extra) bajo demanda.
- Atributos principales:
import cuitonline
# Buscar personas con un criterio específico
personas = cuitonline.search("Gaitan martin emilio", pagina=1)
# Imprimir información básica
for persona in personas:
print(f"Nombre: {persona.nombre}, CUIT: {persona.cuit}")
# Acceder a detalles adicionales
for persona in personas:
print(f"Dirección: {persona.direccion}, Género: {persona.genero}")
Contribuciones
¡Las contribuciones son bienvenidas! Si encuentras problemas o quieres agregar funcionalidades, abre un issue o un pull request en el repositorio.
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 cuitonline-0.1.tar.gz.
File metadata
- Download URL: cuitonline-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f15504eb8b7ef744c339f1d2d0babd2580aef189ec4e5c395e21196dc6ab68b
|
|
| MD5 |
9fb5bf018e6412c70f52d991c7227af2
|
|
| BLAKE2b-256 |
bb7786f8d788e3a42ecf48fce19edf93c79708512c2878a7eeda4e1ce0626278
|
Provenance
The following attestation bundles were made for cuitonline-0.1.tar.gz:
Publisher:
cd.yml on mgaitan/cuitonline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuitonline-0.1.tar.gz -
Subject digest:
3f15504eb8b7ef744c339f1d2d0babd2580aef189ec4e5c395e21196dc6ab68b - Sigstore transparency entry: 164813860
- Sigstore integration time:
-
Permalink:
mgaitan/cuitonline@aa6b536378f6285bbebfc8e5423697b65fc57ed9 -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/mgaitan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@aa6b536378f6285bbebfc8e5423697b65fc57ed9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cuitonline-0.1-py3-none-any.whl.
File metadata
- Download URL: cuitonline-0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c48f26da76f5efd7876bcd4dbc9706a0faaf92d0bdda969b6b4f6fe7ed0b6644
|
|
| MD5 |
24188afb54c1780fd4deb9c67088f2e2
|
|
| BLAKE2b-256 |
fa2f4b57e00cb2a230cef68dcf1beac4a29d55871ccbb1c57b7fe69666d19325
|
Provenance
The following attestation bundles were made for cuitonline-0.1-py3-none-any.whl:
Publisher:
cd.yml on mgaitan/cuitonline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuitonline-0.1-py3-none-any.whl -
Subject digest:
c48f26da76f5efd7876bcd4dbc9706a0faaf92d0bdda969b6b4f6fe7ed0b6644 - Sigstore transparency entry: 164813861
- Sigstore integration time:
-
Permalink:
mgaitan/cuitonline@aa6b536378f6285bbebfc8e5423697b65fc57ed9 -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/mgaitan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@aa6b536378f6285bbebfc8e5423697b65fc57ed9 -
Trigger Event:
push
-
Statement type: