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.7.tar.gz
(90.6 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.7.tar.gz.
File metadata
- Download URL: timeback_sdk-0.1.7.tar.gz
- Upload date:
- Size: 90.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e63dacc5da2f452c54390c1bce8cc552176544bb002a47365d9e61989a2598
|
|
| MD5 |
70cd3217e585c98c03dcb9eb28c6a481
|
|
| BLAKE2b-256 |
db4919219e76604e5d9236b37a1d3fcb2e507157f1dea291a72300b583b37452
|
File details
Details for the file timeback_sdk-0.1.7-py3-none-any.whl.
File metadata
- Download URL: timeback_sdk-0.1.7-py3-none-any.whl
- Upload date:
- Size: 82.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b914e88f76dd825b8a04b355220ce065a1ecd2913d7453959f56539d15222fa3
|
|
| MD5 |
ff20f408cf4e84642853a00811fadc9f
|
|
| BLAKE2b-256 |
3b4bf7043ca916d3b90e7c44c9baa96558889f3878bbc42b98ac26e5f59167e4
|