pysequoia


Namepysequoia JSON
Version 0.1.23 PyPI version JSON
download
home_pagehttps://github.com/wiktor-k/pysequoia
SummaryProvides OpenPGP facilities using Sequoia-PGP library
upload_time2024-03-21 13:36:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords openpgp pgp gpg gnupg sequoia
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <img src="https://github.com/wiktor-k/pysequoia/raw/main/doc/logo.png" align="right" width="150" height="150" />

# PySequoia

[![PyPI version](https://badge.fury.io/py/pysequoia.svg)](https://pypi.org/project/pysequoia/)
[![PyPI Downloads](https://img.shields.io/pypi/dm/pysequoia.svg?label=PyPI%20downloads)](
https://pypi.org/project/pysequoia/)
[![CI](https://github.com/wiktor-k/pysequoia/actions/workflows/ci.yml/badge.svg)](https://github.com/wiktor-k/pysequoia/actions/workflows/ci.yml)

This library provides [OpenPGP][] facilities in Python through the
[Sequoia PGP][SQ] library. If you need to work with encryption and
digital signatures using an [IETF standardized protocol][4880], this
package is for you!

[OpenPGP]: https://en.wikipedia.org/wiki/Pretty_Good_Privacy#OpenPGP
[SQ]: https://sequoia-pgp.org/
[4880]: https://www.rfc-editor.org/rfc/rfc4880

Note: This is a work in progress. The API is **not** stable!

## Building

```bash
set -euxo pipefail
python -m venv .env
source .env/bin/activate
pip install maturin
maturin develop
```

## Installing

PySequoia can be installed through `pip`:

```sh
pip install pysequoia
```

Note that since `pysequoia` is implemented largely in Rust, a [Rust
toolchain][RUSTUP] is necessary for the installation to succeed.

[RUSTUP]: https://rustup.rs/

## Testing

This entire document is used for end-to-end integration tests that
exercise the package's API surface.

The tests assume that these keys and cards exist:

```bash
# generate a key with password
gpg --batch --pinentry-mode loopback --passphrase hunter22 --quick-gen-key passwd@example.com
gpg --batch --pinentry-mode loopback --passphrase hunter22 --export-secret-key passwd@example.com > passwd.pgp

# generate a key without password
gpg --batch --pinentry-mode loopback --passphrase '' --quick-gen-key no-passwd@example.com future-default
gpg --batch --pinentry-mode loopback --passphrase '' --export-secret-key no-passwd@example.com > no-passwd.pgp

# initialize dummy OpenPGP Card
sh /start.sh
echo 12345678 > pin
CARD_ADMIN="opgpcard admin --card 0000:00000000 --admin-pin pin"
$CARD_ADMIN import full-key.asc
$CARD_ADMIN name "John Doe"
$CARD_ADMIN url "https://example.com/key.pgp"
$CARD_ADMIN touch --key SIG --policy Fixed
$CARD_ADMIN touch --key DEC --policy Off
$CARD_ADMIN touch --key AUT --policy Fixed
```

## Functions

All examples assume that these basic classes have been imported:

```python
from pysequoia import Cert
```

### sign

Signs data and returns armored output:

```python
from pysequoia import sign

s = Cert.from_file("signing-key.asc")
signed = sign(s.secrets.signer(), "data to be signed".encode("utf8"))
print(f"Signed data: {signed}")
assert "PGP MESSAGE" in str(signed)
```

### verify

Verifies signed data and returns verified data:

```python
from pysequoia import verify

# sign some data
signing_key = Cert.from_file("signing-key.asc")
signed = sign(s.secrets.signer(), "data to be signed".encode("utf8"))

def get_certs(key_ids):
  # key_ids is an array of required signing keys
  print(f"For verification, we need these keys: {key_ids}")
  return [signing_key]

# verify the data
result = verify(signed, get_certs)
assert result.bytes.decode("utf8") == "data to be signed"

# let's check the valid signature's certificate and signing subkey fingerprints
assert result.valid_sigs[0].certificate == "afcf5405e8f49dbcd5dc548a86375b854b86acf9"
assert result.valid_sigs[0].signing_key == "afcf5405e8f49dbcd5dc548a86375b854b86acf9"
```

The function that returns certificates (here `get_certs`) may return more certificates than necessary.

`verify` succeeds if *at least one* correct signature has been made by any of the certificates supplied. If you need more advanced policies they can be implemented by inspecting the `valid_sigs` property.

### encrypt

Signs and encrypts a string to one or more recipients:

```python
from pysequoia import encrypt

s = Cert.from_file("passwd.pgp")
r = Cert.from_bytes(open("wiktor.asc", "rb").read())
bytes = "content to encrypt".encode("utf8")
encrypted = encrypt(signer = s.secrets.signer("hunter22"), recipients = [r], bytes = bytes).decode("utf8")
print(f"Encrypted data: {encrypted}")
```

The `signer` argument is optional and when omitted the function will return an unsigned (but encrypted) message.

### decrypt

Decrypts plain data:

```python
from pysequoia import decrypt

sender = Cert.from_file("no-passwd.pgp")
receiver = Cert.from_file("passwd.pgp")

content = "Red Green Blue"

encrypted = encrypt(recipients = [receiver], bytes = content.encode("utf8"))

decrypted = decrypt(decryptor = receiver.secrets.decryptor("hunter22"), bytes = encrypted)

assert content == decrypted.bytes.decode("utf8");

# this message did not contain any valid signatures
assert len(decrypted.valid_sigs) == 0
```

Decrypt can also verify signatures while decrypting:

```python
from pysequoia import decrypt

sender = Cert.from_file("no-passwd.pgp")
receiver = Cert.from_file("passwd.pgp")

content = "Red Green Blue"

encrypted = encrypt(signer = sender.secrets.signer(), recipients = [receiver], bytes = content.encode("utf8"))

def get_certs(key_ids):
  print(f"For verification after decryption, we need these keys: {key_ids}")
  return [sender]

decrypted = decrypt(decryptor = receiver.secrets.decryptor("hunter22"), bytes = encrypted, store = get_certs)

assert content == decrypted.bytes.decode("utf8");

# let's check the valid signature's certificate and signing subkey fingerprints
assert decrypted.valid_sigs[0].certificate == sender.fingerprint
assert decrypted.valid_sigs[0].signing_key == sender.fingerprint
```

Here, the same remarks as to [`verify`](#verify) also apply.

## Certificates

The `Cert` class represents one OpenPGP certificate (commonly called a
"public key").

This package additionally verifies the certificate using Sequoia PGP's
[`StandardPolicy`][SP]. This means that certificates using weak
cryptography can fail to load, or present a different view than in
other OpenPGP software (e.g. if a User ID uses SHA-1 in its
back-signature, it may be missing from the list of User IDs returned
by this package).

[SP]: https://docs.rs/sequoia-openpgp/latest/sequoia_openpgp/policy/struct.StandardPolicy.html

Certificates have two forms, one is ASCII armored and one is raw bytes:

```python
cert = Cert.generate("Test <test@example.com>")

print(f"Armored cert: {cert}")
print(f"Bytes of the cert: {cert.bytes()}")
```

### Parsing

Certificates can be parsed from files (`Cert.from_file`) or bytes in
memory (`Cert.from_bytes`).

```python
cert1 = Cert.generate("Test <test@example.com>")
buffer = cert1.bytes()

parsed_cert = Cert.from_bytes(buffer)
assert str(parsed_cert.user_ids[0]) == "Test <test@example.com>"
```

They can also be picked from "keyring" files (`Cert.split_file`) or
bytes in memory (`Cert.split_bytes`) which are collections of binary
certificates.

```python
cert1 = Cert.generate("Test 1 <test-1@example.com>")
cert2 = Cert.generate("Test 2 <test-2@example.com>")
cert3 = Cert.generate("Test 3 <test-3@example.com>")

buffer = cert1.bytes() + cert2.bytes() + cert3.bytes()
certs = Cert.split_bytes(buffer)
assert len(certs) == 3
```

### generate

Creates a new general purpose key with a given User ID:

```python
alice = Cert.generate("Alice <alice@example.com>")
fpr = alice.fingerprint
print(f"Generated cert with fingerprint {fpr}:\n{alice}")
```

Multiple User IDs can be passed as a list to the `generate` function:

```python
cert = Cert.generate(user_ids = ["First", "Second", "Third"])
assert len(cert.user_ids) == 3
```

Newly generated certificates are usable in both encryption and signing
contexts:

```python
alice = Cert.generate("Alice <alice@example.com>")
bob = Cert.generate("Bob <bob@example.com>")

bytes = "content to encrypt".encode("utf8")

encrypted = encrypt(signer = alice.secrets.signer(), recipients = [bob], bytes = bytes)
print(f"Encrypted data: {encrypted}")
```

### merge

Merges packets from a new version into an old version of a certificate:

```python
old = Cert.from_file("wiktor.asc")
new = Cert.from_file("wiktor-fresh.asc")
merged = old.merge(new)
```

### User IDs

Listing existing User IDs:

```python
cert = Cert.from_file("wiktor.asc")
user_id = cert.user_ids[0]
assert str(user_id).startswith("Wiktor Kwapisiewicz")
```

Adding new User IDs:

```python
cert = Cert.generate("Alice <alice@example.com>")
assert len(cert.user_ids) == 1;

cert = cert.add_user_id(value = "Alice <alice@company.invalid>", certifier = cert.secrets.certifier())

assert len(cert.user_ids) == 2;
```

Revoking User IDs:

```python
cert = Cert.generate("Bob <bob@example.com>")

cert = cert.add_user_id(value = "Bob <bob@company.invalid>", certifier = cert.secrets.certifier())
assert len(cert.user_ids) == 2

# create User ID revocation
revocation = cert.revoke_user_id(user_id = cert.user_ids[1], certifier = cert.secrets.certifier())

# merge the revocation with the cert
cert = Cert.from_bytes(cert.bytes() + revocation.bytes())
assert len(cert.user_ids) == 1
```

### Notations

Notations are small pieces of data that can be attached to signatures (and, indirectly, to User IDs).

The following example reads and displays a [Keyoxide][KX] proof URI:

[KX]: https://keyoxide.org/

```python
cert = Cert.from_file("wiktor.asc")
user_id = cert.user_ids[0]
notation = user_id.notations[0]

assert notation.key == "proof@metacode.biz";
assert notation.value == "dns:metacode.biz?type=TXT";
```

Notations can also be added:

```python
from pysequoia import Notation

cert = Cert.from_file("signing-key.asc")

# No notations initially
assert len(cert.user_ids[0].notations) == 0;

cert = cert.set_notations(cert.secrets.certifier(), [Notation("proof@metacode.biz", "dns:metacode.biz")])

# Has one notation now
print(str(cert.user_ids[0].notations))
assert len(cert.user_ids[0].notations) == 1;

# Check the notation data
notation = cert.user_ids[0].notations[0]

assert notation.key == "proof@metacode.biz";
assert notation.value == "dns:metacode.biz";
```

### Key expiration

Certs have an `expiration` getter for retrieving the current key
expiry time:

```python
cert = Cert.from_file("signing-key.asc")

# Cert does not have any expiration date:
assert cert.expiration is None

cert = Cert.from_file("wiktor.asc")
# Cert expires on New Year's Eve
assert str(cert.expiration) == "2022-12-31 12:00:02+00:00"
```

Key expiration can also be adjusted with `set_expiration`:

```python
from datetime import datetime

cert = Cert.from_file("signing-key.asc")

# Cert does not have any expiration date:
assert cert.expiration is None

# Set the expiration to some specified point in time
expiration = datetime.fromisoformat("2021-11-04T00:05:23+00:00")
cert = cert.set_expiration(expiration = expiration, certifier = cert.secrets.certifier())
assert str(cert.expiration) == "2021-11-04 00:05:23+00:00"
```

### Key revocation

Certs can be revoked. While [expiration makes the key unusable
temporarily][EXP] to encourage the user to refresh a copy revocation is
irreversible.

[EXP]: https://blogs.gentoo.org/mgorny/2018/08/13/openpgp-key-expiration-is-not-a-security-measure/

```python
cert = Cert.generate("Test Revocation <revoke@example.com>")
revocation = cert.revoke(certifier = cert.secrets.certifier())

# creating revocation signature does not revoke the key
assert not cert.is_revoked

# importing revocation signature marks the key as revoked
revoked_cert = Cert.from_bytes(cert.bytes() + revocation.bytes())
assert revoked_cert.is_revoked
```

## Secret keys

Certificates generated through `Cert.generate()` contain secret keys
and can be used for signing and decryption.

To avoid accidental leakage secret keys are never directly printed
when the Cert is written to a string. To enable this behavior use
`Cert.secrets`. `secrets` returns `None` on certificates which do
not contain any secret key material ("public keys").

```python
c = Cert.generate("Testing key <test@example.com>")
assert c.has_secret_keys

# by default only public parts are exported
public_parts = Cert.from_bytes(f"{c}".encode("utf8"))
assert not public_parts.has_secret_keys
assert public_parts.secrets is None

# to export secret parts use the following:
private_parts = Cert.from_bytes(f"{c.secrets}".encode("utf8"))
assert private_parts.has_secret_keys
```

## OpenPGP Cards

There's an experimental feature allowing communication with OpenPGP
Cards (like YubiKey or Nitrokey).

```python
from pysequoia import Card

# enumerate all cards
all = Card.all()

# open card by card ident
card = Card.open("0000:00000000")

print(f"Card ident: {card.ident}")
assert card.cardholder == "John Doe"
assert card.cert_url == "https://example.com/key.pgp"
```

Cards provide `keys` property that can be used to see which keys are imported
on the card:

```python
keys = card.keys
print(f"Keys: {keys}")
assert len(keys) == 3

assert keys[0].fingerprint == "ddc3e03c91fb52ca2d95c2444566f2743ed5f382"
assert "sign" in keys[0].usage
assert keys[0].touch_required

assert keys[1].fingerprint == "689e152a7420be13dcaf2c142ac27adc1db9395e"
assert "decrypt" in keys[1].usage
assert not keys[1].touch_required

assert keys[2].fingerprint == "731fbca93ce9821347bf8e696444723371d3c650"
assert "authenticate" in keys[2].usage
assert keys[2].touch_required
```


Cards can be used for signing data:

```python
signer = card.signer("123456")

signed = sign(signer, "data to be signed".encode("utf8"))
print(f"Signed data: {signed}")
```

As well as for decryption:

```python
decryptor = card.decryptor("123456")

sender = Cert.from_file("passwd.pgp")
receiver = Cert.from_file("full-key.asc")

content = "Red Green Blue"

encrypted = encrypt(signer = sender.secrets.signer("hunter22"), recipients = [receiver], bytes = content.encode("utf8"))

print(f"Encrypted data: {encrypted}")

decrypted = decrypt(decryptor = decryptor, bytes = encrypted)

assert content == decrypted.bytes.decode("utf8");
```

Note that while this package allows using cards for signing and
decryption, the provisioning process is not supported.  [OpenPGP card
tools][] can be used to initialize the card.

[OpenPGP card tools]: https://crates.io/crates/openpgp-card-tools

## License

This project is licensed under [Apache License, Version 2.0][APL].

[APL]: https://www.apache.org/licenses/LICENSE-2.0.html

## Contribution

Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the package by you shall be under the terms
and conditions of this license, without any additional terms or
conditions.

## Sponsors

My work was supported by these generous organizations (alphabetical
order):

  - [nlnet.nl](https://nlnet.nl/)
  - [pep.foundation](https://pep.foundation/)
  - [sovereigntechfund.de](https://sovereigntechfund.de/en.html)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wiktor-k/pysequoia",
    "name": "pysequoia",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "openpgp, pgp, gpg, gnupg, sequoia",
    "author": null,
    "author_email": "Wiktor Kwapisiewicz <wiktor@metacode.biz>",
    "download_url": "https://files.pythonhosted.org/packages/55/a7/631faa2a7f0e81c400967b0f8223d5d328e488c639ca5fdd6c2f0e602ad9/pysequoia-0.1.23.tar.gz",
    "platform": null,
    "description": "<img src=\"https://github.com/wiktor-k/pysequoia/raw/main/doc/logo.png\" align=\"right\" width=\"150\" height=\"150\" />\n\n# PySequoia\n\n[![PyPI version](https://badge.fury.io/py/pysequoia.svg)](https://pypi.org/project/pysequoia/)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/pysequoia.svg?label=PyPI%20downloads)](\nhttps://pypi.org/project/pysequoia/)\n[![CI](https://github.com/wiktor-k/pysequoia/actions/workflows/ci.yml/badge.svg)](https://github.com/wiktor-k/pysequoia/actions/workflows/ci.yml)\n\nThis library provides [OpenPGP][] facilities in Python through the\n[Sequoia PGP][SQ] library. If you need to work with encryption and\ndigital signatures using an [IETF standardized protocol][4880], this\npackage is for you!\n\n[OpenPGP]: https://en.wikipedia.org/wiki/Pretty_Good_Privacy#OpenPGP\n[SQ]: https://sequoia-pgp.org/\n[4880]: https://www.rfc-editor.org/rfc/rfc4880\n\nNote: This is a work in progress. The API is **not** stable!\n\n## Building\n\n```bash\nset -euxo pipefail\npython -m venv .env\nsource .env/bin/activate\npip install maturin\nmaturin develop\n```\n\n## Installing\n\nPySequoia can be installed through `pip`:\n\n```sh\npip install pysequoia\n```\n\nNote that since `pysequoia` is implemented largely in Rust, a [Rust\ntoolchain][RUSTUP] is necessary for the installation to succeed.\n\n[RUSTUP]: https://rustup.rs/\n\n## Testing\n\nThis entire document is used for end-to-end integration tests that\nexercise the package's API surface.\n\nThe tests assume that these keys and cards exist:\n\n```bash\n# generate a key with password\ngpg --batch --pinentry-mode loopback --passphrase hunter22 --quick-gen-key passwd@example.com\ngpg --batch --pinentry-mode loopback --passphrase hunter22 --export-secret-key passwd@example.com > passwd.pgp\n\n# generate a key without password\ngpg --batch --pinentry-mode loopback --passphrase '' --quick-gen-key no-passwd@example.com future-default\ngpg --batch --pinentry-mode loopback --passphrase '' --export-secret-key no-passwd@example.com > no-passwd.pgp\n\n# initialize dummy OpenPGP Card\nsh /start.sh\necho 12345678 > pin\nCARD_ADMIN=\"opgpcard admin --card 0000:00000000 --admin-pin pin\"\n$CARD_ADMIN import full-key.asc\n$CARD_ADMIN name \"John Doe\"\n$CARD_ADMIN url \"https://example.com/key.pgp\"\n$CARD_ADMIN touch --key SIG --policy Fixed\n$CARD_ADMIN touch --key DEC --policy Off\n$CARD_ADMIN touch --key AUT --policy Fixed\n```\n\n## Functions\n\nAll examples assume that these basic classes have been imported:\n\n```python\nfrom pysequoia import Cert\n```\n\n### sign\n\nSigns data and returns armored output:\n\n```python\nfrom pysequoia import sign\n\ns = Cert.from_file(\"signing-key.asc\")\nsigned = sign(s.secrets.signer(), \"data to be signed\".encode(\"utf8\"))\nprint(f\"Signed data: {signed}\")\nassert \"PGP MESSAGE\" in str(signed)\n```\n\n### verify\n\nVerifies signed data and returns verified data:\n\n```python\nfrom pysequoia import verify\n\n# sign some data\nsigning_key = Cert.from_file(\"signing-key.asc\")\nsigned = sign(s.secrets.signer(), \"data to be signed\".encode(\"utf8\"))\n\ndef get_certs(key_ids):\n  # key_ids is an array of required signing keys\n  print(f\"For verification, we need these keys: {key_ids}\")\n  return [signing_key]\n\n# verify the data\nresult = verify(signed, get_certs)\nassert result.bytes.decode(\"utf8\") == \"data to be signed\"\n\n# let's check the valid signature's certificate and signing subkey fingerprints\nassert result.valid_sigs[0].certificate == \"afcf5405e8f49dbcd5dc548a86375b854b86acf9\"\nassert result.valid_sigs[0].signing_key == \"afcf5405e8f49dbcd5dc548a86375b854b86acf9\"\n```\n\nThe function that returns certificates (here `get_certs`) may return more certificates than necessary.\n\n`verify` succeeds if *at least one* correct signature has been made by any of the certificates supplied. If you need more advanced policies they can be implemented by inspecting the `valid_sigs` property.\n\n### encrypt\n\nSigns and encrypts a string to one or more recipients:\n\n```python\nfrom pysequoia import encrypt\n\ns = Cert.from_file(\"passwd.pgp\")\nr = Cert.from_bytes(open(\"wiktor.asc\", \"rb\").read())\nbytes = \"content to encrypt\".encode(\"utf8\")\nencrypted = encrypt(signer = s.secrets.signer(\"hunter22\"), recipients = [r], bytes = bytes).decode(\"utf8\")\nprint(f\"Encrypted data: {encrypted}\")\n```\n\nThe `signer` argument is optional and when omitted the function will return an unsigned (but encrypted) message.\n\n### decrypt\n\nDecrypts plain data:\n\n```python\nfrom pysequoia import decrypt\n\nsender = Cert.from_file(\"no-passwd.pgp\")\nreceiver = Cert.from_file(\"passwd.pgp\")\n\ncontent = \"Red Green Blue\"\n\nencrypted = encrypt(recipients = [receiver], bytes = content.encode(\"utf8\"))\n\ndecrypted = decrypt(decryptor = receiver.secrets.decryptor(\"hunter22\"), bytes = encrypted)\n\nassert content == decrypted.bytes.decode(\"utf8\");\n\n# this message did not contain any valid signatures\nassert len(decrypted.valid_sigs) == 0\n```\n\nDecrypt can also verify signatures while decrypting:\n\n```python\nfrom pysequoia import decrypt\n\nsender = Cert.from_file(\"no-passwd.pgp\")\nreceiver = Cert.from_file(\"passwd.pgp\")\n\ncontent = \"Red Green Blue\"\n\nencrypted = encrypt(signer = sender.secrets.signer(), recipients = [receiver], bytes = content.encode(\"utf8\"))\n\ndef get_certs(key_ids):\n  print(f\"For verification after decryption, we need these keys: {key_ids}\")\n  return [sender]\n\ndecrypted = decrypt(decryptor = receiver.secrets.decryptor(\"hunter22\"), bytes = encrypted, store = get_certs)\n\nassert content == decrypted.bytes.decode(\"utf8\");\n\n# let's check the valid signature's certificate and signing subkey fingerprints\nassert decrypted.valid_sigs[0].certificate == sender.fingerprint\nassert decrypted.valid_sigs[0].signing_key == sender.fingerprint\n```\n\nHere, the same remarks as to [`verify`](#verify) also apply.\n\n## Certificates\n\nThe `Cert` class represents one OpenPGP certificate (commonly called a\n\"public key\").\n\nThis package additionally verifies the certificate using Sequoia PGP's\n[`StandardPolicy`][SP]. This means that certificates using weak\ncryptography can fail to load, or present a different view than in\nother OpenPGP software (e.g. if a User ID uses SHA-1 in its\nback-signature, it may be missing from the list of User IDs returned\nby this package).\n\n[SP]: https://docs.rs/sequoia-openpgp/latest/sequoia_openpgp/policy/struct.StandardPolicy.html\n\nCertificates have two forms, one is ASCII armored and one is raw bytes:\n\n```python\ncert = Cert.generate(\"Test <test@example.com>\")\n\nprint(f\"Armored cert: {cert}\")\nprint(f\"Bytes of the cert: {cert.bytes()}\")\n```\n\n### Parsing\n\nCertificates can be parsed from files (`Cert.from_file`) or bytes in\nmemory (`Cert.from_bytes`).\n\n```python\ncert1 = Cert.generate(\"Test <test@example.com>\")\nbuffer = cert1.bytes()\n\nparsed_cert = Cert.from_bytes(buffer)\nassert str(parsed_cert.user_ids[0]) == \"Test <test@example.com>\"\n```\n\nThey can also be picked from \"keyring\" files (`Cert.split_file`) or\nbytes in memory (`Cert.split_bytes`) which are collections of binary\ncertificates.\n\n```python\ncert1 = Cert.generate(\"Test 1 <test-1@example.com>\")\ncert2 = Cert.generate(\"Test 2 <test-2@example.com>\")\ncert3 = Cert.generate(\"Test 3 <test-3@example.com>\")\n\nbuffer = cert1.bytes() + cert2.bytes() + cert3.bytes()\ncerts = Cert.split_bytes(buffer)\nassert len(certs) == 3\n```\n\n### generate\n\nCreates a new general purpose key with a given User ID:\n\n```python\nalice = Cert.generate(\"Alice <alice@example.com>\")\nfpr = alice.fingerprint\nprint(f\"Generated cert with fingerprint {fpr}:\\n{alice}\")\n```\n\nMultiple User IDs can be passed as a list to the `generate` function:\n\n```python\ncert = Cert.generate(user_ids = [\"First\", \"Second\", \"Third\"])\nassert len(cert.user_ids) == 3\n```\n\nNewly generated certificates are usable in both encryption and signing\ncontexts:\n\n```python\nalice = Cert.generate(\"Alice <alice@example.com>\")\nbob = Cert.generate(\"Bob <bob@example.com>\")\n\nbytes = \"content to encrypt\".encode(\"utf8\")\n\nencrypted = encrypt(signer = alice.secrets.signer(), recipients = [bob], bytes = bytes)\nprint(f\"Encrypted data: {encrypted}\")\n```\n\n### merge\n\nMerges packets from a new version into an old version of a certificate:\n\n```python\nold = Cert.from_file(\"wiktor.asc\")\nnew = Cert.from_file(\"wiktor-fresh.asc\")\nmerged = old.merge(new)\n```\n\n### User IDs\n\nListing existing User IDs:\n\n```python\ncert = Cert.from_file(\"wiktor.asc\")\nuser_id = cert.user_ids[0]\nassert str(user_id).startswith(\"Wiktor Kwapisiewicz\")\n```\n\nAdding new User IDs:\n\n```python\ncert = Cert.generate(\"Alice <alice@example.com>\")\nassert len(cert.user_ids) == 1;\n\ncert = cert.add_user_id(value = \"Alice <alice@company.invalid>\", certifier = cert.secrets.certifier())\n\nassert len(cert.user_ids) == 2;\n```\n\nRevoking User IDs:\n\n```python\ncert = Cert.generate(\"Bob <bob@example.com>\")\n\ncert = cert.add_user_id(value = \"Bob <bob@company.invalid>\", certifier = cert.secrets.certifier())\nassert len(cert.user_ids) == 2\n\n# create User ID revocation\nrevocation = cert.revoke_user_id(user_id = cert.user_ids[1], certifier = cert.secrets.certifier())\n\n# merge the revocation with the cert\ncert = Cert.from_bytes(cert.bytes() + revocation.bytes())\nassert len(cert.user_ids) == 1\n```\n\n### Notations\n\nNotations are small pieces of data that can be attached to signatures (and, indirectly, to User IDs).\n\nThe following example reads and displays a [Keyoxide][KX] proof URI:\n\n[KX]: https://keyoxide.org/\n\n```python\ncert = Cert.from_file(\"wiktor.asc\")\nuser_id = cert.user_ids[0]\nnotation = user_id.notations[0]\n\nassert notation.key == \"proof@metacode.biz\";\nassert notation.value == \"dns:metacode.biz?type=TXT\";\n```\n\nNotations can also be added:\n\n```python\nfrom pysequoia import Notation\n\ncert = Cert.from_file(\"signing-key.asc\")\n\n# No notations initially\nassert len(cert.user_ids[0].notations) == 0;\n\ncert = cert.set_notations(cert.secrets.certifier(), [Notation(\"proof@metacode.biz\", \"dns:metacode.biz\")])\n\n# Has one notation now\nprint(str(cert.user_ids[0].notations))\nassert len(cert.user_ids[0].notations) == 1;\n\n# Check the notation data\nnotation = cert.user_ids[0].notations[0]\n\nassert notation.key == \"proof@metacode.biz\";\nassert notation.value == \"dns:metacode.biz\";\n```\n\n### Key expiration\n\nCerts have an `expiration` getter for retrieving the current key\nexpiry time:\n\n```python\ncert = Cert.from_file(\"signing-key.asc\")\n\n# Cert does not have any expiration date:\nassert cert.expiration is None\n\ncert = Cert.from_file(\"wiktor.asc\")\n# Cert expires on New Year's Eve\nassert str(cert.expiration) == \"2022-12-31 12:00:02+00:00\"\n```\n\nKey expiration can also be adjusted with `set_expiration`:\n\n```python\nfrom datetime import datetime\n\ncert = Cert.from_file(\"signing-key.asc\")\n\n# Cert does not have any expiration date:\nassert cert.expiration is None\n\n# Set the expiration to some specified point in time\nexpiration = datetime.fromisoformat(\"2021-11-04T00:05:23+00:00\")\ncert = cert.set_expiration(expiration = expiration, certifier = cert.secrets.certifier())\nassert str(cert.expiration) == \"2021-11-04 00:05:23+00:00\"\n```\n\n### Key revocation\n\nCerts can be revoked. While [expiration makes the key unusable\ntemporarily][EXP] to encourage the user to refresh a copy revocation is\nirreversible.\n\n[EXP]: https://blogs.gentoo.org/mgorny/2018/08/13/openpgp-key-expiration-is-not-a-security-measure/\n\n```python\ncert = Cert.generate(\"Test Revocation <revoke@example.com>\")\nrevocation = cert.revoke(certifier = cert.secrets.certifier())\n\n# creating revocation signature does not revoke the key\nassert not cert.is_revoked\n\n# importing revocation signature marks the key as revoked\nrevoked_cert = Cert.from_bytes(cert.bytes() + revocation.bytes())\nassert revoked_cert.is_revoked\n```\n\n## Secret keys\n\nCertificates generated through `Cert.generate()` contain secret keys\nand can be used for signing and decryption.\n\nTo avoid accidental leakage secret keys are never directly printed\nwhen the Cert is written to a string. To enable this behavior use\n`Cert.secrets`. `secrets` returns `None` on certificates which do\nnot contain any secret key material (\"public keys\").\n\n```python\nc = Cert.generate(\"Testing key <test@example.com>\")\nassert c.has_secret_keys\n\n# by default only public parts are exported\npublic_parts = Cert.from_bytes(f\"{c}\".encode(\"utf8\"))\nassert not public_parts.has_secret_keys\nassert public_parts.secrets is None\n\n# to export secret parts use the following:\nprivate_parts = Cert.from_bytes(f\"{c.secrets}\".encode(\"utf8\"))\nassert private_parts.has_secret_keys\n```\n\n## OpenPGP Cards\n\nThere's an experimental feature allowing communication with OpenPGP\nCards (like YubiKey or Nitrokey).\n\n```python\nfrom pysequoia import Card\n\n# enumerate all cards\nall = Card.all()\n\n# open card by card ident\ncard = Card.open(\"0000:00000000\")\n\nprint(f\"Card ident: {card.ident}\")\nassert card.cardholder == \"John Doe\"\nassert card.cert_url == \"https://example.com/key.pgp\"\n```\n\nCards provide `keys` property that can be used to see which keys are imported\non the card:\n\n```python\nkeys = card.keys\nprint(f\"Keys: {keys}\")\nassert len(keys) == 3\n\nassert keys[0].fingerprint == \"ddc3e03c91fb52ca2d95c2444566f2743ed5f382\"\nassert \"sign\" in keys[0].usage\nassert keys[0].touch_required\n\nassert keys[1].fingerprint == \"689e152a7420be13dcaf2c142ac27adc1db9395e\"\nassert \"decrypt\" in keys[1].usage\nassert not keys[1].touch_required\n\nassert keys[2].fingerprint == \"731fbca93ce9821347bf8e696444723371d3c650\"\nassert \"authenticate\" in keys[2].usage\nassert keys[2].touch_required\n```\n\n\nCards can be used for signing data:\n\n```python\nsigner = card.signer(\"123456\")\n\nsigned = sign(signer, \"data to be signed\".encode(\"utf8\"))\nprint(f\"Signed data: {signed}\")\n```\n\nAs well as for decryption:\n\n```python\ndecryptor = card.decryptor(\"123456\")\n\nsender = Cert.from_file(\"passwd.pgp\")\nreceiver = Cert.from_file(\"full-key.asc\")\n\ncontent = \"Red Green Blue\"\n\nencrypted = encrypt(signer = sender.secrets.signer(\"hunter22\"), recipients = [receiver], bytes = content.encode(\"utf8\"))\n\nprint(f\"Encrypted data: {encrypted}\")\n\ndecrypted = decrypt(decryptor = decryptor, bytes = encrypted)\n\nassert content == decrypted.bytes.decode(\"utf8\");\n```\n\nNote that while this package allows using cards for signing and\ndecryption, the provisioning process is not supported.  [OpenPGP card\ntools][] can be used to initialize the card.\n\n[OpenPGP card tools]: https://crates.io/crates/openpgp-card-tools\n\n## License\n\nThis project is licensed under [Apache License, Version 2.0][APL].\n\n[APL]: https://www.apache.org/licenses/LICENSE-2.0.html\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the package by you shall be under the terms\nand conditions of this license, without any additional terms or\nconditions.\n\n## Sponsors\n\nMy work was supported by these generous organizations (alphabetical\norder):\n\n  - [nlnet.nl](https://nlnet.nl/)\n  - [pep.foundation](https://pep.foundation/)\n  - [sovereigntechfund.de](https://sovereigntechfund.de/en.html)\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Provides OpenPGP facilities using Sequoia-PGP library",
    "version": "0.1.23",
    "project_urls": {
        "Bug Tracker": "https://github.com/wiktor-k/pysequoia/issues",
        "Homepage": "https://github.com/wiktor-k/pysequoia",
        "changelog": "https://github.com/wiktor-k/pysequoia/tags",
        "repository": "https://github.com/wiktor-k/pysequoia"
    },
    "split_keywords": [
        "openpgp",
        " pgp",
        " gpg",
        " gnupg",
        " sequoia"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "17521a83d9c6325499c9943c69166b45dfd72b421fea04ac7e6dec9c2bffedeb",
                "md5": "7965f2a6ee66603315f1642afff533aa",
                "sha256": "1120c8868dfb81814a1167746d11c1a95b3cae58fa3f24cfbfaf579c03491f21"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp310-cp310-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "7965f2a6ee66603315f1642afff533aa",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1791144,
            "upload_time": "2024-03-21T13:35:36",
            "upload_time_iso_8601": "2024-03-21T13:35:36.170268Z",
            "url": "https://files.pythonhosted.org/packages/17/52/1a83d9c6325499c9943c69166b45dfd72b421fea04ac7e6dec9c2bffedeb/pysequoia-0.1.23-cp310-cp310-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b1a54c2b95660f8f3f1ee4e1db90e7e465951defc5951aca7baa2f0d8aaac26e",
                "md5": "8f2049d8cdb8551f5c3b93ff6274d2bd",
                "sha256": "49aa8d08359f0269cad807276dfa6005ff8f8f7e779ca06e675d9355c489f527"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp310-cp310-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "8f2049d8cdb8551f5c3b93ff6274d2bd",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1697882,
            "upload_time": "2024-03-21T13:35:49",
            "upload_time_iso_8601": "2024-03-21T13:35:49.903460Z",
            "url": "https://files.pythonhosted.org/packages/b1/a5/4c2b95660f8f3f1ee4e1db90e7e465951defc5951aca7baa2f0d8aaac26e/pysequoia-0.1.23-cp310-cp310-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8e932b58636579d90199fb3e25840d862387471726a004b973c563ef33d88bff",
                "md5": "84a9d14454e17e8b782c6045125dd766",
                "sha256": "2735d1290acf483b9bebd732668f4fd66a1f96650748cc9aa34ddda3ef59a068"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "84a9d14454e17e8b782c6045125dd766",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 3600055,
            "upload_time": "2024-03-21T13:35:52",
            "upload_time_iso_8601": "2024-03-21T13:35:52.685352Z",
            "url": "https://files.pythonhosted.org/packages/8e/93/2b58636579d90199fb3e25840d862387471726a004b973c563ef33d88bff/pysequoia-0.1.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4a7e6af99c8b9e92205476bd07711bacd7baa61d3215749cc126e13a04eb3770",
                "md5": "fbe437bdfca43c33980b1527c16a0ede",
                "sha256": "bbbd5e24e2a01221802ee204b5ba7fec3edc399ba80a39091560be60200fd49b"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp310-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "fbe437bdfca43c33980b1527c16a0ede",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1373009,
            "upload_time": "2024-03-21T13:35:55",
            "upload_time_iso_8601": "2024-03-21T13:35:55.080460Z",
            "url": "https://files.pythonhosted.org/packages/4a/7e/6af99c8b9e92205476bd07711bacd7baa61d3215749cc126e13a04eb3770/pysequoia-0.1.23-cp310-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "76aa2c84129b706619d0d21de14f1ad8f434cd3bb13af3a766f5ea0b0df30093",
                "md5": "c0818bd67608eba81930a1ecd60b5996",
                "sha256": "9239d7dcddb070ffeef640e777f227b0c27d7050b4a76be05f0727724c48660b"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp311-cp311-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c0818bd67608eba81930a1ecd60b5996",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1789216,
            "upload_time": "2024-03-21T13:35:57",
            "upload_time_iso_8601": "2024-03-21T13:35:57.402477Z",
            "url": "https://files.pythonhosted.org/packages/76/aa/2c84129b706619d0d21de14f1ad8f434cd3bb13af3a766f5ea0b0df30093/pysequoia-0.1.23-cp311-cp311-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0696dab2f166215dec6c6d93b0bffaa6eedb88b56e74cbe6fa83bcfe16752889",
                "md5": "1166ab4e1a663b9b641b683de653cef7",
                "sha256": "46fb7ed4503e6df774abffb56e414de3a87c6bd899a7b0b8cbed5924fda79c9e"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp311-cp311-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "1166ab4e1a663b9b641b683de653cef7",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1697137,
            "upload_time": "2024-03-21T13:35:59",
            "upload_time_iso_8601": "2024-03-21T13:35:59.909020Z",
            "url": "https://files.pythonhosted.org/packages/06/96/dab2f166215dec6c6d93b0bffaa6eedb88b56e74cbe6fa83bcfe16752889/pysequoia-0.1.23-cp311-cp311-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fa85fcee91c4267da058d4e5c0bc91ba7be61f6e39ce68eb5961d06f0d67eb24",
                "md5": "4f9d53a8f0640ff5e2382e0c1295e036",
                "sha256": "9d7ae181c88066e755d92aef0a1f32b4f74425b9f35cd45e08b2a20649f7cff5"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4f9d53a8f0640ff5e2382e0c1295e036",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 3600433,
            "upload_time": "2024-03-21T13:36:02",
            "upload_time_iso_8601": "2024-03-21T13:36:02.476297Z",
            "url": "https://files.pythonhosted.org/packages/fa/85/fcee91c4267da058d4e5c0bc91ba7be61f6e39ce68eb5961d06f0d67eb24/pysequoia-0.1.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ff8a816ec9e7dc86eec244920448bbd4ec63c08f25080c428c2479c6ab0b9882",
                "md5": "104dc174e5b00fd6d6099d56fa2aa792",
                "sha256": "42493060026d1cdec937cd71b1df1d474c6812a921188d9814d59f15d5d0885c"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp311-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "104dc174e5b00fd6d6099d56fa2aa792",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1373153,
            "upload_time": "2024-03-21T13:36:04",
            "upload_time_iso_8601": "2024-03-21T13:36:04.387463Z",
            "url": "https://files.pythonhosted.org/packages/ff/8a/816ec9e7dc86eec244920448bbd4ec63c08f25080c428c2479c6ab0b9882/pysequoia-0.1.23-cp311-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "29c61280cbfe6a70ce06fa107f0d35114bccacfea928f1ae43833a993c849e4f",
                "md5": "383bad82f9af6cc038ab9886d3eb52e9",
                "sha256": "b15d92426563dc75a50f79099049d35c01aa5a8edc6bd9900f12dadc2a97d560"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp312-cp312-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "383bad82f9af6cc038ab9886d3eb52e9",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 1787884,
            "upload_time": "2024-03-21T13:36:07",
            "upload_time_iso_8601": "2024-03-21T13:36:07.008469Z",
            "url": "https://files.pythonhosted.org/packages/29/c6/1280cbfe6a70ce06fa107f0d35114bccacfea928f1ae43833a993c849e4f/pysequoia-0.1.23-cp312-cp312-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "70f6c43c83c48c1151df91448a6600f663db4f2d4c7d4da1f48114893c68e922",
                "md5": "5475e98da8c684d19d20ebfac8d6a74a",
                "sha256": "43d24e3499e6c95ce994f49ae31f9e6917ed2cb8539d92843987bff7bbcf24cd"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp312-cp312-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "5475e98da8c684d19d20ebfac8d6a74a",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 1696661,
            "upload_time": "2024-03-21T13:36:08",
            "upload_time_iso_8601": "2024-03-21T13:36:08.887656Z",
            "url": "https://files.pythonhosted.org/packages/70/f6/c43c83c48c1151df91448a6600f663db4f2d4c7d4da1f48114893c68e922/pysequoia-0.1.23-cp312-cp312-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8a083c18e41fe22efdc5eb676cdb6b619ba04c1bdfca417a46b10d57099e89c6",
                "md5": "13b2eaaaebc74821f946e2d6a6aab25f",
                "sha256": "61dd4fab75639fc5dc36c4b65d9a4d4de4a4e33012e4393cfec6fb3c15e42826"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "13b2eaaaebc74821f946e2d6a6aab25f",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 3598721,
            "upload_time": "2024-03-21T13:36:10",
            "upload_time_iso_8601": "2024-03-21T13:36:10.799649Z",
            "url": "https://files.pythonhosted.org/packages/8a/08/3c18e41fe22efdc5eb676cdb6b619ba04c1bdfca417a46b10d57099e89c6/pysequoia-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3db156e399256e0d204bfc4b36fce8cb50f34830a6a1c128fa35c35b8b329f6d",
                "md5": "88f98cb092a847c564d8509f4f691b96",
                "sha256": "876f8d174745e8f2bd567c5952081fe77b32f83028e71f24e3c028cb76c31f91"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp312-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "88f98cb092a847c564d8509f4f691b96",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 1372100,
            "upload_time": "2024-03-21T13:36:13",
            "upload_time_iso_8601": "2024-03-21T13:36:13.431289Z",
            "url": "https://files.pythonhosted.org/packages/3d/b1/56e399256e0d204bfc4b36fce8cb50f34830a6a1c128fa35c35b8b329f6d/pysequoia-0.1.23-cp312-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9643b4f67cc9c8f5d70d5802e453fc5bc4da16e996d80d8e704648e4597aad90",
                "md5": "b6b12a36da483d14acc8ae9795719696",
                "sha256": "267903dd9f7ed0d178dc38a3cf25305e562336fdd6573a3ff42ae13dba3e2231"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b6b12a36da483d14acc8ae9795719696",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 3601113,
            "upload_time": "2024-03-21T13:36:15",
            "upload_time_iso_8601": "2024-03-21T13:36:15.838910Z",
            "url": "https://files.pythonhosted.org/packages/96/43/b4f67cc9c8f5d70d5802e453fc5bc4da16e996d80d8e704648e4597aad90/pysequoia-0.1.23-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c18b8481298bde5ce9ff181dd7d7e2e6c329dda405c8a33b39c1fb5dbe988ebf",
                "md5": "3c9c641df590325daf4e29b6b9f63724",
                "sha256": "5165ae2817aaffa02a67fac9bdcaf1bd536e8452e60de00c4a323c83ffc2e219"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp37-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "3c9c641df590325daf4e29b6b9f63724",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1372918,
            "upload_time": "2024-03-21T13:36:17",
            "upload_time_iso_8601": "2024-03-21T13:36:17.748149Z",
            "url": "https://files.pythonhosted.org/packages/c1/8b/8481298bde5ce9ff181dd7d7e2e6c329dda405c8a33b39c1fb5dbe988ebf/pysequoia-0.1.23-cp37-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5193e98b30400ecd19f4c198df308ce8fe0503c456f7ffd24db9784c3732bcb4",
                "md5": "23e3ce7a7632551621a22a1f17a562fa",
                "sha256": "dffd72846906a4dbe28787bd216afae97f06c0d26a140d2c497a9d7bb11c812f"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "23e3ce7a7632551621a22a1f17a562fa",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 3600691,
            "upload_time": "2024-03-21T13:36:19",
            "upload_time_iso_8601": "2024-03-21T13:36:19.995173Z",
            "url": "https://files.pythonhosted.org/packages/51/93/e98b30400ecd19f4c198df308ce8fe0503c456f7ffd24db9784c3732bcb4/pysequoia-0.1.23-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "21522fcf9f7e96c9645b4f36217df019634c522b88cbaa6e21cd05c4f4eba9ec",
                "md5": "92b76c9583b785464257fd7468eb981a",
                "sha256": "80e2d016c18889e07c916dc1af59b1c008ea0404a7e68da7ad17df3d0ef6936b"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp38-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "92b76c9583b785464257fd7468eb981a",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 1372994,
            "upload_time": "2024-03-21T13:36:21",
            "upload_time_iso_8601": "2024-03-21T13:36:21.680213Z",
            "url": "https://files.pythonhosted.org/packages/21/52/2fcf9f7e96c9645b4f36217df019634c522b88cbaa6e21cd05c4f4eba9ec/pysequoia-0.1.23-cp38-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d5fc906630b34e6587f08d602039e5ca0b4358d7775dcee9a6669755cb393ad1",
                "md5": "5d945f0445c5001813da189c77062ec1",
                "sha256": "5694d7ea2bf0c850628d1b8586e3474e1cb725d077d0a0c055e0d884d149db7c"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5d945f0445c5001813da189c77062ec1",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 3600718,
            "upload_time": "2024-03-21T13:36:23",
            "upload_time_iso_8601": "2024-03-21T13:36:23.581368Z",
            "url": "https://files.pythonhosted.org/packages/d5/fc/906630b34e6587f08d602039e5ca0b4358d7775dcee9a6669755cb393ad1/pysequoia-0.1.23-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b692f1ec943f9c7cbbffba9761d247814a88828a2adb4c19d7be8df134a46fbf",
                "md5": "532216db650e0c89d0a03eb0cc2c8153",
                "sha256": "c674ec3e3916ac748f72c6b97d628dd60d6f877c12257232b3abd845a4ec9ff9"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-cp39-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "532216db650e0c89d0a03eb0cc2c8153",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 1373517,
            "upload_time": "2024-03-21T13:36:25",
            "upload_time_iso_8601": "2024-03-21T13:36:25.368022Z",
            "url": "https://files.pythonhosted.org/packages/b6/92/f1ec943f9c7cbbffba9761d247814a88828a2adb4c19d7be8df134a46fbf/pysequoia-0.1.23-cp39-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b94a3392480cc914db6a007ca43cf05dd8e083855e237602cf54f45757e62ddd",
                "md5": "1c6b92059d004e30be8026d447b35f81",
                "sha256": "d979e9e17137d143fef47f307415f4d10c1e90bab140e9ee4c416237672b909d"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "1c6b92059d004e30be8026d447b35f81",
            "packagetype": "bdist_wheel",
            "python_version": "pp310",
            "requires_python": ">=3.7",
            "size": 3600781,
            "upload_time": "2024-03-21T13:36:28",
            "upload_time_iso_8601": "2024-03-21T13:36:28.223462Z",
            "url": "https://files.pythonhosted.org/packages/b9/4a/3392480cc914db6a007ca43cf05dd8e083855e237602cf54f45757e62ddd/pysequoia-0.1.23-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "505609eaced497973adac3dc69242b351b28e39075c402a5d5b82b4fbc28da2d",
                "md5": "8a980dce4c100041bf1535583e9ed06e",
                "sha256": "c872c349f0462adb25b78bce4bd656fc442989049f5eb3a3cd1e4541a5764783"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8a980dce4c100041bf1535583e9ed06e",
            "packagetype": "bdist_wheel",
            "python_version": "pp37",
            "requires_python": ">=3.7",
            "size": 3603051,
            "upload_time": "2024-03-21T13:36:30",
            "upload_time_iso_8601": "2024-03-21T13:36:30.379464Z",
            "url": "https://files.pythonhosted.org/packages/50/56/09eaced497973adac3dc69242b351b28e39075c402a5d5b82b4fbc28da2d/pysequoia-0.1.23-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "07aa46d3c2348d6aa16afa7a61b204a3c74acb7572ebf625ae73c34ef34dbaa3",
                "md5": "62bc8dddeb76c163de2471845e5dde0f",
                "sha256": "eced2d1e3d0f47c4519edd5ea6ab533bfb1b8b86bbf4b7dfb7de5ab6c6290fbf"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "62bc8dddeb76c163de2471845e5dde0f",
            "packagetype": "bdist_wheel",
            "python_version": "pp38",
            "requires_python": ">=3.7",
            "size": 3600260,
            "upload_time": "2024-03-21T13:36:32",
            "upload_time_iso_8601": "2024-03-21T13:36:32.161029Z",
            "url": "https://files.pythonhosted.org/packages/07/aa/46d3c2348d6aa16afa7a61b204a3c74acb7572ebf625ae73c34ef34dbaa3/pysequoia-0.1.23-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c5822d44f1692feef9ae653a77ceeb6d4d19702a34011e4cb80beae731a54c18",
                "md5": "92fbc2178474625c1ec96b693c2054d6",
                "sha256": "4fc38d0e74a4a5f56cd27b1f665d56f04ab09e3c2d26dfea840967660231fe63"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "92fbc2178474625c1ec96b693c2054d6",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.7",
            "size": 3600700,
            "upload_time": "2024-03-21T13:36:34",
            "upload_time_iso_8601": "2024-03-21T13:36:34.308237Z",
            "url": "https://files.pythonhosted.org/packages/c5/82/2d44f1692feef9ae653a77ceeb6d4d19702a34011e4cb80beae731a54c18/pysequoia-0.1.23-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "55a7631faa2a7f0e81c400967b0f8223d5d328e488c639ca5fdd6c2f0e602ad9",
                "md5": "35863a8d16fcdd212c61bcc47984fb72",
                "sha256": "8a965ed71023448206003b8186f72d44821f943d94d8d52957270e24119f3bc2"
            },
            "downloads": -1,
            "filename": "pysequoia-0.1.23.tar.gz",
            "has_sig": false,
            "md5_digest": "35863a8d16fcdd212c61bcc47984fb72",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 274132,
            "upload_time": "2024-03-21T13:36:36",
            "upload_time_iso_8601": "2024-03-21T13:36:36.722972Z",
            "url": "https://files.pythonhosted.org/packages/55/a7/631faa2a7f0e81c400967b0f8223d5d328e488c639ca5fdd6c2f0e602ad9/pysequoia-0.1.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 13:36:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wiktor-k",
    "github_project": "pysequoia",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pysequoia"
}
        
Elapsed time: 0.23027s