Skip to main content

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.92

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mirascript 0.1.92
File Size Uploaded
mirascript-0.1.92.tar.gz 215.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mirascript 0.1.92
File
mirascript-0.1.92-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ x86-64 Details
mirascript-0.1.92-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ ARM64 Details
mirascript-0.1.92-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.28+ ARM64 Details
mirascript-0.1.92-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.17+ x86-64 Details
mirascript-0.1.92-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details
mirascript-0.1.92-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
mirascript-0.1.92-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
mirascript-0.1.92-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
mirascript-0.1.92-cp38-abi3-win_arm64.whl CPython 3.8 abi3 Windows ARM64 Details
mirascript-0.1.92-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
mirascript-0.1.92-cp38-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.8 abi3 PyEmscripten 2026.0+ WebAssembly Details
mirascript-0.1.92-cp38-abi3-musllinux_1_2_x86_64.whl CPython 3.8 abi3 Linux musl 1.2+ x86-64 Details
mirascript-0.1.92-cp38-abi3-musllinux_1_2_aarch64.whl CPython 3.8 abi3 Linux musl 1.2+ ARM64 Details
mirascript-0.1.92-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
mirascript-0.1.92-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details
mirascript-0.1.92-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details
mirascript-0.1.92-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details

Total release size: 9.8 MB

Release files / mirascript-0.1.92.tar.gz

Download URL mirascript-0.1.92.tar.gz
Size 215.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b398e8fe6181d37f43cf94f2dbe34dd06c49b3813f5699cc5da3e6ba6ca7001e
BLAKE2b-256 checksum
How to use checksums
56fd4a2d56b1c1e2ad74a2e72dcd45347611950e4351c74fd47909642332dd1c
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl

Download URL mirascript-0.1.92-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Size 771.8 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
08a78aa472d7c8e3d46dcc3c94c34f9d04829226152f6a5f4d4930f2f741287a
BLAKE2b-256 checksum
How to use checksums
49c6df97da72d27932547b36f1c44f2ab3c628a96bebcb33ada29ec7cbb02cc1
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl

Download URL mirascript-0.1.92-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
6fa41b2ad3b6cbe04430d48014f3eed56d37a25834ee1f24caa65a590e6b7aba
BLAKE2b-256 checksum
How to use checksums
b96f96060f38e239af3eb52631a895d6eae0e42d80beff4cc6525f98ec504be5
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl

Download URL mirascript-0.1.92-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
a32c53e7922b7f5fa960da9699e2cf8aa01652397763a9446c3c25b25f0774b9
BLAKE2b-256 checksum
How to use checksums
3350034e755e722cfe9525a8ec35a14330a7a5df653984ad6c2654f313ddd243
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mirascript-0.1.92-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
f8c3aac5737ab7b308e818d5a197599d4aac6343a7f42c92ed0cdd1245a68623
BLAKE2b-256 checksum
How to use checksums
c023376ea453f92cb73a0b9513c047f90d4ae97a2b2ccdd50f0173561de862a3
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp314-cp314t-win_arm64.whl

Download URL mirascript-0.1.92-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
709835939dd5a52173794163c3649e456f1ea1fd624906fafef212fa5cf0d740
BLAKE2b-256 checksum
How to use checksums
3ad54082157e644ece6bf97ab98645feeaccd159c4042dadcbd68b3e6c71ef96
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp314-cp314t-win_amd64.whl

Download URL mirascript-0.1.92-cp314-cp314t-win_amd64.whl
Size 503.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
23c540d6ed2ac014ef7a4d815eb952acb1626433d4c4ee4821d80624f2aeee55
BLAKE2b-256 checksum
How to use checksums
fbe75b8283292caee7d87199ff33d58418fcbcdeda2f43227d4b0c5dc12c95fa
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp314-cp314t-macosx_11_0_arm64.whl

