Skip to content

Releases: Chainscore/tsrkit-types

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 05 Feb 20:35
133d6e5

What's Changed

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Feb 09:29
bcb5946

What's Changed

New Contributors

Full Changelog: v0.1.9...v0.2.0

v0.1.0

Choose a tag to compare

@prasad-kumkar prasad-kumkar released this 02 Jun 21:59

TSRKit Types v0.1.0

Initial release of a Python library for type-safe binary serialization and JSON encoding.

Features

  • Type system: Integers, strings, booleans, bytes, containers, enums, structs
  • Dual serialization: Binary encoding and JSON support
  • Type safety: Runtime validation with Python type hints
  • Minimal deps: Only requires typing_extensions>=4.0.0

Installation

pip install tsrkit-types

Quick Example

from tsrkit_types.integers import U8, U32
from tsrkit_types.string import String
from tsrkit_types.struct import struct

@struct
class Packet:
    type: U8
    id: U32
    data: String

packet = Packet(U8(1), U32(123), String("hello"))
encoded = packet.encode()
decoded = Packet.decode(encoded)

Testing

  • 106 tests with 89% coverage
  • CI/CD with GitHub Actions
  • Python 3.12+ support

Perfect for network protocols, configuration files, and data serialization.