Skip to main content

SolidPing Python SDK

Official Python SDK for SolidPing: manage checks, incidents and status pages from Python without writing HTTP calls.

Work in progress, not published yet. The target is described in fclairamb/solidping#1117.

Install

pip install solidping

Python 3.14 or later. The only dependency is httpx; the client is synchronous.

Quickstart

Create a personal access token in SolidPing and export it:

export SOLIDPING_TOKEN=pat_...
export SOLIDPING_ORG=acme
from solidping import SolidPing

sp = SolidPing()  # reads SOLIDPING_URL, SOLIDPING_ORG, SOLIDPING_TOKEN

# Create a check
check = sp.checks.create(name="Website", config={"url": "https://acme.com"})
print(check.slug, check.status)

# List the checks that are down
for check in sp.checks.list(status="down"):
    print(check.name)

# Acknowledge every open incident
for incident in sp.incidents.list(state="active"):
    sp.incidents.acknowledge(incident.uid)

Configuration

Each setting is an argument of SolidPing(...) or an environment variable:

Argument Environment Default
url SOLIDPING_URL https://solidping.io
org SOLIDPING_ORG required
token SOLIDPING_TOKEN required
timeout 30 (seconds)
max_retries 2

The client is also a context manager (with SolidPing() as sp:) and has a close() method.

Resources

sp.checks, sp.incidents, sp.status_pages, sp.maintenance_windows and sp.channels. Their methods are list, get, create, update and delete where the API has them, plus the actions of the resource: sp.checks.run_now(id), sp.incidents.acknowledge(id), unacknowledge, snooze, unsnooze and resolve.

Arguments are the API field names, unchanged (sp.checks.create(name=..., config=...)), and the organization is never an argument. Results are objects with the API field names as attributes and a to_dict() method. list returns an iterator that follows the pagination cursor for you. A field the SDK does not know yet is kept (to_dict() returns it, and it is readable as an attribute), and an unknown enum value, such as a plugin check type, is accepted.

Errors

import solidping
from solidping import SolidPing

sp = SolidPing(url="https://solidping.acme.com", org="acme", token="...", timeout=10, max_retries=0)

try:
    sp.checks.get("missing")
except solidping.NotFoundError:
    print("no such check")
except solidping.APIError as e:
    print(e.status, e.code, e.title, e.detail)

Everything the SDK raises is a SolidPingError. An APIError carries status, code, title, detail and fields (the invalid fields of a validation error). The subclasses are AuthenticationError (401), PermissionDeniedError (403), NotFoundError (404), ValidationError (400, 422), ConflictError (409) and RateLimitError (429). A status without a subclass is a plain APIError, whatever its code. APIConnectionError means the server could not be reached, APITimeoutError (a subclass of it) that it did not answer in time.

Retries and timeout

Connection errors, timeouts, 429 and 5xx are retried twice with exponential backoff and jitter. A 429 waits for its Retry-After. A POST is retried only on 429, because the API has no idempotency key. max_retries=0 disables the retries. The timeout is 30 seconds by default.

Endpoints the SDK does not cover

regions = sp.request("GET", "/api/v1/orgs/acme/regions")

request(method, path, body=None, params=None) uses the same auth, retries and errors, and returns the decoded JSON.

Debugging

SOLIDPING_LOG=debug logs each request and its response status on stderr (through the solidping logger). The token is never logged.

Development

See AGENTS.md.

License

MIT

Metadata

Release files for solidping 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 solidping 0.1.0
File Size Uploaded Provenance Actions
solidping-0.1.0.tar.gz 201.1 kB With provenance Details for solidping-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 257.7 kB

Release files / solidping-0.1.0.tar.gz

Download URL solidping-0.1.0.tar.gz
Size 201.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd3ee763a5bf2158ff8f106d7e4ad534d4196883b87047cfa193ea80b0a7cf6d
BLAKE2b-256 checksum
How to use checksums
cabaa1adb8b94d2e8a92b83f44d7ed38f57a405037b4cf769a62d037d401f671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

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

Download URL solidping-0.1.0-py3-none-any.whl
Size 56.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
473f2efa3d5db6e185cdf1535f72ed80b24799db8bbf6edb5c1584bc3e27b658
BLAKE2b-256 checksum
How to use checksums
7f98da7855d6a02c2c56b9fa4d8e996e418cbe76129e157cb204ef69bbaf9d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

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

Select from 2 files

Attestation for solidping-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 Nov 29, 2026.

Transparency log

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 Full 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