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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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