Python interface for the Swisscom All-in Signing Service
Project description
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:
>>> 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.
Release History
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file AIS2.py-2.1.2.tar.gz
.
File metadata
- Download URL: AIS2.py-2.1.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05457ccb7b2bd7c1e3353ba620e6d91c1cdf5396d691435e3fdf724d99889ff8 |
|
MD5 | fce425e90de47261f9b05c67d02ca43e |
|
BLAKE2b-256 | 655ed4e62474bbe5929f29c0c71f4f624345c9cf7cddeda9c4649b54f5afc9f9 |
File details
Details for the file AIS2.py-2.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: AIS2.py-2.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b431bcb62dc67a270e1bceac34634ff67f9cad7b1f9e1e52abe7f595f83f2021 |
|
MD5 | c68f3e0126a2bd9051b6d26d41656c41 |
|
BLAKE2b-256 | 5fde0585b3c268bf7de1ba23a5fa9d08da9dc72a98927d095383855cf33d6a4a |