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.
Release files for typed-core 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_core-0.6.0.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_core-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.5 kB
Release files / typed_core-0.6.0.tar.gz
| Download URL | typed_core-0.6.0.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f21fe7bdce319f7bbfd7387afa67af07aa88fa2f21bc5453abb870f6c23f5ee
|
|
BLAKE2b-256 checksum How to use checksums |
044396aff551a724d4b9ba65e51554ad25db5c31ad715f1df5f6d0cceed8df74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / typed_core-0.6.0-py3-none-any.whl
| Download URL | typed_core-0.6.0-py3-none-any.whl |
|---|---|
| Size | 24.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
987292ef5b8c7722c0df422e5f8705502718b01c95031039522fda1cb2563c48
|
|
BLAKE2b-256 checksum How to use checksums |
d6da569d98b6f83e0b5b9610ad9a1ed0fb4c879d17021bec98c7df79eedbbc55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency log