Modify and extend the Python language with (relative) ease
Project description
Makros
Extend the Python language with (relative) ease
This program converts custom python files with a custom syntax to regular python files. The overall goals of this project are:
- To include some of the features that I feel are missing from the python programming language
- Provide a method for others to use this functionality without needing to contribute to this repo
Installation
pip install makros
Usage
To use this simply create a file with the .mpy
extension, like the following:
macro import namespace
namespace greet:
name = "World"
export def set_name(new_name):
name = new_name
export def say_hello():
print("Hello, " + name)
greet.say_hello()
greet.set_name("trickypr")
greet.say_hello()
Then just run it with makros:
makros my_file.mpy
For more info, please read our docs, or read the examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
makros-1.1.1.tar.gz
(31.3 kB
view details)
Built Distribution
makros-1.1.1-py3-none-any.whl
(36.7 kB
view details)
File details
Details for the file makros-1.1.1.tar.gz
.
File metadata
- Download URL: makros-1.1.1.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f2043e30ec38e23894b79c4fcb6d476547f24812085bdc739e21b5f6e61354 |
|
MD5 | eb73ebf8529363ed39703ed261eb0e70 |
|
BLAKE2b-256 | 60bab87a72112994d22938940e11ffb2af12fbf49677d972fe1da8e440899545 |
File details
Details for the file makros-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: makros-1.1.1-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b774805c479d6bb5bb7d76f1a483c406a7838c619a2bcd5b80ac9c26538a2c |
|
MD5 | e9fdbdaffc333f8af5ec591201623757 |
|
BLAKE2b-256 | a4d111a5e6378dd20604eb1a9c483bbff683a220780c9eb721bfc427e4b106a8 |