Skip to main content

Python interface for the Swisscom All-in Signing Service

Project description

PyPI version Python versions Tests Codecov.io

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')
>>> with open('source.pdf', 'rb') as fp:
...     pdf = PDF(fp)
...     with open('target.pdf', 'wb') as fp:
...         fp.write(pdf.out_stream.getbuffer())
...

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AIS2.py-2.0.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

AIS2.py-2.0.0-py2.py3-none-any.whl (18.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file AIS2.py-2.0.0.tar.gz.

File metadata

  • Download URL: AIS2.py-2.0.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for AIS2.py-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4d328a3775aedc7b89797b582c7c8138a6bb3a189d82bcc2fd7f2f9b50c6ca95
MD5 1fba69fe887788510896afb10241c0f6
BLAKE2b-256 836450e87146a3629bdab2c33d3e5319e78ddcd11be300e8d26dd0fb6324d2fc

See more details on using hashes here.

File details

Details for the file AIS2.py-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: AIS2.py-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for AIS2.py-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a90f34b6b760d57e09228b78a8a8a8721b1393986375adb3f85bf4ebeae9839c
MD5 a974f2545a0c11648d9d761bbd3269ea
BLAKE2b-256 dd75df37c1724eae5a2c915d684a3966e3fc12683b27ce83dd995647ec6f07e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page