Skip to main content

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

SerialAlchemy aims to be the one serialization library that I use for web projects. If other people like it, that’s cool too. Released under the MIT License, so fork away!

Why create SerialAlchemy?

The serialization problem for web apps has been solved many times over. I had been using marshmallow for several projects. It’s a great library, and has its own justification for existence.

While I liked working with marshmallow just fine, it is designed to be very broad and fit a lot of different situations. I mostly create small web applications, so my situation rarely changes.

If there is one reason for creating SerialAlchemy, it is the fact that I didn’t like the idea of defining my models, then having to define marshmallow schemas. It felt like redundancy to me. Keeping the marshmallow schema in sync with model changes was also a pain, but feeling like I was repeating myself was the bigger reason.

And yes, “alAl” in SerialAlchemy bothers me, but SeriAlchemy sounds too much like Siri-Alchemy, and I fear Apple’s legal team.

Why not use SerialAlchemy?

I thought I’d take a different approach to selling this. Truth is, I made this library for me, and don’t really care if anyone else uses it.

  • SQLAlchemy is required. This library simply won’t work without it.

  • While SerialAlchemy is not beholden to any particular web framework, it doesn’t make a lot of sense outside the web application area. SQLAlchemy has a built-in way to serialize expressions, and the result sets can be pickled.

  • There is no data validation. SQLAlchemy has simple validation built-in, and I feel like something more extensive is outside the scope of this project.

  • SerialAlchemy is Python 3 only. Get used to it ;)

Metadata

Release files for SerialAlchemy 0.3.4.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SerialAlchemy 0.3.4.post1
File Size Uploaded Provenance Actions
SerialAlchemy-0.3.4.post1.tar.gz 6.9 kB Without provenance Details for SerialAlchemy-0.3.4.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SerialAlchemy 0.3.4.post1
File Interpreter ABI Platform Actions
SerialAlchemy-0.3.4.post1-py3-none-any.whl Python 3 none any Details for SerialAlchemy-0.3.4.post1-py3-none-any.whl

Total release size: 14.6 kB

Release files / SerialAlchemy-0.3.4.post1.tar.gz

Download URL SerialAlchemy-0.3.4.post1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
73c08b376d7d1c842a0409e528bcb1ab720780650d5534205302c20ef0f20aa8
BLAKE2b-256 checksum
How to use checksums
17bdbb685f5c1097489b02dcb82ec2fdd2de64a6e786635293fe5d38aa078440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / SerialAlchemy-0.3.4.post1-py3-none-any.whl

Download URL SerialAlchemy-0.3.4.post1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
966fb69e2d618043ee87115e9afb24009bddcf3dc36479def303aa6d34af126a
BLAKE2b-256 checksum
How to use checksums
39492e1a549fbdcf0f4ce6b78987f88357feb5a28966e0882e184cf3d529829b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for SerialAlchemy 0.3.4.post1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page