{"id":15574398,"url":"https://github.com/matheuscas/pynfce","last_synced_at":"2025-06-17T05:04:28.763Z","repository":{"id":71230453,"uuid":"172285150","full_name":"matheuscas/pynfce","owner":"matheuscas","description":"Busca e extrai dados de uma NFCe dada sua URL de acesso. ","archived":false,"fork":false,"pushed_at":"2024-07-13T01:44:09.000Z","size":290,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T01:02:29.556Z","etag":null,"topics":["crawler","nfce","python3"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matheuscas.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-24T01:59:13.000Z","updated_at":"2024-05-23T22:29:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cda90e8-7036-4a5c-9b64-6f79aa1198f6","html_url":"https://github.com/matheuscas/pynfce","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"4b15afe9dda268324de5dfe534af68be4104fe6b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matheuscas/pynfce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheuscas%2Fpynfce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheuscas%2Fpynfce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheuscas%2Fpynfce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheuscas%2Fpynfce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheuscas","download_url":"https://codeload.github.com/matheuscas/pynfce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheuscas%2Fpynfce/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294455,"owners_count":22987622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","nfce","python3"],"created_at":"2024-10-02T18:16:59.315Z","updated_at":"2025-06-17T05:04:28.746Z","avatar_url":"https://github.com/matheuscas.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"==============\nPynfce\n==============\n\nDescrição:\n----------\nPacote python que extrai os dados de uma NFCe a partir da URL do QRCode da nota.\n\n**Somente Python 3!**\n\n.. image:: https://travis-ci.org/matheuscas/pynfce.svg?branch=master\n    :target: https://travis-ci.org/matheuscas/pynfce\n\n.. image:: https://codecov.io/gh/matheuscas/pynfce/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/matheuscas/pynfce\n\n.. image:: https://badge.fury.io/py/pynfce.svg  \n    :target: https://badge.fury.io/py/pynfce\n\n\nProjetos relacionados:\n----------------------\n- `pycpfcnpj \u003chttps://github.com/matheuscas/pycpfcnpj\u003e`_ - Módulo python para validar e gerar números de CPF e CNPJ.\n- `pycnpj-crawler \u003chttps://github.com/matheuscas/pycnpj-crawler\u003e`_ - Python module that crawls data for a given CNPJ on the government website of each state (please check the supported states).\n\nComo instalar:\n--------\n.. code-block:: shell\n\n   pip install pynfce\n\nComo usar:\n----------\n.. code-block:: python\n\n   from pynfce import get_nfce\n   QRCODE_URL = \"https://...\"\n   # o estado da Bahia é padrão\n   nfce = get_nfce(QRCODE_URL)\n\nExemplo de retorno dos dados de uma NFCe:\n-----------------------------------------\n.. code-block:: python\n\n    {\n        \"modelo\":\"\",\n        \"serie\": \"\",\n        \"numero\": \"\",\n        \"valor\": \"\",\n        \"chave_acesso\": \"\",\n        \"emitente\": {\n            {\n                \"razao_social\":\"\",\n                \"nome_fantasia\":\"\",\n                \"cnpj\":\"\",\n                \"municipio\": {\n                    \"numero\":\"\",\n                    \"nome\":\"\"\n                },\n                \"bairro\":\"\",\n                \"endereco\":\"\",\n                \"cep\":\"\"\n            }\n        },\n        \"produtos\":[\n            {\n                \"descricao\":\"\",\n                \"qtd\":\"\",\n                \"unidade_comercial\":\"\",\n                \"valor_total\":\"\",\n                \"valor_unitario\":\"\",\n                \"ncm\":\"\",\n                \"desconto\":\"\",\n                \"ean\":\"\"\n            }\n        ]\n    }\n\nNem todos os dados podem estar disponíveis, pois depende de cada estado. \n\nEstados disponíveis:\n--------------------\n- Bahia (ba) \n\nEsse é um **trabalho em progresso** e toda ajuda é bem vinda. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheuscas%2Fpynfce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheuscas%2Fpynfce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheuscas%2Fpynfce/lists"}