Python SDK for the person.run API
Project description
person-sdk
Python SDK for the person.run API.
Install
pip install person-sdk
With Pydantic models for typed responses:
pip install person-sdk[models]
Quickstart
from person_sdk import PersonClient
client = PersonClient(
api_key="your-api-key",
default_tenant_id="your-tenant-id",
)
persona = client.create_persona(seed={
"firstName": "Aria",
"lastName": "Chen",
"age": 32,
"location": "San Francisco",
"baseOccupation": "Product designer",
})
reply = client.prompt(
persona_id=persona["persona"]["id"],
user_prompt="How do you approach design challenges?",
)
print(reply["response"])
Features
- Auto-generated Pydantic models from OpenAPI spec (optional)
- Built-in retries with exponential backoff on 429/5xx
default_tenant_idto avoid passing tenant on every call- Full coverage: personas, prompting, timeline, populations, and studies
- Zero required dependencies — stdlib only
License
MIT
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
person_sdk-1.0.6.tar.gz
(18.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file person_sdk-1.0.6.tar.gz.
File metadata
- Download URL: person_sdk-1.0.6.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dbfda683c00e9434abcbdb00b05088236002fbda623a72d271e53698b4387ee
|
|
| MD5 |
93264d67253e382665e9da452d2722c4
|
|
| BLAKE2b-256 |
beb36391bb8118bd040e66bc67fa9fe8bb0efb3a34137ead229a321af831ef37
|
File details
Details for the file person_sdk-1.0.6-py3-none-any.whl.
File metadata
- Download URL: person_sdk-1.0.6-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a76304ca691c22cc13c24ef3e4405532afaabb805275d08dff1514496ba635f
|
|
| MD5 |
57330ba849285685c92b0d24327adc1b
|
|
| BLAKE2b-256 |
a870ef5d7d93309d5cf363d54698be329430898d3f7b00317e693888ff1c5bcb
|