MiraScript
MiraScript 是 CloudPSS 维护的表达式优先脚本语言项目。Python 绑定用于在 Python 中调用 MiraScript 编译器能力,支持脚本编译与执行。
安装
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.94
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mirascript-0.1.94.tar.gz | 209.7 kB | Details |
Built distributions (wheels)
Total release size: 9.8 MB
Release files / mirascript-0.1.94.tar.gz
| Download URL | mirascript-0.1.94.tar.gz |
|---|---|
| Size | 209.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a25e9ef140bcf4a4cd7c5619f16e0b00ecf01beebb7e1425b2f9df7d7c78d556
|
|
BLAKE2b-256 checksum How to use checksums |
f45f619a3479bc47af2625c29e222b8dfd4bf5b3eb6a6c76042c17a6ffa84eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
| Download URL | mirascript-0.1.94-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 771.9 kB |
| Tags | CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
1c69adb5ddede62df9127122e77b3791b75386dc94ddf682bd8791d69a1bf21c
|
|
BLAKE2b-256 checksum How to use checksums |
76db622faadc0f9651c25c103f8b5c5f9d456565dbf55c4ea9c21e168707247c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
| Download URL | mirascript-0.1.94-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 730.2 kB |
| Tags | CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
174a07da581fce634536c7b7795f3f244bc0717b997cfaadbcc0499b09fb7792
|
|
BLAKE2b-256 checksum How to use checksums |
01ed1eb0448dc228706bf9bac629942de72f271be1e5d5dfc87e228198022c25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
| Download URL | mirascript-0.1.94-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 544.0 kB |
| Tags | CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
f59472082aa042fcc90c24008f6a926d4d9f2cd255c8928cdb0d4b781d2ce89c
|
|
BLAKE2b-256 checksum How to use checksums |
8305c006989b54e9cf5ce563c5e24f5d145f83780386fe052a0291c3cb496b08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mirascript-0.1.94-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 559.6 kB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
feeafb471bfd38611327f98ec2fabda4475279c12ddb558009aeeb1f0724242d
|
|
BLAKE2b-256 checksum How to use checksums |
716e632b4ccf15ae155204acba2deec2f3587871ff34883e52a1c9d362ac797a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp314-cp314t-win_arm64.whl
| Download URL | mirascript-0.1.94-cp314-cp314t-win_arm64.whl |
|---|---|
| Size | 468.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
ee51a49162b1eee58e1eac95dc45d24ff1819b421bd18a24f1b475966401598d
|
|
BLAKE2b-256 checksum How to use checksums |
fd2e97f02fe7221343c9b4c8a3ce7384aff8b0e83bcd1e778c390e1de00dad31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp314-cp314t-win_amd64.whl
| Download URL | mirascript-0.1.94-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 503.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1d8a58a581c5fbfeb7666fd7492a5d69ef438de136a5ab42caa3cc40eddb9a0d
|
|
BLAKE2b-256 checksum How to use checksums |
019b2829116e4e41cbc7d5f209432b276c50413e61a6648b690fdad1baa85500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | mirascript-0.1.94-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 513.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2c3278545dae630c9bbeacf974d031cc4baa259a1fdaa30b60ee8fed0329dc2c
|
|
BLAKE2b-256 checksum How to use checksums |
15efc99f98001e99e8d7dcec3a313d2403ad35e78c81d1b20c2dc427d6a1a04d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp314-cp314t-macosx_10_12_x86_64.whl
| Download URL | mirascript-0.1.94-cp314-cp314t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 536.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
36390bf0d393b422f8e8f151d0e8f603bada3bb0c86ba733bf227c3cfc10674a
|
|
BLAKE2b-256 checksum How to use checksums |
119dbf2670a6bea8064e99aae8a86b204a8b729c3ac7945e5f8322c0b5a3749a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-win_arm64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-win_arm64.whl |
|---|---|
| Size | 476.4 kB |
| Tags | CPython 3.8 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
44948784ebf5d83e69b964fc54d6b6983ace5552425ce888686efddbcd7dc2bf
|
|
BLAKE2b-256 checksum How to use checksums |
aa7185d9261e3a28dac3328ee1cd6b9dcaa50bc370f67b4693fac27a0766e365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-win_amd64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 511.7 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0a5745b314f66e7632ff2ee56fdc796c47c087512f6b83fa63c477eff8ae7d90
|
|
BLAKE2b-256 checksum How to use checksums |
0ed42e1e18d586d3a326260d58303268ad69ffbc765a179344c45cedae1ba5a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-pyemscripten_2026_0_wasm32.whl
| Download URL | mirascript-0.1.94-cp38-abi3-pyemscripten_2026_0_wasm32.whl |
|---|---|
| Size | 256.1 kB |
| Tags | CPython 3.8 PyEmscripten 2026.0+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
a91839444b8c63052b3c67d91b43f4ec7bf1e01871cc70c9c15894ea327f7c90
|
|
BLAKE2b-256 checksum How to use checksums |
59f24e6bda26caa7bca345f36249fc2124ef939347dc85967f0f36576ad030a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-musllinux_1_2_x86_64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 778.7 kB |
| Tags | CPython 3.8 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5d3381f228b7861a3efb4a9731e1db68640dd98cb6058d7123ed81c06fd529cf
|
|
BLAKE2b-256 checksum How to use checksums |
fd8165e1d475575f794a87f3df8bc13ab597c0fe8bcfebd43b3fa11954085d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-musllinux_1_2_aarch64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 738.4 kB |
| Tags | CPython 3.8 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ef854aa37a8741767c1863febd0300708973fac97ad867fe805ea2acc88a132a
|
|
BLAKE2b-256 checksum How to use checksums |
e0d2972e3573d3fb4f9fb3b616726265c9535c628c2665218e5457a12d05a9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-manylinux_2_28_aarch64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 551.1 kB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
706a8884e09908f48b8144661f303c3e5c1e378a88410e900523bd4301fab8a7
|
|
BLAKE2b-256 checksum How to use checksums |
d4f29a7240a91373264d626eaa654327e4911332fddf57652d7126ccb8b4feb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 566.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0ffa00e6e291895d494015335d2fbb3aadb06376994978fcb25742d2b395fa18
|
|
BLAKE2b-256 checksum How to use checksums |
4532232fbebd2a889284d7c710757c57ed467c5f5e5abf0f1599e0891cbdc3d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 524.2 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
21f4f0b74ef2fec1dada7e5b0dadff8d7c07d2181418b0b1ee71caef66413cd3
|
|
BLAKE2b-256 checksum How to use checksums |
b46cf588d9ac3b4c6b9e459f5f8d9d7cfe1c3a48f3626a15752cee3e3afdca52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / mirascript-0.1.94-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | mirascript-0.1.94-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 542.8 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9d9d5fe20130fefe0896a175e4e18e4c3866c7fe70cde5b7dcc497b732df5ce
|
|
BLAKE2b-256 checksum How to use checksums |
36b2f97118d3720b2a7390a86f5716ab9b86eb39d010910ac2b829c3ad42b705
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency log