Skip to main content

cnpjinfo

cnpjinfo is a library for obtaining cnpj information via scraping from the receitaws website.

Features

  • CNPJ information via receitaws website.

Installation

  • Run pip install cnpjinfo

Exxemple

from cnpjinfo import cnpjinfo

# For one CNPJ
info = cnpjinfo('12345678901234')
nome = info.get('nome')
tel = info.get('telefone')
print (f'Nome: {nome}, Tel: {tel}'))

# For CNPJ list
cnpj_list = [ "05720854000166", "00623904000173", "15436940000103" ]
result = cnpjinfo_list(cnpj_list)
for cnpj in result:
    info = cnpjinfo('12345678901234')
    nome = info.get('nome')
    tel = info.get('telefone')
    print (f'Nome: {nome}, Tel: {tel}'))

console output

foo@bar:~$ ./myscript.py
Nome: COMPANY NAME., Tel: (11) 1111-1111
foo@bar:~$ 

Upgrade

- Run `pip install cnpjinfo --upgrade`

Metadata

Release files for cnpjinfo 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cnpjinfo 0.0.3
File Size Uploaded Provenance Actions
cnpjinfo-0.0.3.tar.gz 3.3 kB Without provenance Details for cnpjinfo-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cnpjinfo 0.0.3
File Interpreter ABI Platform Actions
cnpjinfo-0.0.3-py3-none-any.whl Python 3 none any Details for cnpjinfo-0.0.3-py3-none-any.whl

Total release size: 6.8 kB

Release files / cnpjinfo-0.0.3.tar.gz

Download URL cnpjinfo-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0db2d6af716b8cbb00a5514ec6f5a7acd453cefc8a93451316ee94e5b455d8d9
BLAKE2b-256 checksum
How to use checksums
1cd001edcf4ca5bed0e9f68664cc82a4f402c5c6197a8c49983b2980d1fe9f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / cnpjinfo-0.0.3-py3-none-any.whl

Download URL cnpjinfo-0.0.3-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecb7ae45ad0ae34b38b07ed54af314aa67c4274f6e8b30dd18e4d523066df38a
BLAKE2b-256 checksum
How to use checksums
dc3d0f17f890574cd63405e3b97b21ce51a52ae8914d7b83464abc5000223750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for cnpjinfo 0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page