SerialAlchemy might be sticking around
Oh hi. Do you actually use SerialAlchemy? Well, I have some news.
With the release of SQLAlchemy 2.0, it's possible to easily integrate dataclasses with models... which means it's easy to change models to dicts... WHICH MEANS it's possible to serialize a model into JSON without the use of SerialAlchemy.
However...
After recently trying to make some utilities to work with dataclass-based Models, I realized I was basically recreating this library. Since this library still works, what's the point of redoing it?
--
SerialAlchemy adds serialization to SQLAlchemy ORM objects via a mixin class. It is tightly coupled with SQLAlchemy, because it's the best thing ever invented.
About
Here's the elevator pitch: are you defining your models with SQLAlchemy and again with Pydantic? Do you have trouble keeping clear which models are SQLAlchemy models and which models are Pydantic models? Do you have a way to keep your models' models in sync with DB changes?
THAT'S TOO MANY MODELS for my simple brain and my lazy disposition, in any case.
I made SerialAlchemy mainly because I hate repeating myself.
MIT Licensed
Metadata
Release files for SerialAlchemy 0.5.6
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 |
|---|---|---|---|---|
| serialalchemy-0.5.6.tar.gz | 31.9 kB | Without provenance | Details for serialalchemy-0.5.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serialalchemy-0.5.6-py3-none-any.whl | Python 3 | none | any | Details for serialalchemy-0.5.6-py3-none-any.whl |
Total release size: 38.5 kB
Release files / serialalchemy-0.5.6.tar.gz
| Download URL | serialalchemy-0.5.6.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d224cf23102d5a7ad6da1d5bfe0dddf0d19097759ddabd53b17271ee0eb456a6
|
|
BLAKE2b-256 checksum How to use checksums |
00cf834c8da450681f68ed2b6a279d444e1564249b8a809c30fc217a73976f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Release files / serialalchemy-0.5.6-py3-none-any.whl
| Download URL | serialalchemy-0.5.6-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a468392debc4ac612788d6cb75cfb54fa45bc66ae8f76fab9b03a5346b791e42
|
|
BLAKE2b-256 checksum How to use checksums |
33875f0da2d7bd07f88735f33654884b3ac14933f9039709e456f8f57f00c7d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Security for SerialAlchemy 0.5.6
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.