Python Metaprogramming

Open-source Python projects categorized as Metaprogramming

Top 19 Python Metaprogramming Projects

Metaprogramming
  1. hy

    A dialect of Lisp that's embedded in Python

    Project mention: Embedding Python in Elixir, It's Fine | news.ycombinator.com | 2025-02-25

    Elixir is just Lisp with a facelift[1], and lisps can be built on Python[2]. It stands to reason that an elixir-like can be built on Python too, so you could embed the Python runtime in Elixir but Elixir-likes are used to code for both.

    1: https://wiki.alopex.li/ElixirForCynicalCurmudgeons

    2: https://hylang.org/

  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.

    Judoscale logo
  3. example-code-2e

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

  4. decorator

    decorator (by micheles)

  5. context_menu

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

  6. hissp

    It's Python with a Lissp.

  7. linqit

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

  8. fypp

    Python powered Fortran preprocessor

    Project mention: Faer-rs: Linear algebra foundation for the Rust programming language | news.ycombinator.com | 2024-04-24

    most of it's just general programming niceness. If you have to spend a few hours to wrestle with make/bazel/etc every time you need to reach for a dependency, you don't depend on things and have to rewrite them yourself. If your programming language doesn't have good ways of writing generic code, you either have to write the code once per precision (and do all your bugfixes/perf improvements in triplicate) or do very hacky metaprogramming where you use Python to generate your low level code (yes the Fortran people actually do this https://github.com/aradi/fypp), or use the C preprocesser which is even worse.

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. pyccolo

    Declarative instrumentation for Python.

  11. dataclassy

    A fast and flexible reimplementation of data classes

  12. mcpyrate

    Advanced macro expander and language lab for Python.

  13. GAS

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

  14. reflecxx

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

  15. smart-imports

    smart imports for Python

  16. paroxython

    Tag and recommend Python exercises based on algorithmic features

  17. hebigo

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

  18. decfunc

    Creating decorators with arguments made easy.

  19. TransGatacca

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

  20. forge

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

  21. metashade

    An experimental GPU shading DSL embedded in Python.

    Project mention: Metashade GPU EDSL at ASWF Open Source Days | news.ycombinator.com | 2024-09-01
  22. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit 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 discussion

Log in or Post with

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 5,210
2 example-code-2e 3,521
3 decorator 868
4 context_menu 480
5 hissp 413
6 linqit 248
7 fypp 196
8 pyccolo 87
9 dataclassy 84
10 mcpyrate 63
11 GAS 56
12 reflecxx 55
13 smart-imports 39
14 paroxython 34
15 hebigo 24
16 decfunc 5
17 TransGatacca 2
18 forge 0
19 metashade 0

Sponsored
Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.
judoscale.com

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