Python Metaprogramming

Open-source Python projects categorized as Metaprogramming

Top 19 Python Metaprogramming Projects

  • hy

    A dialect of Lisp that's embedded in Python

  • Project mention: A dialect of Lisp that's embedded in Python | news.ycombinator.com | 2024-04-09
  • example-code-2e

    Example code for Fluent Python, 2nd edition (O'Reilly 2022)

  • Project mention: Ask HN: How can I get better at writing production-level Python? | news.ycombinator.com | 2023-07-18

    Yeah, reading the Fluent Python book[1] and / or following along with their support files[2] would a good way to start

    [1] https://amzn.to/3J48u2J

    [2] https://github.com/fluentpython/example-code-2e

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • decorator

    decorator (by micheles)

  • context_menu

    An open-source python library that provides functionality to editing OS context menus.

  • hissp

    It's Python with a Lissp.

  • Project mention: Hissp | news.ycombinator.com | 2023-12-17
  • linqit

    Extend python lists operations using .NET's LINQ syntax for clean and fast coding.

  • fypp

    Python powered Fortran preprocessor

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

    Declarative instrumentation for Python.

  • dataclassy

    A fast and flexible reimplementation of data classes

  • GAS

    Generative Art Synthesizer - a python program that generates python programs that generates generative art

  • reflecxx

    A static reflection framework for C++, using libclang.

  • mcpyrate

    Advanced macro expander and language lab for Python.

  • smart-imports

    smart imports for Python

  • paroxython

    Tag and recommend Python exercises based on algorithmic features

  • hebigo

    蛇語(HEH-bee-go): An indentation-based skin for Hissp.

  • Project mention: What is the point of the if __name__ == "__main__":, i.e. why use a file as both script and module? | /r/learnpython | 2023-06-26

    The Lissp transpiler incrementally compiles and executes each top-level form to Python. It needs to do this in case there's a macro definition that might affect the compilation of a subsequent form. If it's only executing definitions, this is harmless, but if you want to precompile the main module, it needs the guard, or the side effects will happen too.

  • metashade

    An experimental GPU shading DSL embedded in Python.

  • Project mention: Show HN: Metashade – a Pythonic GPU shading/compute EDSL | news.ycombinator.com | 2024-04-21

    Thanks!

    Multiple targets is definitely the plan, and GLSL is my next priority. Metashade can currently generate HLSL for the DX12 version of https://github.com/ppenenko/glTFSample/tree/metashade_demo, and there's also a Vulkan version of that demo using GLSL. So implementing GLSL generation for that would be a great proof of concept and a test bed: HLSL and GLSL generated from single source and producing identical rendering results.

    The diagram on slide 31 of my presentation shows how implementation is currently inherited between the Metashade packages. The future GLSL generators should inherit common functionality from the "rtsl" package, just like the existing HLSL generators. However, I expect heavy refactoring to be necessary because I was initially targeting just one language and so not all code is implemented at the appropriate level.

    BTW, here's a poll where you can vote for a target language you'd like to see prioritized: https://github.com/ppenenko/metashade/discussions/17

  • decfunc

    Creating decorators with arguments made easy.

  • TransGatacca

    A DNA to Protein [Reverse] Translator implemented in Aarch64/AMD64 Assembly languages, with interface in C, Rust, and Python

  • forge

    forge new function objects with reinit-ed default params (by theboxahaan)

  • SaaSHub

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

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Metaprogramming related posts

Index

What are some of the best open-source Metaprogramming projects in Python? This list will help you:

Project Stars
1 hy 4,772
2 example-code-2e 2,916
3 decorator 811
4 context_menu 444
5 hissp 331
6 linqit 245
7 fypp 178
8 pyccolo 84
9 dataclassy 79
10 GAS 52
11 reflecxx 52
12 mcpyrate 51
13 smart-imports 38
14 paroxython 33
15 hebigo 21
16 metashade 20
17 decfunc 5
18 TransGatacca 2
19 forge 0

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