Releases: Chainscore/tsrkit-types
Releases · Chainscore/tsrkit-types
Release list
v0.2.1
v0.2.0
What's Changed
- Feat/speedup0226 by @prasad-kumkar in #7
- chore: build fix by @prasad-kumkar in #8
New Contributors
- @prasad-kumkar made their first contribution in #7
Full Changelog: v0.1.9...v0.2.0
v0.1.0
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-typesQuick 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.