Skip to main content

deployzy

Official Python SDK for Deployzy — deploy & tunnel platform.

Install

pip install deployzy

Quick Start

import asyncio
from deployzy import Deployzy

async def main():
    async with Deployzy(authtoken="sm_live_...") as client:
        # List active tunnels
        tunnels = await client.tunnels.list()
        print(tunnels)

        # Get captured requests
        requests = await client.inspect.list(tunnels[0].url)
        for req in requests:
            print(f"{req.method} {req.path} -> {req.status_code} ({req.duration_ms}ms)")

asyncio.run(main())

Live Traffic Streaming

async with Deployzy(authtoken="sm_live_...") as client:
    async for req in client.inspect.subscribe("https://abc123.deployzy.com"):
        print(f"{req.method} {req.path} -> {req.status_code}")

API Keys

async with Deployzy(authtoken="sm_live_...") as client:
    # List keys
    keys = await client.api_keys.list()

    # Create a new key
    full_token, info = await client.api_keys.create("my-app")
    print(full_token)  # sm_live_... (save this!)

    # Delete a key
    await client.api_keys.delete(info.id)

Custom Domains

async with Deployzy(authtoken="sm_live_...") as client:
    # Add a domain
    domain, instructions = await client.domains.create("api.example.com")
    print(f"Add CNAME: {instructions['name']} -> {instructions['target']}")

    # Verify DNS
    result = await client.domains.verify(domain.id)
    print(result)

    # List domains
    domains = await client.domains.list()

Error Handling

from deployzy import Deployzy, AuthError, RateLimitError, ApiError

try:
    async with Deployzy(authtoken="invalid") as client:
        await client.tunnels.list()
except AuthError:
    print("Bad token")
except RateLimitError as e:
    print(f"Rate limited, retry in {e.retry_after}s")
except ApiError as e:
    print(f"API error {e.status_code}: {e}")

Self-Hosted

client = Deployzy(
    authtoken="sm_live_...",
    server_url="https://tunnel.mycompany.com",
)

License

MIT

Download files

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

Source Distribution

deployzy-1.1.5.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

deployzy-1.1.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file deployzy-1.1.5.tar.gz.

File metadata

  • Download URL: deployzy-1.1.5.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deployzy-1.1.5.tar.gz
Algorithm Hash digest
SHA256 88fc27f08ad22e75459ccbcafabfd67a47d4f8b173aad5be43bac52dcadbe1e8
MD5 ed5a21e7db8fdaae41e9ef1cf95b7883
BLAKE2b-256 bffc52508afcb6bcceda61f83680f14ce05af1cb80da74ac726a37600ccfaf73

See more details on using hashes here.

Provenance

The following attestation bundles were made for deployzy-1.1.5.tar.gz:

Publisher: release.yml on jams24/deployzy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deployzy-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: deployzy-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deployzy-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f1de8738ac70d542cbcab6b129240c9e7b83b4b0cbf67a22e50b8facac68c8ac
MD5 aa0a729a293b25a0244c736dca2baea9
BLAKE2b-256 c8b380e655cc746798e37a0334c1bb8f424dd957b8b08eeb2092bf269ea817fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for deployzy-1.1.5-py3-none-any.whl:

Publisher: release.yml on jams24/deployzy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.1.6

2 files

This release

1.1.5 This release

2 files

1.1.3

2 files

1.1.2

2 files

1.1.0

2 files

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