Skip to main content

ProgressDB backend Python SDK

Project description

ProgressDB Python SDK (backend)

Lightweight Python SDK for backend callers of ProgressDB. Designed for server-side use (holds backend/admin API keys).

Install (when published):

pip install progressdb

Quickstart

from progressdb import ProgressDBClient

client = ProgressDBClient(base_url='https://api.example.com', api_key='ADMIN_KEY')

# Sign a user id (backend-only)
sig = client.sign_user('user-123')

# Create a thread (provide author)
thread = client.create_thread({'title': 'General'}, author='service-account')

# Create a message (provide author)
msg = client.create_message({'thread': thread['id'], 'body': {'text': 'hello'}}, author='service-account')

Features

  • sign_user(user_id) — calls POST /v1/_sign (backend-only)
  • admin_health(), admin_stats() — admin endpoints
  • Thread and message helpers: list_threads(author, title=None, slug=None), create_thread(thread, author), create_message(msg, author), delete_thread(id, author), etc.

Note: list_threads accepts optional query filters author, title, and slug. Backend callers should provide author (either via this parameter or the X-User-ID header) when using backend/admin keys because the server requires an author to be resolved for this endpoint.

Thread helpers (notes)

  • get_thread(id, author) — retrieve thread metadata (title, slug, author, timestamps). Backend callers should provide author when using backend/admin keys (via this parameter or by setting X-User-ID header) because the server requires author resolution for this endpoint.

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

progressdb-0.1.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

progressdb-0.1.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file progressdb-0.1.5.tar.gz.

File metadata

  • Download URL: progressdb-0.1.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for progressdb-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b960bdfa163542544be200234a5ab7ae9dae9d32f91c75d27a89105373477159
MD5 3ba50caaaaea8fe43075698c22638727
BLAKE2b-256 35475313b7dd0df3324c764721d3058b83ad3aca1c58f7f730213d953f7125c6

See more details on using hashes here.

File details

Details for the file progressdb-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: progressdb-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for progressdb-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 775b7a8495fbcc0971bcd8452d7adc984f2092c4fb163c931c191ce7ad29b8ba
MD5 1a5c7c83497bcd80aa7205d4ef2dfd3c
BLAKE2b-256 06f12474831c4b3c8578ad1c97c21019a4cb03c0976fecedfe277043bb7c53b9

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