PyMacro
Welcome to pymacro, a python library that you can use to have MACROS inside your python functions. It uses a decorator to find and replace macros inside of comments with valid python code. It can be used in the following manner.
from pymacro import macro
@macro
def func_with_macro():
# DEFINE x 10
print(x)
The DSL inside the comments is turned into valid python code.
Metadata
Release files for python-pymacro 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-pymacro-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for python-pymacro-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_pymacro-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for python_pymacro-0.1.0-py3-none-any.whl |
Total release size: 5.2 kB
Release files / python-pymacro-0.1.0.tar.gz
| Download URL | python-pymacro-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c05341b89af7465fab7d3d397f9f1ea164e677d5c3adb98157b688d52471109
|
|
BLAKE2b-256 checksum How to use checksums |
8005199763d7ba9bea7542d76a6dc4e40a4f28bfcffc97060c17be8983243e79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5+ Linux/5.14.6-arch1-1
|
Release files / python_pymacro-0.1.0-py3-none-any.whl
| Download URL | python_pymacro-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
216093c81c536d08ce9573d4f61264a507705cd5748d24600d4b09083defb8a8
|
|
BLAKE2b-256 checksum How to use checksums |
347f7402b1c68629b4810ae268df041c4d1554cf86eb936469164064e85c79bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5+ Linux/5.14.6-arch1-1
|
Security for python-pymacro 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.