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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirascript-0.1.83.tar.gz (196.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (767.4 kB view details)

Uploaded CPython 3.15CPython 3.15+musllinux: musl 1.2+ x86-64

mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (729.3 kB view details)

Uploaded CPython 3.15CPython 3.15+musllinux: musl 1.2+ ARM64

mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (544.2 kB view details)

Uploaded CPython 3.15CPython 3.15+manylinux: glibc 2.28+ ARM64

mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (555.8 kB view details)

Uploaded CPython 3.15CPython 3.15+manylinux: glibc 2.17+ x86-64

mirascript-0.1.83-cp314-cp314t-win_arm64.whl (476.3 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.83-cp314-cp314t-win_amd64.whl (503.3 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.83-cp314-cp314t-macosx_11_0_arm64.whl (515.3 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.83-cp314-cp314t-macosx_10_12_x86_64.whl (532.2 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.83-cp38-abi3-win_arm64.whl (484.2 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.83-cp38-abi3-win_amd64.whl (511.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.83-cp38-abi3-pyemscripten_2026_0_wasm32.whl (256.4 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.83-cp38-abi3-musllinux_1_2_x86_64.whl (774.9 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

mirascript-0.1.83-cp38-abi3-musllinux_1_2_aarch64.whl (738.6 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.83-cp38-abi3-manylinux_2_28_aarch64.whl (550.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.83-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (562.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

mirascript-0.1.83-cp38-abi3-macosx_11_0_arm64.whl (525.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.83-cp38-abi3-macosx_10_12_x86_64.whl (538.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file mirascript-0.1.83.tar.gz.

File metadata

  • Download URL: mirascript-0.1.83.tar.gz
  • Upload date:
  • Size: 196.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mirascript-0.1.83.tar.gz
Algorithm Hash digest
SHA256 05d4096bd190c9863a3a2aad197fa546901912b498a2a14f2026db6b5088a0d1
MD5 711506248d9dcbc134e9fcb39ab9efc2
BLAKE2b-256 d22e308af21b23b52361948d9ac362d2a7f7b40660879167246cf7711246a3e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83.tar.gz:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1efcfc680e3c99e7416870b87834541bc65efce82ee5a58577fb340820bacbfd
MD5 e9bb67e5337ab44341171e87467f4f41
BLAKE2b-256 a0d9cb254f91f055cea6fd66d25ee2cbcdca387fbbf86cc6e24311417f3350be

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 eebf06ffd662d61b4d03d4a2bf24d392247dcc53121ae361347233b6dd2593df
MD5 061c5a64189ddde1639535f1689d712d
BLAKE2b-256 a4d4d79c42bbc766eeb4f46f8703218056d817d043385bc3fce0d6f231f34039

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8418353603a442ffc8ea8eaa4a4f84fa184cb3ba2e537d3bea4009674ca01f67
MD5 be9f72301bc7db1ead3956cd705ad572
BLAKE2b-256 76e26000ab230645d2d185beb672767c54787b7972bbf93b99f90831b6ae95ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a90ff94b9e27227e99ccb2a93a6012c00a3373482c4eb9fb5f788c98d9afe3ee
MD5 4981656de432e22f44e57ceb50c4c041
BLAKE2b-256 4a770de1f92cc03c2fb24105ae21635e536e05b8a31f796eaf8cd74ee1991d1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp314-cp314t-win_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 88ac17c48f0c2dce2300f32b77fb4e1f91064c73fb4cc6e9d655df1b4ff323ae
MD5 bdae601f690fff3bcb86798991136b86
BLAKE2b-256 1155cdf2172cc89a0ebce0ba3049998b51acf6eac1b68fd3aafc1ad9d128cf84

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp314-cp314t-win_arm64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 57afed3cac578ac309b16deebe180108d9335f072b87b08c743f8a04e1994ef0
MD5 fdc8a21e4efe408ed6097a0e0800d7e3
BLAKE2b-256 1c5b2052da14c8ec37cbaa3fd56f372714a6766d50731bb10d94f6216947b714

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp314-cp314t-win_amd64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 433361a6d35d5fe8080925850b340a858c08592f55d7b73433bf79350f66a597
MD5 dc69f2abd8725d2294385e1a30e307ce
BLAKE2b-256 3ef6d33d5a6cfcab765a3d7d32e06eb1f44dbad1da5b81a90ffa607c9b692ded

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp314-cp314t-macosx_11_0_arm64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp314-cp314t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 edf3b587edc35a953458e66761719a85055b53fe5a1d1b45878638a36e88e198
MD5 11b201a6d0a6da7328ce7e41bffd6e71
BLAKE2b-256 e00e75f9ce5a3d2106a0b48d3d9d6107373deca589e074f0cf30f8a5e1020d32

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp314-cp314t-macosx_10_12_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-win_arm64.whl.

File metadata

  • Download URL: mirascript-0.1.83-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 484.2 kB
  • Tags: CPython 3.8+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 e4d538bb4b467258a0d37ef626a9c2bf10d53052186258b91a726aacfa49ca20
MD5 4e62ebbecd2c98b2002216658732ac36
BLAKE2b-256 d36b686c67151281e7448504e789dac78dca21e70ded15773222857ae73624ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-win_arm64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: mirascript-0.1.83-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 50753621dfc530d0095cb5a6ad34af2773248472bdb92162207d0609c8de157d
MD5 7982a50010267197b53f6af212fd6af6
BLAKE2b-256 530daf238a2fadfd9a84288341a01801682841e91c8399403dc12ed91dc89e17

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-win_amd64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-pyemscripten_2026_0_wasm32.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 1dea95ce8c560d44edf339e689b97ad81fb676cb97372bef346fb642203fe59c
MD5 32cd2b5c15e9cf74cb9c0bb63debb92b
BLAKE2b-256 cc0deb1338e570f9af911106f2bfba471f1c52e0a88e4390d0d42c5adc71cb26

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-pyemscripten_2026_0_wasm32.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e8e069caa8710533bf28893f3a8e34d572a688a9ae5e59ecb686df8d25c8dbc0
MD5 6033c50f82180d76561c2a5b9ed3f111
BLAKE2b-256 5f406768de80ec028f52825e017d0732b4f9a7af939b8381577cbade6d3af336

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-musllinux_1_2_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f2765d25f0c07d7abf2a260eafae46d0656eb16663566095e6e37412f8b5ce88
MD5 c1a961873e982564c04954c5e98be6ae
BLAKE2b-256 81895be334929f361a4e98b1d929cc55b1c59241d73c49873afda44eb1a680b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-musllinux_1_2_aarch64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69874b1b13e80ef2cfed476b4faeb3bf3a69670a0b01a165e122746e4d2b95ac
MD5 0f078abf4da1dcbc692fa09bb024c882
BLAKE2b-256 553e280e3d4cb4857be2321a693f5c1dba1d079f29101138bb3ef0bc23195bfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 453d3b0f2b7e1d47285f2dab039ffaacd3812608bccd32d167dc1d5ab0139b62
MD5 c3820dff0a9407e460918cc3ad8c531d
BLAKE2b-256 478a31e39af7ef81459d32a45881e977c3eb15ebe5d14b0b73d25a34cae1a68e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 264ab24453f3e350cd13d08835c26068388b51085721ad85e3e3543db91d86a8
MD5 467ec1ecf98dbe3e0c8aaf6ffc85bb85
BLAKE2b-256 076dbf5491fb039c533bc1e6cc60a12fd2d476f7ab2eccc48c2d418a87365cf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirascript-0.1.83-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.83-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8c0125fd99e95142811a9998b9439fd5a390b432bee55714f552079755b96a58
MD5 2ebd916ebba20360744b7beb4cbd98bd
BLAKE2b-256 ae8e6dc31c9029d7630a5943087762095c9dd7b911727b6f9adb8cfd092b4a9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.83-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on CloudPSS/MiraScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.89

18 files

0.1.88

18 files

0.1.87

18 files

0.1.86

18 files

0.1.85

18 files

0.1.84

18 files

This release

0.1.83 This release

18 files

0.1.82

18 files

0.1.81

18 files

0.1.80

18 files

0.1.79

18 files

0.1.78

17 files

0.1.76

17 files

0.1.74

17 files

0.1.73

17 files

0.1.70

17 files

0.1.69

17 files

0.1.68

17 files

0.1.67

17 files

0.1.62

17 files

0.1.12

3 files

0.1.11

3 files

0.1.10

3 files

0.1.9

3 files

0.1.5

2 files

0.1.4

2 files

0.1.2

2 files

0.0.10

2 files

0.0.9

2 files

0.0.6

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page