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.4.tar.gz
(38.7 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.4.tar.gz.
File metadata
- Download URL: timeback_common-0.1.4.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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 |
49c91517b238f54345b3d0f994906753e10003181aa51f6ab0eb55a7f6e696fc
|
|
| MD5 |
d9e6c2c7be127b5ac8deb482aba694de
|
|
| BLAKE2b-256 |
80fbd8c87ce861e3e15b4e347be27fa3cad52572634a8c908a8cdf406ffe077b
|
File details
Details for the file timeback_common-0.1.4-py3-none-any.whl.
File metadata
- Download URL: timeback_common-0.1.4-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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 |
e7eccb398c6f8fb3dc1b06d683a75801044cc0546212bbce4adfb2789c5a22cf
|
|
| MD5 |
5775a61d66363a60e9b4dace1a094cdc
|
|
| BLAKE2b-256 |
d13c428f43dab833d55ea0c79dda02152500d2da1f6d6379feb47964de10b76e
|