Skip to main content

notascore

SDK oficial da Notas Core para Python: emita NFS-e pelo padrão nacional com poucas linhas.

pip install notascore
import os
from notascore import NotasCore

nc = NotasCore(chave=os.environ["NOTASCORE_CHAVE"])  # ns_hml_… (homologação) ou ns_prd_…

doc = nc.documentos.emitir_nfse(
    empresa="minha-empresa",
    ref_externa="pedido-0001",  # também vira a Idempotency-Key
    competencia="2026-11-27",
    codigo_servico="040101",
    descricao="Consulta",
    valor_centavos="25000",
)
final = nc.documentos.aguardar(doc.id)  # AUTORIZADA ou REJEITADA
print(final.estado, final.numero_nfse)

O que o SDK faz por você:

  • escolhe o endereço certo pelo prefixo da chave (homologação ou produção);
  • manda a Idempotency-Key igual à ref_externa na emissão;
  • repete a chamada em 429 (respeitando o Retry-After), 5xx e falha de rede, só quando é seguro;
  • levanta NotasCoreErro com codigo, status, titulo e campos;
  • percorre a listagem por cursor como iterador;
  • confere a assinatura dos webhooks com verificar_assinatura.

As respostas aceitam doc.numero_nfse e doc["numeroNfse"]. Campos aninhados do pedido (como tomador) usam os nomes da API.

Python 3.9 ou mais novo. Documentação completa: https://notascore.com.br/docs/sdks

Metadata

Release files for notascore 0.1.0

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

Source distribution (sdist)

Source distribution for notascore 0.1.0
File Size Uploaded Provenance Actions
notascore-0.1.0.tar.gz 10.9 kB Without provenance Details for notascore-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.5 kB

Release files / notascore-0.1.0.tar.gz

Download URL notascore-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
439fa0dcddbe1f4c4ad6d9dd68577cb67edcbd2663cf959584a562241fe24e6a
BLAKE2b-256 checksum
How to use checksums
4eacd1f1b0e597a2d2b760adbf1d90eb02d3735f46033eaf2137f1e6dfe982a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / notascore-0.1.0-py3-none-any.whl

Download URL notascore-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08ff4e9e3ce3bc1775043740cb09fc8100a2803484dcf5a576751b08589fb696
BLAKE2b-256 checksum
How to use checksums
8bcabff676e98937de755819ac43362b3217f5ba2ae2b11c08e35314a79c4e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for notascore 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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