A Python package that standardizes data parsing from multiple serialized formats into pydantic models.
Project description
SerialBus
SerialBus is a Pydantic-based tool designed to act as a conduit between serialized data and Python objects. It not only facilitates the transformation of complex serialized data into Python objects, but also ensures stringent data validation. Think of it as the coach that transports your data from the realm of serialization into the world of Python, and vice-versa, all the while maintaining the integrity and structure of your data.
Install
pip:
pip install serial_bus
poetry:
poetry add serial_bus
Features
-
Pydantic Integration: Converting serialized data into Python objects is the oldest trick in the book, but SerialBus elevates this process by directly converting the data into Pydantic models, which brings the added advantage of robust data validation. The models used in this process are defined by classes that inherit from either the SerialBusBaseModel or SerialBusRenderableModel. This not only provides flexibility in setting up behaviors for your data, but also ensures data integrity through Pydantic's validation mechanisms.
-
Built-in Support for Multiple Formats: Currently, it supports loading serialized data from JSON, YAML, TOML and INI. While future support for other formats is planned, if you need to cover additional formats, or even provide your own parsing business logic, this can be easily achieved by extending SerialBusbasic coverage with your own loader and/or dumper functions. Speaking of which...
-
Extensibility: The code was thought to allow for ease of extensibility. For more information and examples, refer to the documentation below.
Quick Start
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file serial_bus-0.1.0.tar.gz
.
File metadata
- Download URL: serial_bus-0.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 269cfd8d8e2fb29a85959600105cbac804fe2088f2e63dbcaa5737fe5f5a339c |
|
MD5 | bfea2416acfcd1a8cd4aa11a722972ab |
|
BLAKE2b-256 | e52f8e109acc7c1322019843742a6a0dd7eadd1c64fdf2277028df7049746438 |
File details
Details for the file serial_bus-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: serial_bus-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff09c07156c6eab9c9dd4cd2cd84c2e7061868a9aa527b6ed8eff1844131d136 |
|
MD5 | 4e1d69dd2c80c952089a6a408f1822e8 |
|
BLAKE2b-256 | 3557bb91f151b726b828a099d5976565b733ab150c9c7f2add50f01b9a62ae68 |