AIS2.py
=======
.. image:: https://img.shields.io/pypi/v/AIS2.py.svg
:target: https://pypi.org/project/AIS2.py
:alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/AIS2.py.svg
:target: https://pypi.org/project/AIS2.py
:alt: Python versions
.. image:: https://github.com/seantis/AIS2.py/actions/workflows/python-tox.yaml/badge.svg
:target: https://github.com/seantis/AIS2.py/actions
:alt: Tests
.. image:: https://readthedocs.org/projects/ais2py/badge/?version=latest
:target: https://ais2py.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://codecov.io/gh/seantis/AIS2.py/branch/master/graph/badge.svg?token=NRPFO5L0PG
:target: https://codecov.io/gh/seantis/AIS2.py
:alt: Codecov.io
.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
:target: https://github.com/pre-commit/pre-commit
:alt: pre-commit
AIS.py: a Python interface for the Swisscom All-in Signing Service (aka AIS).
AIS2.py is a fork created to get rid of the licensing woes affected itext dependency and replace it with pyHanko. Furthermore the API was slightly adjusted to be more flexible, so buffers can be passed around rather than files that need to exist on the filesystem.
AIS2.py works like this:
.. code-block:: python
>>> from AIS import AIS, PDF
>>> client = AIS('alice', 'a_secret', 'a.crt', 'a.key')
>>> pdf = PDF('source.pdf')
>>> ais.sign_one_pdf(pdf)
>>> with open('target.pdf', 'wb') as fp:
... fp.write(pdf.out_stream.getvalue())
...
License
-------
Copyright (C) 2016 Camptocamp SA
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
.. :changelog:
Release History
---------------
2.3.0 (2024-08-21)
++++++++++++++++++
- Add Python 3.11, 3.12, 3.13 support
- Remove Python 3.7 support
2.2.1 (2022-09-02)
++++++++++++++++++
- Gracefully handles empty batches
2.2.0 (2022-07-14)
++++++++++++++++++
- Switches to AIS API Profile 1.1
2.1.2 (2022-07-14)
++++++++++++++++++
- Actually fixes batch signing
2.1.1 (2022-07-14)
++++++++++++++++++
- Fix batch signing
2.1.0 (2022-04-19)
++++++++++++++++++
- Clean up project structure
- Clean up PDF API
- Clean up docs
2.0.0 (2022-04-12)
++++++++++++++++++
- Creation of AIS2.py fork
- Replaced Travis CI with GitHub Actions.
0.3.0-beta (2021-11-04)
+++++++++++++++++++++++
- Remove Python 2.7, 3.4, 3.5, 3.6 support
- Replace PyPDF2 and itext with pyHanko
- Remove support for signing prepared PDFs
0.2.2 (2018-10-22)
++++++++++++++++++
- Store the last created request_id on the AIS instance
- Use a proper test matrix on Travis to test various Python releases
- Add Python 3.6 to test matrix
0.2.1 (2016-06-16)
++++++++++++++++++
- Return in batch mode timestamp and revocation information with the signature.
- Fix python3 bugs.
- Refactoring.
0.2.0 (2016-05-19)
++++++++++++++++++
**Documentation**
- Added sections for introduction, installation, testing, project status, API
reference.
0.1 (2016-05-17)
++++++++++++++++
Initial release. It is possible to start with a batch of pdf files that do not
yet have a prepared signature, and sign them.
Raw data
{
"_id": null,
"home_page": "https://pypi.python.org/pypi/AIS2.py",
"name": "AIS2.py",
"maintainer": "Seantis GmbH",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "info@seantis.ch",
"keywords": null,
"author": "Camptocamp",
"author_email": "info@camptocamp.com",
"download_url": "https://files.pythonhosted.org/packages/57/6c/c163ed11f0596eafc708b8d095b5382c796bf61c06bccb77a9a09bd696e4/ais2_py-2.3.0.tar.gz",
"platform": null,
"description": "AIS2.py\n=======\n\n.. image:: https://img.shields.io/pypi/v/AIS2.py.svg\n :target: https://pypi.org/project/AIS2.py\n :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/AIS2.py.svg\n :target: https://pypi.org/project/AIS2.py\n :alt: Python versions\n\n.. image:: https://github.com/seantis/AIS2.py/actions/workflows/python-tox.yaml/badge.svg\n :target: https://github.com/seantis/AIS2.py/actions\n :alt: Tests\n\n.. image:: https://readthedocs.org/projects/ais2py/badge/?version=latest\n :target: https://ais2py.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://codecov.io/gh/seantis/AIS2.py/branch/master/graph/badge.svg?token=NRPFO5L0PG\n :target: https://codecov.io/gh/seantis/AIS2.py\n :alt: Codecov.io\n\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white\n :target: https://github.com/pre-commit/pre-commit\n :alt: pre-commit\n\nAIS.py: a Python interface for the Swisscom All-in Signing Service (aka AIS).\n\nAIS2.py is a fork created to get rid of the licensing woes affected itext dependency and replace it with pyHanko. Furthermore the API was slightly adjusted to be more flexible, so buffers can be passed around rather than files that need to exist on the filesystem.\n\nAIS2.py works like this:\n\n.. code-block:: python\n\n >>> from AIS import AIS, PDF\n >>> client = AIS('alice', 'a_secret', 'a.crt', 'a.key')\n >>> pdf = PDF('source.pdf')\n >>> ais.sign_one_pdf(pdf)\n >>> with open('target.pdf', 'wb') as fp:\n ... fp.write(pdf.out_stream.getvalue())\n ...\n\nLicense\n-------\n\nCopyright (C) 2016 Camptocamp SA\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\n.. :changelog:\n\nRelease History\n---------------\n\n2.3.0 (2024-08-21)\n++++++++++++++++++\n\n- Add Python 3.11, 3.12, 3.13 support\n- Remove Python 3.7 support\n\n2.2.1 (2022-09-02)\n++++++++++++++++++\n\n- Gracefully handles empty batches\n\n2.2.0 (2022-07-14)\n++++++++++++++++++\n\n- Switches to AIS API Profile 1.1\n\n2.1.2 (2022-07-14)\n++++++++++++++++++\n\n- Actually fixes batch signing\n\n2.1.1 (2022-07-14)\n++++++++++++++++++\n\n- Fix batch signing\n\n2.1.0 (2022-04-19)\n++++++++++++++++++\n\n- Clean up project structure\n- Clean up PDF API\n- Clean up docs\n\n2.0.0 (2022-04-12)\n++++++++++++++++++\n\n- Creation of AIS2.py fork\n- Replaced Travis CI with GitHub Actions.\n\n0.3.0-beta (2021-11-04)\n+++++++++++++++++++++++\n\n- Remove Python 2.7, 3.4, 3.5, 3.6 support\n- Replace PyPDF2 and itext with pyHanko\n- Remove support for signing prepared PDFs\n\n0.2.2 (2018-10-22)\n++++++++++++++++++\n\n- Store the last created request_id on the AIS instance\n- Use a proper test matrix on Travis to test various Python releases\n- Add Python 3.6 to test matrix\n\n0.2.1 (2016-06-16)\n++++++++++++++++++\n\n- Return in batch mode timestamp and revocation information with the signature.\n- Fix python3 bugs.\n- Refactoring.\n\n0.2.0 (2016-05-19)\n++++++++++++++++++\n\n**Documentation**\n\n- Added sections for introduction, installation, testing, project status, API\n reference.\n\n0.1 (2016-05-17)\n++++++++++++++++\n\nInitial release. It is possible to start with a batch of pdf files that do not\nyet have a prepared signature, and sign them.\n",
"bugtrack_url": null,
"license": "GNU Affero General Public License v3 or later (AGPLv3+)",
"summary": "Python interface for the Swisscom All-in Signing Service",
"version": "2.3.0",
"project_urls": {
"Bug Tracker": "https://pypi.python.org/pypi/AIS2.py/issues",
"Homepage": "https://pypi.python.org/pypi/AIS2.py"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ab86f4bbea2384882821a5817992a8489957c929fa1a1cecd12e0c42bc6c741a",
"md5": "d84d07aada777d7854bdd46a7e98ff82",
"sha256": "3bc95cabb3285c88513317b01a2714f7e92a2fe5ee55a5117405747c90b7e2ca"
},
"downloads": -1,
"filename": "AIS2.py-2.3.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "d84d07aada777d7854bdd46a7e98ff82",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.8",
"size": 20833,
"upload_time": "2024-08-21T09:23:06",
"upload_time_iso_8601": "2024-08-21T09:23:06.669676Z",
"url": "https://files.pythonhosted.org/packages/ab/86/f4bbea2384882821a5817992a8489957c929fa1a1cecd12e0c42bc6c741a/AIS2.py-2.3.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "576cc163ed11f0596eafc708b8d095b5382c796bf61c06bccb77a9a09bd696e4",
"md5": "0a8536ac9981bc6e279424c3ca8fdaf2",
"sha256": "b50e6f2459a4c9ce89ff181ffa0e6c052a8271f96c0c664cd85873b197db1e17"
},
"downloads": -1,
"filename": "ais2_py-2.3.0.tar.gz",
"has_sig": false,
"md5_digest": "0a8536ac9981bc6e279424c3ca8fdaf2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 22941,
"upload_time": "2024-08-21T09:23:08",
"upload_time_iso_8601": "2024-08-21T09:23:08.190489Z",
"url": "https://files.pythonhosted.org/packages/57/6c/c163ed11f0596eafc708b8d095b5382c796bf61c06bccb77a9a09bd696e4/ais2_py-2.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-21 09:23:08",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ais2.py"
}