Skip to main content

Persona Python Server SDK

The official Python server library for Persona integration.

For full documentation, see Relay Server SDK Reference.

Installation

pip install persona-id

Requires Python 3.11 or later.

Usage

from persona import Persona

persona = Persona(api_key="<YOUR_API_KEY>")

relay = persona.relays.create(claim_type="live_human_presence", encryption_key_jwk=None)

issued = persona.relays.issue_privacy_pass(claim_type="live_human_presence")

claim = persona.relays.generate_claim(
    privacy_pass_token=issued.privacy_pass_token,
    relay_token=relay.relay_token,
    relay_secret=relay.relay_secret,
)

print(claim.claim_payload, claim.token_consumed)

Metadata

Release files for persona-id 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for persona-id 0.3.0
File Size Uploaded Provenance Actions
persona_id-0.3.0.tar.gz 22.0 kB With provenance Details for persona_id-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for persona-id 0.3.0
File Interpreter ABI Platform Actions
persona_id-0.3.0-py3-none-any.whl Python 3 none any Details for persona_id-0.3.0-py3-none-any.whl

Total release size: 33.8 kB

Release files / persona_id-0.3.0.tar.gz

Download URL persona_id-0.3.0.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1e7961c076d1a1f1a4bdec1a842ab5a1a30c9d3212e8bff8c29829cc6a8e77cf
BLAKE2b-256 checksum
How to use checksums
5ba4b2c0d53dc8246bcf4b125390110f8a2e572a3c4a4c70537e165a16237fb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / persona_id-0.3.0-py3-none-any.whl

Download URL persona_id-0.3.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9442335e00ee067734196021f756dc43fbc647b55d759a82f7cc75b5229912a3
BLAKE2b-256 checksum
How to use checksums
ae6ba9e9e34af89234fea01cf2cd0b71a56cefed65aa6a9cc13351ee0e25b107
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for persona-id 0.3.0

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.

Select from 2 files

Attestation for persona_id-0.3.0.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 Nov 24, 2026.

Transparency log

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page