Skip to content

lilyyy411/py-rust-macro

Repository files navigation

Rust-Macro: Simple Rust-Like Macros for Python

docs Tests

Introduction

Many low-level languages have a concept of macros that allow users to not have to write the same code over and over again. In Python, however, there isn't such a feature.

Why would anyone want macros in Python?

  • Python is a very dynamic language and can be slow at times because of the overhead of calling the same function over and over
  • You might want to add inline parsing of a language like sql to remove runtime overhead of parsing a literal
  • Other times you want to call a function before the script is run
  • Because why not?

Usage

Read the documentation for more information

About

A library that allows usage, creation, and integration of rust-like macros in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages