Typed Core
Shared core types and utilities for Typed Clients
Every Typed Client builds its core on top of this
package. Prefer it over a client-local copy of the same logic — a client's own core/ should
hold only what's genuinely venue-specific (envelope extraction, error mapping, signing, wire
quirks), not a reimplementation of transport, timestamps, or error types.
Installation
pip install typed-core
What it provides
| module | contents |
|---|---|
typed_core.exceptions |
Error, NetworkError, ValidationError, ApiError (BadRequest, AuthError, RateLimited), LogicError |
typed_core.http |
async HTTP client and response helpers |
typed_core.ws |
websocket socket, streams, JSON-RPC, streams-over-RPC |
typed_core.times |
TimeConverter, EpochConverter, IsoConverter — parse/dump between a venue's wire timestamp and a real datetime |
typed_core.util |
RateLimit, paging and stream helpers |
from typed_core.times import EpochConverter, IsoConverter
timestamp_millis = EpochConverter.milliseconds() # epoch, milliseconds
timestamp_iso = IsoConverter() # RFC 3339, Z-suffixed
Clients re-export the exceptions users are expected to catch from their own package root, so
from kraken import AuthError works while implementation imports still come from
typed_core. Route those re-exports through lazy_loader.attach_stub, not a plain
from typed_core.exceptions import ... in an __init__.py — the latter breaks type-checking
for every downstream consumer of a py.typed package.
License
MIT — see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 typed_core-0.4.0.tar.gz.
File metadata
- Download URL: typed_core-0.4.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad77cadac0cc7b2359b1e703b102b93ba5721cf53ca71680deabf98c00df070b
|
|
| MD5 |
7d96f4282e7ba40bd11981d58185bc64
|
|
| BLAKE2b-256 |
b45d3d6d6f095e691c052bc03d91c18f5fed73bdba63f8a5967cf1288548da43
|
Provenance
The following attestation bundles were made for typed_core-0.4.0.tar.gz:
Publisher:
release-core.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_core-0.4.0.tar.gz -
Subject digest:
ad77cadac0cc7b2359b1e703b102b93ba5721cf53ca71680deabf98c00df070b - Sigstore transparency entry: 2546826189
- Sigstore integration time:
-
Permalink:
tribulnation/typed@f068fb5dfeae31cbbb600f17df37bd40d3747a6c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-core.yml@f068fb5dfeae31cbbb600f17df37bd40d3747a6c -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_core-0.4.0-py3-none-any.whl.
File metadata
- Download URL: typed_core-0.4.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d5900027e8110649dd43390a9e0c4daaa7ebb0e90a8f09d3965a3eea412bd4f
|
|
| MD5 |
561717ca7c4c1db89ac43992afa25c20
|
|
| BLAKE2b-256 |
1494c641abe90cab2b1640048f56e9da3f98bfd54e2a5cac1a94a35d73d0d907
|
Provenance
The following attestation bundles were made for typed_core-0.4.0-py3-none-any.whl:
Publisher:
release-core.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_core-0.4.0-py3-none-any.whl -
Subject digest:
5d5900027e8110649dd43390a9e0c4daaa7ebb0e90a8f09d3965a3eea412bd4f - Sigstore transparency entry: 2546826886
- Sigstore integration time:
-
Permalink:
tribulnation/typed@f068fb5dfeae31cbbb600f17df37bd40d3747a6c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-core.yml@f068fb5dfeae31cbbb600f17df37bd40d3747a6c -
Trigger Event:
pull_request
-
Statement type: