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 | Provenance | Actions |
|---|---|---|---|---|
| mingshe-0.8.2.tar.gz | 71.1 kB | Without provenance | Details for mingshe-0.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mingshe-0.8.2-py3-none-any.whl | Python 3 | none | any | Details for mingshe-0.8.2-py3-none-any.whl |
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
|
Security for mingshe 0.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.