Skip to main content

Placeholder for the official Python SDK for Syttra (https://syttra.com). Real client lands in 0.1+.

Project description

syttra (Python)

⚠️ 0.0.x is a name-reservation placeholder. The real SDK lands in 0.1.0 — see syttra.com/docs/sdk/python for status.

The Python SDK for Syttra — the API for clean, AI-ready web content. Until 0.1.0 ships, the REST API at https://api.syttra.com is fully usable with any HTTP client.

Install

pip install syttra

Status today (0.0.1)

This release reserves the syttra name on PyPI so the official SDK can claim it. Importing it prints a one-time warning and exposes nothing useful:

import syttra
# FutureWarning: syttra 0.0.x is a name-reservation placeholder. ...

Hitting the API today

While the SDK isn't out, the public REST API works with any HTTP client. The minimal flow:

import httpx, time

API = "https://api.syttra.com"
KEY = "sk_live_…"  # create one at https://syttra.com/dashboard/keys

# 1. Create a job
r = httpx.post(
    f"{API}/v1/jobs",
    headers={"Authorization": f"Bearer {KEY}"},
    json={"url": "https://en.wikipedia.org/wiki/White_House", "mode": "single"},
)
job_id = r.json()["id"]

# 2. Poll
while True:
    r = httpx.get(f"{API}/v1/jobs/{job_id}", headers={"Authorization": f"Bearer {KEY}"})
    status = r.json()["status"]
    if status in ("completed", "failed"):
        break
    time.sleep(2)

# 3. Download
r = httpx.get(f"{API}/v1/jobs/{job_id}/result", headers={"Authorization": f"Bearer {KEY}"})
print(r.text)

Full docs: syttra.com/docs/rest.

What 0.1.0 will bring

Mirrors the public REST API with typed Pydantic-compatible response models, sync + async clients, retry/backoff, structured errors and a telemetry hook. Tracked in the private monorepo backlog — public roadmap on the docs site.

License

MIT — see LICENSE.

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

syttra-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

syttra-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file syttra-0.0.1.tar.gz.

File metadata

  • Download URL: syttra-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for syttra-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84170816ed6489124cef36ef535e8bbfd95c1789e233681de1cd6a7be420e2f8
MD5 d8efe07501532719cb6554e5b1548ffb
BLAKE2b-256 8c98c586945f0b1b12911657287f1cc8b7c2f87cb1bc60d6edf019dcb3e5fbcc

See more details on using hashes here.

File details

Details for the file syttra-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: syttra-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for syttra-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c93b1867629fa154a135925894b74282ede4ab9638e3951cdc8df28ea4c7805
MD5 27e8a5a5d10b486606fbd34af3310806
BLAKE2b-256 80c8ae8883e17dc4ace32d6bdf8e2b4797f22c1475d9764b111da75e5f5ddadb

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