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.3.2b20260424234826.tar.gz (113.4 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.3.2b20260424234826-py3-none-any.whl (108.3 kB view details)

Uploaded Python 3

File details

Details for the file timeback_sdk-0.3.2b20260424234826.tar.gz.

File metadata

  • Download URL: timeback_sdk-0.3.2b20260424234826.tar.gz
  • Upload date:
  • Size: 113.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.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.3.2b20260424234826.tar.gz
Algorithm Hash digest
SHA256 b3e910e2138e8903ff226b470ed3b06a23b43d97f4fdfb44045a363b9ccd138b
MD5 0e2ae613cc26958a65ea35acb17c0d1f
BLAKE2b-256 bcd3e1852509c9597e1222160b7c6adc91c18f228f8c2a518c32d82b991c96c4

See more details on using hashes here.

File details

Details for the file timeback_sdk-0.3.2b20260424234826-py3-none-any.whl.

File metadata

  • Download URL: timeback_sdk-0.3.2b20260424234826-py3-none-any.whl
  • Upload date:
  • Size: 108.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.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.3.2b20260424234826-py3-none-any.whl
Algorithm Hash digest
SHA256 cca0422e352b39c4f866bad0a642cf2ca9b3edd6b8dc3c82a32bf85dfd8d4487
MD5 c2ebcea252d20b528904946e599317af
BLAKE2b-256 60ff366a70477cfdcc0ae968169eea0f14e92ff2bf38f1561d98a0e76ca9908d

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