Shared infrastructure for Timeback Python clients
Project description
timeback-common
Shared infrastructure for Timeback Python clients.
Installation
# pip
pip install timeback-common
# uv (add to a project)
uv add timeback-common
# uv (install into current environment)
uv pip install timeback-common
from timeback_common import BaseTransport, APIError, Paginator, where_to_filter
class MyTransport(BaseTransport):
ENV_VAR_BASE_URL = "MY_SERVICE_BASE_URL"
ENV_VAR_AUTH_URL = "MY_SERVICE_TOKEN_URL"
ENV_VAR_CLIENT_ID = "MY_SERVICE_CLIENT_ID"
ENV_VAR_CLIENT_SECRET = "MY_SERVICE_CLIENT_SECRET"
Components
| Module | Description |
|---|---|
transport |
Base HTTP transport with OAuth2 client credentials |
errors |
Shared exception hierarchy (APIError, NotFoundError, etc.) |
pagination |
Async Paginator for list endpoints |
filter |
where_to_filter() for type-safe filtering |
Usage
This package is used internally by:
timeback-onerostertimeback-calipertimeback-edubridgetimeback-core
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_common-0.1.8.tar.gz
(39.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
File details
Details for the file timeback_common-0.1.8.tar.gz.
File metadata
- Download URL: timeback_common-0.1.8.tar.gz
- Upload date:
- Size: 39.3 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 |
5e0ee7c14dafb78214a6710a6a84f1d3f33c2f8cad06305270cd3ecee97d992d
|
|
| MD5 |
b3fa8dd4b2d7b0f7079300819f8dd772
|
|
| BLAKE2b-256 |
3699235e4e47c9e08f8e7555e0b3f22dae0cea26724ab91baaab63af3bbf2cf7
|
File details
Details for the file timeback_common-0.1.8-py3-none-any.whl.
File metadata
- Download URL: timeback_common-0.1.8-py3-none-any.whl
- Upload date:
- Size: 33.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc966078ee7f4bfb690654b5ce2a3b291df4e3fb9c054bcb26d689d8de1fb8a6
|
|
| MD5 |
8251c9419f82dab00f63d787518ff213
|
|
| BLAKE2b-256 |
6e09fa0cfa84c502ba69e5d16eb41d5c49d9582fb0564a1860061d6fd8e7ec28
|