Timestep (Python)
Python bindings for the Timestep Agents SDK. See the root README.md for the full story; this file highlights Python-specific setup.
Install
pip install timestep
Prerequisites (Python)
OPENAI_API_KEY- PostgreSQL: Set
PG_CONNECTION_URI=postgresql://user:pass@host/db
Quick start
from timestep import run_agent, RunStateStore
from agents import Agent, Session
agent = Agent(model="gpt-4.1")
session = Session()
state_store = RunStateStore(agent=agent, session_id=await session._get_session_id())
result = await run_agent(agent, input_items, session, stream=False)
if result.interruptions:
await state_store.save(result.to_state())
Cross-language resume
Save in Python, load in TypeScript with the same session_id and RunStateStore.load().
Model routing
Use MultiModelProvider if you need OpenAI + Ollama routing:
from timestep import MultiModelProvider, MultiModelProviderMap, OllamaModelProvider
provider_map = MultiModelProviderMap()
provider_map.add_provider("ollama", OllamaModelProvider())
model_provider = MultiModelProvider(provider_map=provider_map)
Metadata
Release files for timestep 2026.0.57
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 |
|---|---|---|---|---|
| timestep-2026.0.57.tar.gz | 396.8 kB | Without provenance | Details for timestep-2026.0.57.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timestep-2026.0.57-py3-none-any.whl | Python 3 | none | any | Details for timestep-2026.0.57-py3-none-any.whl |
Total release size: 731.6 kB
Release files / timestep-2026.0.57.tar.gz
| Download URL | timestep-2026.0.57.tar.gz |
|---|---|
| Size | 396.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06b5d43d5bc89a3e70695665f8cc6ad820dd70cdc3fff66cc9360e87567935aa
|
|
BLAKE2b-256 checksum How to use checksums |
20baeafae083f15af76ae7a5633551190ff5fd0067748ab37e22d233f1be4293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / timestep-2026.0.57-py3-none-any.whl
| Download URL | timestep-2026.0.57-py3-none-any.whl |
|---|---|
| Size | 334.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ef79ad468d59dc81b6cee0e05e67b47a700597c998cf692d5e8622b30d7202e
|
|
BLAKE2b-256 checksum How to use checksums |
11f9bd655b2db008eb5c8847893105e42dfa4f8b5b032d69ab229fbf5b6f85b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for timestep 2026.0.57
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.