Skip to main content

Timeback SDK for Python - adapters for FastAPI, Django, and more

Project description

Timeback SDK

Server-side SDK for integrating Timeback into Python web applications.

Installation

# pip
pip install timeback-sdk[fastapi]
pip install timeback-sdk[django]

# uv (add to a project)
uv add "timeback-sdk[fastapi]"
uv add "timeback-sdk[django]"

# uv (install into current environment)
uv pip install "timeback-sdk[fastapi]"
uv pip install "timeback-sdk[django]"

FastAPI

from fastapi import FastAPI
from timeback.fastapi import create_timeback_router

app = FastAPI()

timeback_router = create_timeback_router(
    env="staging",
    client_id="...",
    client_secret="...",
    identity={
        "mode": "sso",
        "client_id": "...",
        "client_secret": "...",
        "get_user": lambda req: get_session_user(req),
        "on_callback_success": lambda ctx: handle_sso_success(ctx),
    },
)

app.include_router(timeback_router, prefix="/api/timeback")

Django

# Coming soon

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

timeback_sdk-0.1.12b20260303070340.tar.gz (102.0 kB view details)

Uploaded Source

Built Distribution

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

timeback_sdk-0.1.12b20260303070340-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

File details

Details for the file timeback_sdk-0.1.12b20260303070340.tar.gz.

File metadata

  • Download URL: timeback_sdk-0.1.12b20260303070340.tar.gz
  • Upload date:
  • Size: 102.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for timeback_sdk-0.1.12b20260303070340.tar.gz
Algorithm Hash digest
SHA256 087ee0cba260337aabc25d99ff280a8107cae92fe38320a19e757bdaa4aa4155
MD5 6f6dbff38cdcb43f5dcbcaf3047b6539
BLAKE2b-256 f4cde6345caba186f9e65a9078e8daac5be231c6d193311e841d07b6d6b5d474

See more details on using hashes here.

File details

Details for the file timeback_sdk-0.1.12b20260303070340-py3-none-any.whl.

File metadata

  • Download URL: timeback_sdk-0.1.12b20260303070340-py3-none-any.whl
  • Upload date:
  • Size: 102.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for timeback_sdk-0.1.12b20260303070340-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea5fbf2d4b950f9751df0d1d2003b5f18dbef5cef144edceada907e2c0e7397
MD5 8decafd04b3313ab617cb693d5312c81
BLAKE2b-256 acbaafff7fee8704e499b2b5b8cad62d612ce8b80e41865627a5c8286dbd1cc9

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