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.4.0.tar.gz
(113.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
timeback_sdk-0.4.0-py3-none-any.whl
(108.2 kB
view details)
File details
Details for the file timeback_sdk-0.4.0.tar.gz.
File metadata
- Download URL: timeback_sdk-0.4.0.tar.gz
- Upload date:
- Size: 113.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1f9e01fbd22c80f32a135947ccb684a8a290a7a9e1793a1667e5fa47fc26839
|
|
| MD5 |
fb67f59af4811ae88bac7026e8a9c0c0
|
|
| BLAKE2b-256 |
bcfc197f2f8da668eaa00ab231c116a8ebeb4c0f27d96241d4e292e8e5ed2134
|
File details
Details for the file timeback_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: timeback_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 108.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cdcd3fa35e8fc5730ce4855a8696630a4f8c90e3417a0ffa722745ab7c83308
|
|
| MD5 |
58e770b71470984d34c05cd443a0601a
|
|
| BLAKE2b-256 |
a3d1e1f5c0d62d74aafdaf04063f1676ede6fbbca5d4f36773e6e4432d6b5462
|