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.0.tar.gz
(31.1 kB
view details)
Built Distribution
makros-1.1.0-py3-none-any.whl
(36.6 kB
view details)
File details
Details for the file makros-1.1.0.tar.gz
.
File metadata
- Download URL: makros-1.1.0.tar.gz
- Upload date:
- Size: 31.1 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 | fbe0b614ca486d0676d90f81422d61c8abb338b41c0ed9119f09c0a31f890284 |
|
MD5 | 4a0382fe09c90d49538897a26fc753d0 |
|
BLAKE2b-256 | e78deb20ed8ed64b2af79f1ad9bb8a8b8d841241a8ca578004732205586164e6 |
File details
Details for the file makros-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: makros-1.1.0-py3-none-any.whl
- Upload date:
- Size: 36.6 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 | 92e075d91d416340c6d85e98f5420280a6b7eaccfca0d6d3c36bd31f2da34c52 |
|
MD5 | 8a4ec08f81cbb2b3a2ef506017b6bab5 |
|
BLAKE2b-256 | 4d9543c7bee0daf3342d65d57455e00a61d5f6c719837691a8fed38bbbbbdaae |