I made a Python client generator for Solana Anchor projects (but I'm here to talk about codegen)

This page summarizes the projects mentioned and recommended in the original post on /r/Python

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. genpy

    An AST for Python code generation, in Python

    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.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. anchorpy

    The Python Anchor client.

    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.

  4. anchor-client-gen

    A tool for generating solana web3 clients from anchor IDLs.

    In building the client generator, I mimicked the Typescript tool anchor-client-gen but had to change a lot of things that didn't work in Python or weren't Pythonic if translated directly. The trickiest part was keeping track of types that I had generated in one file that needed to be imported in another generated file.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Solana SPL transfer Python

    1 project | /r/solana | 23 Feb 2023
  • Announcing anchorpy client-gen 🐍 Generate Python clients from Anchor IDLs

    1 project | /r/solana | 8 May 2022
  • I created AnchorPy: a library for interacting with Solana programs

    1 project | /r/Python | 7 Dec 2021
  • Announcing Solders: a Python wrapper for the Solana Rust SDK

    3 projects | /r/solana | 1 Jun 2022
  • Sol4k - Kotlin, JVM, and Android client for Solana

    1 project | /r/coolgithubprojects | 1 Sep 2023

Did you know that Python is
the 2nd most popular programming language
based on number of references?