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
Créditos
Esta é uma biblioteca criada atravês do esforço de das empresas:
Akretion https://akretion.com/pt-BR/
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
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.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| erpbrasil_assinatura-1.8.1.tar.gz | 82.0 kB | With provenance | Details for erpbrasil_assinatura-1.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| erpbrasil_assinatura-1.8.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for erpbrasil_assinatura-1.8.1-py2.py3-none-any.whl |
Total release size: 93.2 kB
Release files / erpbrasil_assinatura-1.8.1.tar.gz
| Download URL | erpbrasil_assinatura-1.8.1.tar.gz |
|---|---|
| Size | 82.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd513fe4571a6e4c1ccca7f4fac1f1e0ce25c2174131dafa95b835fed0ec67a0
|
|
BLAKE2b-256 checksum How to use checksums |
b01e1bec03642e8e7031b55f12eb93744ffd964d3ed2a54a946846a41fe822e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 30, 2026.
Transparency logRelease files / erpbrasil_assinatura-1.8.1-py2.py3-none-any.whl
| Download URL | erpbrasil_assinatura-1.8.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
00d9b0698bac69635e8032f4aae4df61a2feff886d8683bd7bf4e5df091a888b
|
|
BLAKE2b-256 checksum How to use checksums |
f0e0251b04b9977bc57beab2e8e8abf38b33db356b0a727da45941e1c7927fe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 30, 2026.
Transparency logSecurity for erpbrasil.assinatura 1.8.1
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.
Attestation for erpbrasil_assinatura-1.8.1.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 Sep 30, 2026.
Transparency logA 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.