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.1.10.tar.gz
(90.8 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
File details
Details for the file timeback_sdk-0.1.10.tar.gz.
File metadata
- Download URL: timeback_sdk-0.1.10.tar.gz
- Upload date:
- Size: 90.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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 |
5f2e078ed891440b4e70fef64d7f6b9de35672eceac9f64b01eaea4308548514
|
|
| MD5 |
bb39d429e900dcc13636a407de481d4d
|
|
| BLAKE2b-256 |
b5ec700c309ebe763c9208b127f46fe550680518cb4a65be4712989a8f61e9d4
|
File details
Details for the file timeback_sdk-0.1.10-py3-none-any.whl.
File metadata
- Download URL: timeback_sdk-0.1.10-py3-none-any.whl
- Upload date:
- Size: 82.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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 |
e022acbd22b6c9caef547fa01a5f543765801a7d7dd3c204ea799c9f9c866f42
|
|
| MD5 |
440aa20a619446619bb8c657612bab8f
|
|
| BLAKE2b-256 |
3d8105b4491bb66afdb99061fdb5acdfcf331dde5ecb05c548b83a6f3e7eb68c
|