Skip to main content

Overview

Manipulação de certificados digitais, A1 e A3, em Python, facilitando:

  • Assinatura de documentos PDF

  • Assinatura de documentos fiscais (XML)

Esta biblioteca faz parte do projeto: https://erpbrasil.github.io/

Documentação

https://erpbrasil.github.io/

Créditos

Esta é uma biblioteca criada atravês do esforço de das empresas:

Por favor consulte a lista de contribuidores: https://github.com/erpbrasil/erpbrasil.assinatura/graphs/contributors

Licença

  • Free software: MIT license

Windows installation

Prerequisites

  • Install swig (and add swig install folder to PATH environment variable)

Ubuntu Installation

sudo apt-get update
sudo apt-get install swig
pip install erpbrasil.assinatura

Documentation

https://erpbrasilassinatura.readthedocs.io/en/latest/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.0.0 (2019-04-18)

  • First release on PyPI.

0.3.0 (2019-11-19)

  • Correção da importação da biblioteca e seu namespace

0.4.0 (2019-11-20)

  • Acesso aos dados do certificado: Proprietário e CNPJ/CPF caso exista

0.4.1 (2019-11-25)

  • Compatibilidade com python 2

  • Correção na assinatura

0.4.2 (2019-11-26)

  • Concatenar somente o elemento assinado no momento, sem mover os outros elementos de bloco. Por exemplo um lote de rps já assinados deve compor um bloco assinado, ao assinar este bloco as outras assinaturas não devem ser modificadas.

1.0.0 (2020-11-10)

  • Fim do suporte ao python2

  • Estabilização dos testes

1.2.0 (2021-05-26)

  • Assinatura da nota paulista (Infelizmente com o XMLSEC, tiramos ele em uma nova versão)

Metadata

Release files for erpbrasil.assinatura 1.9.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 erpbrasil.assinatura 1.9.0
File Size Uploaded Provenance Actions
erpbrasil_assinatura-1.9.0.tar.gz 83.9 kB With provenance Details for erpbrasil_assinatura-1.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for erpbrasil.assinatura 1.9.0
File Interpreter ABI Platform Actions
erpbrasil_assinatura-1.9.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for erpbrasil_assinatura-1.9.0-py2.py3-none-any.whl

Total release size: 95.6 kB

Release files / erpbrasil_assinatura-1.9.0.tar.gz

Download URL erpbrasil_assinatura-1.9.0.tar.gz
Size 83.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8b9b00d7cba0b219203667e397f27eb6c903727da26e72e4f48afdd9b485a8ec
BLAKE2b-256 checksum
How to use checksums
e33cd3d490fe8bf7e3e7f1a722f69627e1df82cb752dcc1fb3a8c13fc6f74594
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / erpbrasil_assinatura-1.9.0-py2.py3-none-any.whl

Download URL erpbrasil_assinatura-1.9.0-py2.py3-none-any.whl
Size 11.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
06658a5956c29b0ee13c41e6ca4f6e16a7742c8d9ace2954c54545237e97da4e
BLAKE2b-256 checksum
How to use checksums
c1bc18739d3c0cf471952070689e639dc026e366f4ff061ad39ccdf0666d87a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for erpbrasil.assinatura 1.9.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for erpbrasil_assinatura-1.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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