A better Python superset language.
Project description
MíngShé
A better Python superset language. Use Pegen to compile the code.
“鲜山多金玉,无草木,鲜水出焉,而北流注于伊水。其中多鸣蛇,其状如蛇而四翼,其音如磬,见则其邑大旱”——《山海经》
Install
pip install mingshe
Usage
As a script
Write the following code to hello.she, and then run mingshe ./hello.she.
"hello world" |> print
As a module
Just like use a python module, you can use a mingshe module.
# lib.she
def digit_sum(s: str) -> int:
return s |> map(int, ?) |> sum
# main.py
from lib import digit_sum
print(digit_sum('123456'))
Compile to python
Use mingshe --compile ... to compile to Python code, and it can be compiled to the specified Python version: mingshe --compile --python 2.7 ....
Change log
Read releases to see the change log.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mingshe-0.8.2.tar.gz.
File metadata
- Download URL: mingshe-0.8.2.tar.gz
- Upload date:
- Size: 71.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be414f5d8733d5d44f933485d799295a365d8244e75432e73adcd2cba3078035
|
|
| MD5 |
7625b575a0b39eb358f05ffd3a0fa424
|
|
| BLAKE2b-256 |
8e103c2df1fddc887162389c47c65fb19d03b8cf70bf37358b8393f7d0b58c9a
|
File details
Details for the file mingshe-0.8.2-py3-none-any.whl.
File metadata
- Download URL: mingshe-0.8.2-py3-none-any.whl
- Upload date:
- Size: 67.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f088e21f32cd5a6f018a8d13e930ca84b169574173bf7dbc7b1518c40d074e4
|
|
| MD5 |
ad724cca0ca79fd90ccd330681f6cb11
|
|
| BLAKE2b-256 |
8bd77eaa6bebddabb69631e10872dbd078c656850092aed9ff18e08aa74b8c9a
|