cels
mashumaro
cels | mashumaro | |
---|---|---|
3 | 3 | |
10 | 731 | |
- | - | |
7.9 | 9.4 | |
6 months ago | 12 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cels
-
Interactive Examples for Learning Jq
Not a 1:1 replacement, but I created https://github.com/pacha/cels because I wanted to have a more intuitive way of working with JSON and YAML files
-
That's a Lot of YAML
I agree. I find working with templated YAML so cumbersome that I ended up creating a tool (Cels - https://github.com/pacha/cels) because of it. I like Jsonnet and Starlark but in practice I donโt usually need a new programming language for most use cases. Most of the time I just want to create a base document and apply patches to do modifications. That simplifies everything a lot.
- Show HN: Cels โ A bit less YAML/JSON struggle
mashumaro
- DotDict: A simple Python library to make chained attributes possible
-
apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it
This month, I've released version 0.17, and it's now blazing fast; there is in fact no more comparison with Pydantic, which more than 5x slower (up to 30x in serialization). It's also faster than alternatives like mashumaro or cattrs. (See the quick benchmark result in documentation, and the code)
-
I use attrs instead of pydantic
Having run into these issues with Pydantic, we've been using Mashumaro[1], which, while not having all the bells and whistles of Pydantic, has served us pretty well.
1: https://github.com/Fatal1ty/mashumaro
What are some alternatives?
pyserde - Yet another serialization library on top of dataclasses, inspired by serde-rs.
msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
python-benedict - :blue_book: dict subclass with keylist/keypath support, built-in I/O operations (base64, csv, html, ini, json, pickle, plist, query-string, toml, xls, xml, yaml), s3 support and many utilities.
marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
click-extra - ๐ Extra colorization and configuration loading for Click.
orjson - Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
remarshal - Convert between CBOR, JSON, MessagePack, TOML, and YAML
cattrs - Composable custom class converters for attrs.
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
nestedtextto - CLI to convert between NestedText and JSON, YAML, or TOML, with explicit type casting
python-rapidjson - Python wrapper around rapidjson