Download URL mirascript-0.1.92-cp314-cp314t-macosx_11_0_arm64.whl
Size 513.2 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
91540300182cf65ba9f4a22066cfb232210ce0d49ded79e72c5d50f559b92c2c
BLAKE2b-256 checksum
How to use checksums
44f7b94f6e5685ec84783d61ff3c82b0e6210d12dba2333bcc32f35b81580bbc
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL mirascript-0.1.92-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
4391f3dc35a8b6af9552037df898e11320430d9afb9cce91862ec92913006560
BLAKE2b-256 checksum
How to use checksums
de58f9c2f57ec6480bb8f84ca8a71cb8c563a5a1a2815b96a4d868eb79c3c51e
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-win_arm64.whl

Download URL mirascript-0.1.92-cp38-abi3-win_arm64.whl
Size 476.4 kB
Tags CPython 3.8 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
d3216529948211ac8650ef02dcdadc96f54050a6056294133e095307d9391558
BLAKE2b-256 checksum
How to use checksums
91f9315bc117852c7d783ae72e14dd75b7039fad8c70e9b5c59c6f6d49e52914
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-win_amd64.whl

Download URL mirascript-0.1.92-cp38-abi3-win_amd64.whl
Size 511.7 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bed63364e21c0edd48ae1554eddfd848a168d5d74f1ae40ceeb797235f933c53
BLAKE2b-256 checksum
How to use checksums
c114ea62445c96d12378848923988d87cd44160d093a57efe79aac6c03c85e35
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-pyemscripten_2026_0_wasm32.whl

Download URL mirascript-0.1.92-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
c489d9e8751ed8c974bf8c21dcf5ffc62a6cce23f4c26789664d12443994de06
BLAKE2b-256 checksum
How to use checksums
858b8232c957cc9a90f3b32f6658acb8c4f5f4c6f43ef36fb64b36e623c12225
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-musllinux_1_2_x86_64.whl

Download URL mirascript-0.1.92-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
7b645152cb661e45ef71b1786dea6a0ea980cc63b21352ee780609d4f925f4d7
BLAKE2b-256 checksum
How to use checksums
a9fbbc8674cde9338dea2cfea0ce16784a9464e788af3bd323bc692851c2ef1a
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-musllinux_1_2_aarch64.whl

Download URL mirascript-0.1.92-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
38e84155ff3f6f24bb7433cbec78bb9d9e97d8445574be6837b026ce25ccc863
BLAKE2b-256 checksum
How to use checksums
8da21641fc1799561517e2fb27bf7f2038ce9426ccac2a59d4b369e1054bee7b
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL mirascript-0.1.92-cp38-abi3-manylinux_2_28_aarch64.whl
Size 551.0 kB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
048114da534208d4d04be9f1e73d0268dfb3429b9f7b0617f7adfa06a141640c
BLAKE2b-256 checksum
How to use checksums
2bc014c95657b957edb91f44534d574d217f6e244cccdc9d04a53907e30a2358
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mirascript-0.1.92-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
57f87d44e975f8c1c90f6a6027dbf1e545315612bed2c52f73c9e3315a3cc3f5
BLAKE2b-256 checksum
How to use checksums
e0fcae437c4c994e48d4ab776d5a91be388d8818c45d9e543a39ee56d51e0b3d
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-macosx_11_0_arm64.whl

Download URL mirascript-0.1.92-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
0a711efaf939939d66e6bf33afd5afc60bace6f10b5639055bcccd90f642c8cc
BLAKE2b-256 checksum
How to use checksums
69727e0673052646eb57a87a3f13b44f63dd9bee9ddce9d2822beaef6f45cdc3
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 3, 2026.

Transparency log

Release files / mirascript-0.1.92-cp38-abi3-macosx_10_12_x86_64.whl

Download URL mirascript-0.1.92-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
d633be35883ed40e059c989fdaacf3c8932a50bbb2d13189c0116925523ceb6e
BLAKE2b-256 checksum
How to use checksums
38a65d4fda2450252c5b37eda8ee2b751e396c5a316a9b420e7f8d8601ddf36b
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 3, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page