poe
Official Python client for the Poe chat completions API.
Installation
pip install poe
Quick Start
from poe import PoeClient
client = PoeClient(api_key="your-poe-api-key")
# Simple chat
response = client.chat("What is Python?", model="GPT-4o")
print(response["choices"][0]["message"]["content"])
Streaming
for chunk in client.stream("Tell me a story", model="GPT-4o"):
print(chunk, end="", flush=True)
Options
client = PoeClient(
api_key="your-key",
timeout=120.0, # request timeout in seconds
)
response = client.chat(
"Explain quantum computing",
model="GPT-4o",
temperature=0.7,
max_tokens=1024,
system_prompt="You are a helpful physics teacher.",
)
Context Manager
with PoeClient(api_key="your-key") as client:
resp = client.chat("Hello!")
print(resp["choices"][0]["message"]["content"])
API Key
Get your API key from poe.com/api_key.
License
MIT
Metadata
Release files for poe 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poe-0.1.0.tar.gz | 4.5 kB | With provenance | Details for poe-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for poe-0.1.0-py3-none-any.whl |
Total release size: 8.7 kB
Release files / poe-0.1.0.tar.gz
| Download URL | poe-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f293cd30de517b89daa82c0537bc5015d48871f0fcfe720f5eaa01aab4a03299
|
|
BLAKE2b-256 checksum How to use checksums |
622323e42436a734412d8e46ecdc05041a5533619ce6b3bcb05977c34d9e61f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 30, 2026.
Transparency logRelease files / poe-0.1.0-py3-none-any.whl
| Download URL | poe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b71291c874befd2d8607cff13cbbc9c847016781742e57c3ab6729bd777f65
|
|
BLAKE2b-256 checksum How to use checksums |
20820736aa02fb146c1e7f742467ce58df2348bcb43cb2da9e17081bc5cf5cfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 30, 2026.
Transparency logSecurity for poe 0.1.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.
Attestation for poe-0.1.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 Mar 30, 2026.
Transparency logA 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.