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.2.2.tar.gz
(42.5 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.2.2.tar.gz.
File metadata
- Download URL: timeback_common-0.2.2.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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 |
fb5ccf1df9d2d21d52e15d20f7301b7a7cd18a838c33633b581a64ec50c19053
|
|
| MD5 |
fc2438d652b85cce9cf6a0a70a969f8f
|
|
| BLAKE2b-256 |
477ee5343835d2d33b9f5ca029d72e8b7c45550504fbe2ad2abd66eb6d5f0052
|
File details
Details for the file timeback_common-0.2.2-py3-none-any.whl.
File metadata
- Download URL: timeback_common-0.2.2-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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 |
ede484133b503d8eae2a59636abf40f62ec756bd216ff25464f9cede4d88ee4f
|
|
| MD5 |
c6e1c8f1139dda43fce9b0cc9cdc7e9c
|
|
| BLAKE2b-256 |
b1a98d4cb12cd206483fbb3b8549203e229442b5b330c3802a061aa21ca5cbcd
|