pyserializer
Safe JSON/YAML serialization
Installation
pip install pyserializer
💡 Usage Examples
Basic Operations
from pylib_serializer import serialize, to_json, to_yaml
# Serialize to JSON
data = {"name": "John", "age": 30}
json_str = serialize(data)
# '{"name": "John", "age": 30}'
# Convert to JSON
json_output = to_json(data)
# Convert to YAML
yaml_output = to_yaml(data)
# 'name: John
age: 30'
AI/ML Use Cases
from pylib_serializer import serialize, to_json, to_yaml
# Serialize ML model predictions
predictions = {"class": "cat", "confidence": 0.95}
json_predictions = serialize(predictions)
# Save model config
config = {"model": "resnet50", "epochs": 100}
yaml_config = to_yaml(config)
📚 API Reference
See package documentation for complete API reference.
🤖 AI Agent Friendly
This package is optimized for AI agents and code generation tools:
- Clear function names and signatures
- Comprehensive docstrings with examples
- Type hints for better IDE support
- Common use cases documented
- Zero dependencies for reliability
License
MIT
Metadata
Release files for pylib-serializer 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| pylib_serializer-0.1.0.tar.gz | 2.3 kB | Without provenance | Details for pylib_serializer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylib_serializer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pylib_serializer-0.1.0-py3-none-any.whl |
Total release size: 4.2 kB
Release files / pylib_serializer-0.1.0.tar.gz
| Download URL | pylib_serializer-0.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f92e88c77ad65cd9e276c871f63578f3c76bfdd8449dae17fa280e17461b9e1
|
|
BLAKE2b-256 checksum How to use checksums |
1fadd234c141150cf6b0b801f48a63451c6b4b3c4fe3912a4fdbdcc6cd51eccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / pylib_serializer-0.1.0-py3-none-any.whl
| Download URL | pylib_serializer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c16ea8269bed5b8010691200c961ae2487196c18cbcbe6b175baf6d2c784ad29
|
|
BLAKE2b-256 checksum How to use checksums |
d6379e50bbab1535240da5bbaf1320ac2ab9eb4904de2483d7c6c6efb2a7f8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for pylib-serializer 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.