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.10b20260225065643.tar.gz (90.9 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.10b20260225065643-py3-none-any.whl (82.7 kB view details)

Uploaded Python 3

File details

Details for the file timeback_sdk-0.1.10b20260225065643.tar.gz.

File metadata

  • Download URL: timeback_sdk-0.1.10b20260225065643.tar.gz
  • Upload date:
  • Size: 90.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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.10b20260225065643.tar.gz
Algorithm Hash digest
SHA256 078de5c4d037d8bd88194df40e6ce315e1ba90dc1f37445a3a5f21935fe73f7b
MD5 fb1577598b27be1d99effb24add03767
BLAKE2b-256 c20ca5f2f1b84b8db27a6eaa7356a01862cad92e8eed419d6d5a428582254988

See more details on using hashes here.

File details

Details for the file timeback_sdk-0.1.10b20260225065643-py3-none-any.whl.

File metadata

  • Download URL: timeback_sdk-0.1.10b20260225065643-py3-none-any.whl
  • Upload date:
  • Size: 82.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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.10b20260225065643-py3-none-any.whl
Algorithm Hash digest
SHA256 21a32a4e6370ae5f3e7e5a1c5a34bbedf301ea5101629cd238c1b1f52a63cb39
MD5 c62146e5f5e156856544ff527ad981e7
BLAKE2b-256 00e0aae6313d0f4e9c26bdf15090a72d7126370fd53093e48019498188f6ff8a

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