MiraScript
MiraScript 是 CloudPSS 维护的表达式优先脚本语言项目。Python 绑定用于在 Python 中调用 MiraScript 编译器能力,支持脚本编译与执行。
安装
需要 Python 3.9 或更高版本。
pip install mirascript
快速开始
命令行执行:
mirascript -v x=1.3 -e "sin(x) + cos(PI - x)"
在 Python 代码中执行:
from mirascript import compile
script, diagnostics = compile("sin(x) + cos(PI - x)")
result = script({"x": 1.3})
本地开发
初始化环境:
uv sync
uv run poe init
运行测试与检查:
uv run poe test
uv run poe check
格式化代码:
uv run poe format
调试入口(生成 debug_output.py):
uv run poe debug
Metadata
Release files for mirascript 0.1.103
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 |
|---|---|---|---|---|
| mirascript-0.1.103.tar.gz | 212.4 kB | With provenance | Details for mirascript-0.1.103.tar.gz |
Built distributions (wheels)
Total release size: 9.8 MB
Release files / mirascript-0.1.103.tar.gz
| Download URL | mirascript-0.1.103.tar.gz |
|---|---|
| Size | 212.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53893cd1e5147e88907ea2ae93610e4a450e3ab8acf43992eb600a49bca830d9
|
|
BLAKE2b-256 checksum How to use checksums |
2bd78958a204adc010cf148e1da52caafa36fbfd5fcf5e3fa31160ef86e9e9bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-win_arm64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-win_arm64.whl |
|---|---|
| Size | 473.8 kB |
| Tags | CPython 3.15 Windows ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
1779c1d150010a3bb5cb2e64b30e42d5fb05fae26374b968c92b5f921aab9b14
|
|
BLAKE2b-256 checksum How to use checksums |
6a80cff0961aa4a0005d13d347b13d0bcd98e6388d29dfc865910412ec183a77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-win_amd64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-win_amd64.whl |
|---|---|
| Size | 508.0 kB |
| Tags | CPython 3.15 Windows x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
5ea041f2b575a1c5bedef41f7ef817c7aced15c8f95ef663033eb8d78ea1f034
|
|
BLAKE2b-256 checksum How to use checksums |
bd8d53a30225afe85bca51d10e59fd90449d34a522cce87a39764536f7ccecbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 765.8 kB |
| Tags | CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
39e1d26585333075c08b76b77aab9dea4b702058547382b184710926f4ea49ba
|
|
BLAKE2b-256 checksum How to use checksums |
63a5db122008ae8995cb297d2893f06085fc6d3c61b0bdda7b883c2d3cf98e3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 726.8 kB |
| Tags | CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
cb7be5efd61538a3af0efe8b33d0eb7109ca92bf6ce62f649f576aa4a96f625a
|
|
BLAKE2b-256 checksum How to use checksums |
8061f1024ce6ee4f8e6ab140eefa0b20270f5e9c73e3f6a7e91c065797865667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 537.5 kB |
| Tags | CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
ad9e04652c433a251a0d77b5be94229f663889ac85cfcb7ebf7a068bbfe5fd89
|
|
BLAKE2b-256 checksum How to use checksums |
bdeb1752a66d1b61dadad7551c09a9649014a8fa31e80355d46201bd3c3acabe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 553.1 kB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
271557f8c9d3c250c8917ef360774b7c42c8e0f09973866083fbea680c8ee29c
|
|
BLAKE2b-256 checksum How to use checksums |
57498444f255915a8c18e4a7de1570824a471277991bcba04d8257c7492909da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-macosx_11_0_arm64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-macosx_11_0_arm64.whl |
|---|---|
| Size | 513.6 kB |
| Tags | CPython 3.15 abi3 abi3t macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ff5d93aa7125392bcc089af649993669495a9468ff4352be011d70ca3048a50f
|
|
BLAKE2b-256 checksum How to use checksums |
f5e0e1f544e52160524e4ab8a4c908adbac524b837e53526314c720cd4a8b8eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
| Download URL | mirascript-0.1.103-cp315-abi3.abi3t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 536.5 kB |
| Tags | CPython 3.15 abi3 abi3t macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
2da0f77bd66ae61c06d6828028b3bb573285141a975f375f195f0141afb4d06e
|
|
BLAKE2b-256 checksum How to use checksums |
8bfd68f3a60a41578b04a03f92588ea06802d65dbc0c8fe6908445b3f0466c9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-win_arm64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 482.2 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a0d912bdff26d1288404f7d92241176b4166d528097f83d57d1545e1265db669
|
|
BLAKE2b-256 checksum How to use checksums |
d84c7e88115e25804cff0a9e714e1641e7d9fb57ad09bbe94ebc868068f5e6aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-win_amd64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 516.8 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3cddf987ad4055f0cd2377c8f2e89aeccfaa0983ea8eeabcb3042f9131bb06bb
|
|
BLAKE2b-256 checksum How to use checksums |
df78eab71a556caffed0112f6dfa87c6a64309ee4ad529d0c8e761fa39d985b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-pyemscripten_2026_0_wasm32.whl
| Download URL | mirascript-0.1.103-cp39-abi3-pyemscripten_2026_0_wasm32.whl |
|---|---|
| Size | 260.0 kB |
| Tags | CPython 3.9 PyEmscripten 2026.0+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
609f411c765af243ba921f17ac17e1b937c5f23cfbad3651c043e094ad7137d1
|
|
BLAKE2b-256 checksum How to use checksums |
3f97afd38c57c09409c7ed03a0bf431f2587eb88efe836f6eadab222a32a4417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 775.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0add144d3c16f119b7f4cb04e62d87cc26cea21f5368b3a3e8d387ef664d4823
|
|
BLAKE2b-256 checksum How to use checksums |
fc033a72cda84df98b3bba9d25899d84ccc0a74a713afee9486dc9bb9604f2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 733.9 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2b070aa4d2f86bbdee16a809e58941f7c8be7ea2cdf1d18d42d0908022822fe0
|
|
BLAKE2b-256 checksum How to use checksums |
a4a510ad4f84ac84ebf522356f852f3f8166d4e7630af665177f84d5297e9d78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 547.2 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ba4244136c4a9b02a78df0ace3e5bf4faa858dc874ec25ca9c16ff7a9cd761fe
|
|
BLAKE2b-256 checksum How to use checksums |
36c7a741a531ce1302cb6d613b87183edcf56a0e479ac78fb264d9d8a5ca6546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 562.3 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a33a3da77f320da460c7dc6091b27185d9308538be36497f7e2cbed31528883b
|
|
BLAKE2b-256 checksum How to use checksums |
68a0aad766369b9d278bc5622fbf5e8f59d0527e48acb48ebadf57ffd55b557a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 523.0 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c46a6d8f7d45b116a4dcdc10b04e56c8322cf1fb6d03a9ef2ddb01bd8929c65
|
|
BLAKE2b-256 checksum How to use checksums |
8e27fb8ba3bcac54f30bb89b4bfe204d7e8bde189fdb21b6457debc9cd5f3aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / mirascript-0.1.103-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | mirascript-0.1.103-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 542.5 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
8e16e88ebb0428fdb993302b4b00f468d949fbffc3a61910d0624adde1311fae
|
|
BLAKE2b-256 checksum How to use checksums |
f33b2e4b0708fe7a4a57d9f6432b8a7d7331d8c28235fe77e88c6d4ddd722414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for mirascript 0.1.103
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.
Full provenance
All 18 files in this release have been uploaded with provenance metadata.
Attestation for mirascript-0.1.103.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA 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.