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.1.tar.gz (113.3 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.1-py3-none-any.whl (108.2 kB view details)

Uploaded Python 3

File details

Details for the file timeback_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: timeback_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 113.3 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.1.tar.gz
Algorithm Hash digest
SHA256 8b960f50401d1fbd50e06046ef1ed9422b827aa966ddc6eeb887158b8e9c90fb
MD5 8ade3a7865ef477d8fe8aedc1787a6c1
BLAKE2b-256 ce3de2939c3ab3a24d38e5688ee1ac53a6572123896bc6e06e507979133e588c

See more details on using hashes here.

File details

Details for the file timeback_sdk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: timeback_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 108.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 376a8c08d6b8f8fb8689a9b7a7471818c57541ebd6c7d7bc821834ae78a976bf
MD5 c01bad4d3d85d58d0b03c17715d733ce
BLAKE2b-256 562b35b85c6a7345abc0d961a5da62cf51ae0f70fa9719d547f6b1f91be4963b

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