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

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.1
File Size Uploaded Provenance Actions
persona_id-0.3.1.tar.gz 22.1 kB With provenance Details for persona_id-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / persona_id-0.3.1.tar.gz

Download URL persona_id-0.3.1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7ec1312fe472a190bf1d86d89e75a0e592c895f237885976a0131e37070c15e0
BLAKE2b-256 checksum
How to use checksums
5e1216c15c1bd2eeb08560838e087501c9b60a1cf57948c85f790417db14fedc
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.1-py3-none-any.whl

Download URL persona_id-0.3.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37a10fcd565a17af1170f99e59a2b30bf31b294f1ac2e9e7e5f37a31ab0c103e
BLAKE2b-256 checksum
How to use checksums
7a38ca1c9ca1ec41bf29e318538a9d36ba8d5b766f02b1a3cbe2957c07ff0f46
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.1

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