https://github.com/leogregianin/nuvemfiscal-python
SDK para Python para NuvemFiscal https://nuvemfiscal.com.br
https://github.com/leogregianin/nuvemfiscal-python
Last synced: 6 months ago
JSON representation
SDK para Python para NuvemFiscal https://nuvemfiscal.com.br
- Host: GitHub
- URL: https://github.com/leogregianin/nuvemfiscal-python
- Owner: leogregianin
- License: mit
- Created: 2022-08-19T23:16:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T07:31:06.000Z (over 2 years ago)
- Last Synced: 2024-11-07T09:52:59.595Z (7 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuvemfiscal
SDK para Python para NuvemFiscal https://nuvemfiscal.com.br## Configuração
* Crie o arquivo `.env` com base no arquivo `.env.example`
* Altere as credenciais de acesso CLIENT_ID e CLIENT_SECRET fornecidas pela NuvemFiscal## Instalação
* Instale o Python 3.7 ou superior
* Instale o gerenciador de pacotes Poetry
* `pip install poetry`
* Instale as dependências do projeto:
* `poetry install`## Utilização
* Buscar informações de CNPJ:
```python
from nuvemfiscal.nuvemfiscal import NuvemFiscalapi = NuvemFiscal()
resp = api.consulta_cnpj('numero do cnpj')
print(resp)
```* Buscar informações de CEP:
```python
from nuvemfiscal.nuvemfiscal import NuvemFiscalapi = NuvemFiscal()
resp = api.consulta_cep('numero do cep')
print(resp)
```## Documentação
* https://dev.nuvemfiscal.com.br/docs