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.88.tar.gz (206.5 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.88-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (769.1 kB view details)

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

mirascript-0.1.88-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (729.5 kB view details)

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

mirascript-0.1.88-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (544.4 kB view details)

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

mirascript-0.1.88-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (557.1 kB view details)

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

mirascript-0.1.88-cp314-cp314t-win_arm64.whl (475.0 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.88-cp314-cp314t-win_amd64.whl (502.9 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.88-cp314-cp314t-macosx_11_0_arm64.whl (514.0 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.88-cp314-cp314t-macosx_10_12_x86_64.whl (532.7 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.88-cp38-abi3-win_arm64.whl (483.1 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.88-cp38-abi3-win_amd64.whl (511.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.88-cp38-abi3-pyemscripten_2026_0_wasm32.whl (257.3 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.88-cp38-abi3-musllinux_1_2_x86_64.whl (776.3 kB view details)

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

mirascript-0.1.88-cp38-abi3-musllinux_1_2_aarch64.whl (739.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.88-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (563.7 kB view details)

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

mirascript-0.1.88-cp38-abi3-macosx_11_0_arm64.whl (524.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.88-cp38-abi3-macosx_10_12_x86_64.whl (539.2 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.88.tar.gz
  • Upload date:
  • Size: 206.5 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.88.tar.gz
Algorithm Hash digest
SHA256 da22ecc29cacd2636e7b0eef2f4b317efe8595b4c34e96797373948176889ec5
MD5 0de5aeb95aad1514c0c47f95dd1e6c99
BLAKE2b-256 0d1b6f08b27e92e9aeb754dabfd1edb8af3b49d7fe2162831a0ffc4aad0f5ded

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88.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.88-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 14798641f863f2b13debde755c02930566626fc6425a9b6f3015d313ebd51fbb
MD5 0b00bb71f16b4a585e795ffd7327baa4
BLAKE2b-256 b5a09f407907e39e9feaf2439c73b23f521ea67c380d1cc39b269332501836fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 39a2faaa9d4fe056b5cdff7622f87e0109d5c123a4f7349a05f83cec5e3c1488
MD5 0c3580f951e3975dfeb19fe2acea751f
BLAKE2b-256 08d0a72f64a5545969de2be831db039c3ef45c67a247d1229537d4bde2d308fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fbdf26caa789aabdb572afddbee083076f553d9ce56242b42f3de20bec9cd690
MD5 ce37f3ea076e56aa9c303023b000e4ca
BLAKE2b-256 0e7405f43141adb86bcd201b06fa6c356a7f83475be7f19de2ca9d7913ea9b45

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc7b514dd025acf03953896357e4415326b492eea24313758b09f0d826c8337d
MD5 5988c72819b913efa7b9c498b26d4ad5
BLAKE2b-256 f5ca12adf2b52728ba860db3a6c0b799457a7f252f641acec3f9660ce3892b84

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp314-cp314t-win_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 a5539de19f2f5ce9e94f6834ce0e2b5a2714b76c8b81e1dfdcd7962d15e62c45
MD5 8a9830034f67033bc22b62c96ac2aab9
BLAKE2b-256 fac3d96aaea1c68e76eb014917cceabeb9502adccf45469a5b6e336e1a8eee65

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 6b7ace4d60667156e7930ac01bd565feaefb5f101a8ea432f20859e04ba88a99
MD5 5549f103f61c7319305f8e52697ae29a
BLAKE2b-256 0e4af0f74b11f10fa619abbc5da12d494953d7bf6092a25bf8997bbd7194758e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79ad19da0c537c1590df7a53663cd98a451ffa0d0060c9ea187f8b65ec6db487
MD5 9886353bea095616c23e9dc6e5de013e
BLAKE2b-256 9a2411572c55c11b2977b915b307817668072c5870c396e1c71e733520300829

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp314-cp314t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d226fd46a993640fa7224201664de5f5c1ccae4c07454e9b75b99c3b5341521
MD5 202195bdf9f71a479f770e1535962366
BLAKE2b-256 7a142fdf9ec0261612ec98ab5dda95277fd6cf0f80c4d48e10a34565a90280a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-win_arm64.whl.

File metadata

  • Download URL: mirascript-0.1.88-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 483.1 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.88-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3ded5ba8f4b3d1801d7617f924b734bd4c839630a47e599cc024a5d4ab4cf0e9
MD5 2ffc477d29c683896509f74613c94454
BLAKE2b-256 9e98cad1a643f977ad8c53eca684792eb5ea4c5fd410dda229a093dcb4aea636

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: mirascript-0.1.88-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.3 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.88-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 790737f1665413e714c019483dbaf4bd8ab4c6449892149cf565d7b38c0f7067
MD5 fb99a2ad787bcd2e7a8afdcc4d3ad892
BLAKE2b-256 6782d54383ffb80676f7311aff45badd484df0f553c4bec8635b7335629f8609

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-pyemscripten_2026_0_wasm32.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 a92251906dd3407c76195e7086662b5b90201371034c80dcc8e476caf9f86a12
MD5 eb102f92c0bd6c56116ec8a8aac62e67
BLAKE2b-256 5885fd5c4af674aba6afb8a851884762ecae97f5d0657de8b0faad3ec457f221

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0bfa151c7454412182f858a1615266b6c1744eb6aa120e0b247322d986103c45
MD5 fb98d60665f7fd5603fb5551680ebc53
BLAKE2b-256 14c23e34a8488ad556bf8123dc4cf8e09b3829db38029466b80d8490eeeb6661

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 770ba48ff888745314c70d282f491198d6330d0602ca926e3d03988421cad0f3
MD5 5add8d04f93910f44dd2b278936dc833
BLAKE2b-256 b2925b1a930ede2930772b8d80e22d58c098a035e091d86f907151ad150eba8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c29fd8386df521a811707e4aa6be265ccdc4fa082e4d96257e1f2db6e026410a
MD5 6a724610c070f86a9df5cb7b77286f54
BLAKE2b-256 082fef9a6d1841e75bae893b78f53add53121e63de8766d71276bb778d5e179c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 852b21570e918679b02f811d6502fca14483b94a737539579d037a6be7a19c46
MD5 66fc43e91269c952577c110d6a514b90
BLAKE2b-256 c95ee3ba273389c6ab07b401200a6dafe14863fc97fea1ee7e9e06ef0941bcad

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbe57fbcbe525108f22c132935d3f56e00468d5f7cf7d074522a14842e7f3c51
MD5 9c92efbc0974ba1e1cd948331b689eb1
BLAKE2b-256 a328271e1d28fbf13dbd2d97b9e8e15629b7c45e2c25d87327d43e153ae471d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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.88-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mirascript-0.1.88-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae860d84f28e8e505b8953340951b1c4d43c21f6e38fde987fe4d94806f61903
MD5 b4625b45191ec3508786e16f9b2a5144
BLAKE2b-256 5ae4e797007b44bc0dce7ea02f5273e62a093a9c81fbe4a1568266a046df7c62

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirascript-0.1.88-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

This release

0.1.88 This release

18 files

0.1.87

18 files

0.1.86

18 files

0.1.85

18 files

0.1.84

18 files

0.1.83

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