Skip to main content

serviceos

Python SDK for ServiceOS API.

Installation

pip install serviceos

Quick Start

from serviceos import ServiceOS

client = ServiceOS(api_key="sk_...", org_id="org_123")

# List open tickets
tickets = client.tickets.list(status="open")

# Create a ticket
ticket = client.tickets.create(title="Bug report", priority="high")

# Update a ticket
client.tickets.update(ticket["data"]["ticket_id"], status="resolved")

# Auto-paginate
for ticket in client.tickets.list_all(status="open"):
    print(ticket["title"])

# Teams and queues
teams = client.teams.list()
queues = client.queues.list()

Error Handling

from serviceos import ServiceOS, NotFoundError, RateLimitError

try:
    client.tickets.get("nonexistent")
except NotFoundError:
    print("Ticket not found")
except RateLimitError as e:
    print(f"Retry after {e.retry_after}s")

Features

  • Sync HTTP client (httpx)
  • Pydantic models for type-safe parameters
  • Auto-retry with tenacity (429 + 5xx, exponential backoff)
  • Pagination iterator via list_all()
  • Context manager support
  • Debug mode for request logging

Metadata

Release files for serviceos 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serviceos 0.1.0
File Size Uploaded Provenance
serviceos-0.1.0.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for serviceos 0.1.0
File Interpreter ABI Platform
serviceos-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / serviceos-0.1.0.tar.gz

Download URL serviceos-0.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
163406aaef91b91b9fd729fb22b4f594c45d4d101010e8d4de543c566e709dca
BLAKE2b-256 checksum
How to use checksums
4ffb8b3098e4233e947a7df6ce3b84cae43125a78f2e4c22a29f2d84860eae49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / serviceos-0.1.0-py3-none-any.whl

Download URL serviceos-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1be169ad9cfda3c501048c775acbc9efb96cb4f9cabdfc6d6d2b454aa9c05dd
BLAKE2b-256 checksum
How to use checksums
4d752c8cb26058d6873c8d9bd09dfcaa3be602b3c4b6e7e70cf9d3059d20285c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for serviceos 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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