Dominican Republic Taxpayer Dataset and Search Tool
Simple tool to load the dataset of taxpayers of the Dominican Republic. It can be used to correct data on names or IDs registered in some data source, as well as being integrated into a much larger application.
Source: [https://www.dgii.gov.do/app/WebApps/Consultas/RNC/DGII_RNC.zip]
Installation
pip install dgii-rnc
Dependencies
- Polars
- Selenium
How to use
Getting the dataset
from dgii_rnc.dgii_rnc import dgii_handler
import polars as pl
df = dgii_handler.rnc_df()
df.shape
(735018, 7)
df.filter(pl.col("NOMBRE").str.contains("BANCO CENTRAL"))
shape: (4, 7)
+-----------+----------------+----------------+---------------+------------+--------------+--------+
| ID | NOMBRE | NOMBRE_COMERCI | CATEGORIA | FECHA | REGIMEN_PAGO | ESTADO |
| --- | --- | AL | --- | --- | --- | --- |
| str | str | --- | str | str | str | str |
| | | str | | | | |
+==================================================================================================+
| 401007551 | BANCO CENTRAL | null | SERV GRALES | 23/10/1947 | ACTIVO | NORMAL |
| | DE LA | | DE LA ADM | | | |
| | REPUBLICA | | PÚBLICA | | | |
| | DOMINICANA | | | | | |
| 430027715 | ARS PLAN SALUD | ARS BANCO | ADMINISTRACIO | 23/06/2003 | ACTIVO | NORMAL |
| | BANCO CENTRAL | CENTRAL | N DE RIESGOS | | | |
| | | | DE S | | | |
| 401508583 | FONDO DE | null | ADMINISTRACIÓ | 24/02/1999 | ACTIVO | NORMAL |
| | JUBILACIONES Y | | N DE FONDOS | | | |
| | PENSIONES DEL | | DE PE | | | |
| | PERSONAL DEL | | | | | |
| | BANCO CENTRAL | | | | | |
| 430118591 | CLUB EMPLEADOS | CLUB EMPLEADOS | SERV. DE | 08/09/2011 | ACTIVO | NORMAL |
| | DEL BANCO | DEL BANCO | ORGANIZACIÓN, | | | |
| | CENTRAL | CENTRAL | DIRECCI | | | |
+-----------+----------------+----------------+---------------+------------+--------------+--------+
Searches
Local
# 'Csv' search
search_query = dgii_handler.search({'NOMBRE':'BANCO CENTRAL DE LA REPUBLICA'})
print(search_query)
shape: (1, 7)
+-----------+----------------+----------------+---------------+------------+--------------+--------+
| ID | NOMBRE | NOMBRE_COMERCI | CATEGORIA | FECHA | REGIMEN_PAGO | ESTADO |
| --- | --- | AL | --- | --- | --- | --- |
| str | str | --- | str | str | str | str |
| | | str | | | | |
+==================================================================================================+
| 401007551 | BANCO CENTRAL | null | SERV GRALES | 23/10/1947 | ACTIVO | NORMAL |
| | DE LA | | DE LA ADM | | | |
| | REPUBLICA | | PÚBLICA | | | |
| | DOMINICANA | | | | | |
+-----------+----------------+----------------+---------------+------------+--------------+--------+
Web
# 'Web' search
web_search_query = dgii_handler.web_search('401007551')
web_search_query.to_dicts()
[{'Cédula/RNC': '401-00755-1',
'Nombre/Razón Social': 'BANCO CENTRAL DE LA REPUBLICA DOMINICANA',
'Nombre Comercial': ' ',
'Categoría': '',
'Régimen de pagos': 'NORMAL',
'Estado': 'ACTIVO',
'Actividad Economica': 'SERV GRALES DE LA ADM PÚBLICA (INCL. EL DESEMPEÑO DE FUNCIONES EJECUTIVAS Y LEGISLATIVAS DE ADM POR PARTE DE LAS ENTIDADES DE LA A',
'Administracion Local': 'ADM LOCAL GGC'}]
Convert to pandas dataframe
df = df.to_pandas()
Metadata
Release files for dgii-rnc 0.6
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 | |
|---|---|---|---|---|
| dgii_rnc-0.6.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dgii_rnc-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / dgii_rnc-0.6.tar.gz
| Download URL | dgii_rnc-0.6.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43b2cbc5c858f120912bdd7ce55fe90c35950379195229da8795913481531026
|
|
BLAKE2b-256 checksum How to use checksums |
4dd991382cb1a1d91c073f3e58c37ff8f27804acb0bf0ae33201fa3f78066b21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.4
|
Release files / dgii_rnc-0.6-py3-none-any.whl
| Download URL | dgii_rnc-0.6-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c8f2cb927f074ee5ff0c799111f28e74769f2150b3c254a51638e9213ca991e
|
|
BLAKE2b-256 checksum How to use checksums |
5678305992294f70e3144406887e50d3ec0f93f0822d46b9e3338065a4c5d3a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.4
|
Security for dgii-rnc 0.6
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.