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.3.tar.gz
(65.0 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.3.tar.gz.
File metadata
- Download URL: timeback_sdk-0.1.3.tar.gz
- Upload date:
- Size: 65.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
cbb6e4b1e6caaac9340a0ba70c0774dd94e611072617b026502861ea64abd593
|
|
| MD5 |
ef5da0f926d29e0fc5c0eb8d32430f71
|
|
| BLAKE2b-256 |
747ca6b8f0263915f9b15b2036fe355d01bc934c8bd048212dfb627de381ae5e
|
File details
Details for the file timeback_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: timeback_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 61.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
26c7d7900ffee3e5103712a0bff3f8500e928b558dfbb7ec920a1376e097d67c
|
|
| MD5 |
24b2da3da5dc50d333b5639c8a8ba65d
|
|
| BLAKE2b-256 |
2d380ce0c2e56ef6d078ed923d8153879379df7a731a805a3ec353e75d37d28a
|