Skip to main content

Python wrapper for the Temporal development server CLI

Project description

Temporal Server Python Wrapper (Experimental)

[Experimental AI-generated prototype project; not intended for public use]

PyPI version

Installs and runs the Temporal development server (temporal server start-dev) via Python packaging (uv).

Bundles the official pre-compiled temporal CLI binary (currently v1.3.0) for your platform within the dandavison-temporalio-server distribution package. The Python code is importable as temporalio_server.

Usage

Provides the temporal-server command, wrapping temporal server start-dev.

Command Line

Run without persistent install using uvx:

# Run with default settings (ports 7233/8233)
uvx dandavison-temporalio-server temporal-server start-dev

# Run with custom ports
uvx dandavison-temporalio-server temporal-server start-dev --port 7234 --ui-port 8234

Install persistently into uv tool environment:

# Install the distribution package
uv tool install dandavison-temporalio-server

# Run the command (may require shell restart/rehash)
temporal-server start-dev

Python (Tests/Scripts)

Provides temporalio_server.DevServer async context manager.

Install with [examples] extra (includes temporalio SDK):

# Install into project environment
uv pip install 'dandavison-temporalio-server[examples]'

# Or add to pyproject.toml for uv add/sync
# dandavison-temporalio-server = { version = "*", extras = ["examples"] }

Example usage:

import asyncio
from temporalio.client import Client
from temporalio_server import DevServer

async def main():
    async with DevServer() as server:
        client = await Client.connect(server.target)
        print(f"Dev server ready at {server.target}")
        # ... use client ...

if __name__ == "__main__":
    asyncio.run(main())

See example.py for a runnable workflow/activity example.

Development

  • Setup: uv venv && uv sync --all-extras
  • Build: uv build
  • Run Example: uv run python example.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dandavison_temporalio_server-0.1.13.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dandavison_temporalio_server-0.1.13-cp313-cp313-macosx_15_0_arm64.whl (30.4 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

File details

Details for the file dandavison_temporalio_server-0.1.13.tar.gz.

File metadata

File hashes

Hashes for dandavison_temporalio_server-0.1.13.tar.gz
Algorithm Hash digest
SHA256 96f88b1180dc0b023f80ad032f3e1a3485fb982f6721025c78cf3383397b49be
MD5 631c7c06844c264c38d8e5db7ad77eae
BLAKE2b-256 0b41de95a3332fcc7cb2b03ab6993dea33e77a4e8a9306ac0ec23de90588a1a8

See more details on using hashes here.

File details

Details for the file dandavison_temporalio_server-0.1.13-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for dandavison_temporalio_server-0.1.13-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ea0ef8ed91a5bd6014593ed2ef1a3054a30af1b7b12f372f2c06242e7ec697fc
MD5 c1b75f24297cca48944eace575f200a5
BLAKE2b-256 a29e6b486a04a9d61863b4dc3b6f9bbff9846abec3aa157bfac2ddadc7fde19d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page