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.2.1b20260311230654.tar.gz (109.7 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.2.1b20260311230654-py3-none-any.whl (107.9 kB view details)

Uploaded Python 3

File details

Details for the file timeback_sdk-0.2.1b20260311230654.tar.gz.

File metadata

  • Download URL: timeback_sdk-0.2.1b20260311230654.tar.gz
  • Upload date:
  • Size: 109.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.1b20260311230654.tar.gz
Algorithm Hash digest
SHA256 8f089ef9467b68c2cfdb5d0244130080e1ae16ba4915596a4e747a898d00bdfb
MD5 dd5f2ffef4e94e5450671621001feac8
BLAKE2b-256 f6db327b6974969e4e4acd5d7c22859a670c1e94079e8e6a50757acc56beaa8e

See more details on using hashes here.

File details

Details for the file timeback_sdk-0.2.1b20260311230654-py3-none-any.whl.

File metadata

  • Download URL: timeback_sdk-0.2.1b20260311230654-py3-none-any.whl
  • Upload date:
  • Size: 107.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.2.1b20260311230654-py3-none-any.whl
Algorithm Hash digest
SHA256 afc4f17da823fe88af9faae1b19c9a0859d9dcd302099008f5be4393ef428afa
MD5 d590a0e812482d9777958652973b165e
BLAKE2b-256 f1cadc192d6f462c09204ac64f8d6815b9bece28aa7fe790e6c8e3f62d6cdc8f

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