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.
Metadata
Release files for mingshe 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mingshe-0.8.2.tar.gz | 71.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mingshe-0.8.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 138.3 kB
Release files / mingshe-0.8.2.tar.gz
| Download URL | mingshe-0.8.2.tar.gz |
|---|---|
| Size | 71.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be414f5d8733d5d44f933485d799295a365d8244e75432e73adcd2cba3078035
|
|
BLAKE2b-256 checksum How to use checksums |
8e103c2df1fddc887162389c47c65fb19d03b8cf70bf37358b8393f7d0b58c9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mingshe-0.8.2-py3-none-any.whl
| Download URL | mingshe-0.8.2-py3-none-any.whl |
|---|---|
| Size | 67.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f088e21f32cd5a6f018a8d13e930ca84b169574173bf7dbc7b1518c40d074e4
|
|
BLAKE2b-256 checksum How to use checksums |
8bd77eaa6bebddabb69631e10872dbd078c656850092aed9ff18e08aa74b8c9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|