mashumaro
anchorpy
Our great sponsors
mashumaro | anchorpy | |
---|---|---|
3 | 7 | |
727 | 190 | |
- | - | |
9.3 | 8.6 | |
7 days ago | 27 days ago | |
Python | Python | |
Apache License 2.0 | MIT License |
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.
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
anchorpy
-
Solana SPL transfer Python
You looked in here? https://github.com/kevinheavey/anchorpy
-
Announcing Solders: a Python wrapper for the Solana Rust SDK
Hi, creator of AnchorPy and core maintainer of solana-py here.
-
I made a Python client generator for Solana Anchor projects (but I'm here to talk about codegen)
Generating Python code seems to be really uncommon. I was surprised at this - it's not an obviously insane thing to do, right? However I found almost no existing tooling to help me, and I did search for quite a while. Eventually I found a small, half-finished library called genpy and decided I would extend that as needed.
-
Announcing anchorpy client-gen 🐍 Generate Python clients from Anchor IDLs
Here's the repo and here are the client-gen docs. Do let me know if you try it out and have any suggestions!
-
apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it
I used this for parsing a JSON IDL and it worked really well https://github.com/kevinheavey/anchorpy/blob/main/src/anchorpy/idl.py
- I created AnchorPy: a library for interacting with Solana programs
- AnchorPy: Interact with Solana programs using Python
What are some alternatives?
msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
solana-py - Solana Python SDK
marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
nft-generator-py - This tool allows users to generate sets of unique images and metadata using weighted layer collections.
orjson - Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
SolanaMint - Solana Minting Bot | MagicEden + MonkeLabs
cattrs - Composable custom class converters for attrs.
anchor-client-gen - A tool for generating solana web3 clients from anchor IDLs.
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
solathon - ☄️ High performance, easy to use and feature-rich Solana SDK for Python.
python-rapidjson - Python wrapper around rapidjson
defi-score - DeFi Score: An open framework for evaluating DeFi protocols