Modify and extend the Python language with (relative) ease
Project description
Makros
Extend the Python language with (relative) ese
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.
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.0.0.tar.gz
(30.0 kB
view details)
Built Distribution
makros-1.0.0-py3-none-any.whl
(35.4 kB
view details)
File details
Details for the file makros-1.0.0.tar.gz
.
File metadata
- Download URL: makros-1.0.0.tar.gz
- Upload date:
- Size: 30.0 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 | b48d9195c8e3cc3a854b24b68e4771ae82c1ec4b1ad51962172a272f1fe311b4 |
|
MD5 | 4e609b87c068e2b77e29dae6b0f8f9b4 |
|
BLAKE2b-256 | 5f862e0f2fd3f9143c555bf92304766ff04b8edc2c7c9021f110b79f8f248127 |
File details
Details for the file makros-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: makros-1.0.0-py3-none-any.whl
- Upload date:
- Size: 35.4 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 | 28fae34833fab96d31aeac53e294a92d1ed716305a80f5332736c5129a850e3e |
|
MD5 | 74064c69db7886b62da7907791e0d465 |
|
BLAKE2b-256 | dbadf817ee05fbf5525532ea1e0156a1db4688abea238c24d6258901bd99d678 |