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

This version

0.1.5

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.5.tar.gz (79.5 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.5-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeback_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 79.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.5.tar.gz
Algorithm Hash digest
SHA256 8d81d7dcf2ba0178a1d4f9d854a5b9a68f80ee8632f07215f6969c7d38530eba
MD5 ec9d068129f9a33b981a5ec6b54dbb54
BLAKE2b-256 45f2901742a0ffa75d5c4469655aec7812dfc34f741a984193f386916baf9644

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timeback_sdk-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 74.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f3c0dbee728a0cd604a527fded5d7a02b52ed0c667b180f28b39ca475fe5e4
MD5 1417cad135ba640a53132f17a9286235
BLAKE2b-256 8aefa893366daa7c433e4307b925ba476f8fbbda0c04915ce44781514086af43

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