Skip to main content

Typed Core

Shared core types and utilities for Typed Clients

PyPI version License

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

typed_core-0.3.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_core-0.3.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file typed_core-0.3.0.tar.gz.

File metadata

  • Download URL: typed_core-0.3.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e34df9b865468af82610332d2b0a1353458ad60f11d85a54c94c96f6fe725fc6
MD5 607654f7d2dfc97d765bae1ddb666857
BLAKE2b-256 4e8ed41a8c117ed80a696b526a40267eb9851516c7563c48a19264e3afc7924b

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_core-0.3.0.tar.gz:

Publisher: release-core.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typed_core-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: typed_core-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c9e768120ac27e755e470e49a7119e8c164f41f0c4561f92b47bf47a2dc68c
MD5 c0e4e628066ec72dcb346f406b8a5b96
BLAKE2b-256 c9db9f100b6735db6faa338a40944cb927e57cd8dba5aadff67997dcd68c1c0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_core-0.3.0-py3-none-any.whl:

Publisher: release-core.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.0

2 files

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page