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.2.tar.gz
(37.4 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.2.tar.gz.
File metadata
- Download URL: timeback_common-0.1.2.tar.gz
- Upload date:
- Size: 37.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
4ca6b41a0cbea30a6a105936c94be836415b76db07e7f0b5c5b7581832ed8af0
|
|
| MD5 |
9eb087841616e4a5b967e161db292f8c
|
|
| BLAKE2b-256 |
b8684325abc5f99a75a25028c63392651636015e941abca5b2d8686a7f3b2e0a
|
File details
Details for the file timeback_common-0.1.2-py3-none-any.whl.
File metadata
- Download URL: timeback_common-0.1.2-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
7488fb58039788bcd1863b5e68195519da3fbeb97303e1901efc94bde2349e07
|
|
| MD5 |
236ab0c4da08272ec032f68b0bb9b12e
|
|
| BLAKE2b-256 |
cc37eae96deb6ff614c6a13e8cdf15ec8fda522c30006b7980a9d98177febe8c
|