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.81.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.81-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.81-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (729.4 kB view details)

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

mirascript-0.1.81-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.81-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.81-cp314-cp314t-win_arm64.whl (476.3 kB view details)

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.81-cp314-cp314t-macosx_10_12_x86_64.whl (532.3 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.81-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.81-cp38-abi3-musllinux_1_2_aarch64.whl (738.6 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.81-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.81-cp38-abi3-macosx_11_0_arm64.whl (525.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.81-cp38-abi3-macosx_10_12_x86_64.whl (538.7 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.81.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.81.tar.gz
Algorithm Hash digest
SHA256 08900930e2a6f1105ddb3be35dc4a5271dc83a9b6206dcc9d64aff0c67f0c964
MD5 fcdb3b0739ece3904d176a788683684c
BLAKE2b-256 d41a37f5ba275261116f359181c7718ca9062e05d00d7a8c881d45cb916ec090

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4a4067afd603a8d2b7ae86ce46507a5f26f158b78c2aa91532f1419e12bf198c
MD5 cd16b72baab25a6e01093a76bc798537
BLAKE2b-256 d979e04d20ae13f26fac3f28d6cfa07e9bb149321901f9a323508d35e4639b94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b3a87d435fe1d4ea4f7b434721ac19faf61a44d66c92fcef6b9cbf3d902f70a3
MD5 98a8bde16ba59ea31979f2ca8716ce73
BLAKE2b-256 70a714a790c9cee5ab1ba4a89b89f75dc1d953fa4db3b9d15bf6ce129188b0e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2581ca6d2ec7e3a2ee1478713747706ad11b1e38c810addbca600543c4ce6f6b
MD5 e11163d60f23776394bce6303aaf1bc0
BLAKE2b-256 baeff9883cbc42d248195dfe0d483019c183d8fb6474fa9a70eab1676d40f077

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a0a40bf16c0e077800a3cfb3549ad58be9b598ac47bbcb25b8d73ca2d0cdd9f8
MD5 a1b09d2381cc7df1b15fbf440479ab49
BLAKE2b-256 e9867b872aa112f48f38283b72c9db766d8b121955de8a59cb07ecab068632fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 91ca230b52f8a360a5a6cf0823f75963dbd5aafa84d627166bd3fcf7a3e077b7
MD5 c243f15a4f0894271b53a5901c0f1f17
BLAKE2b-256 275ab23688f9f2c426255516608e685c05c274b9760d871449ddb214044aaf94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 95d5ebfaf5452f6078abd55b84e5ce6db5f4f0c8e436625e44d2cb9537c39f19
MD5 4d7f3360e9a31b984ecaf4c7cbad7acd
BLAKE2b-256 01cee607bf50408258375d77b1c4368ee39b5fa82658f02616fdcef3ad04de91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 488b0a0e4ebc0a2bd11ed97c473912478dd93487e053bb8dc244e45964472e02
MD5 c022ad5abf54a195814f8bed06c820ba
BLAKE2b-256 80d87d8ee28d19c67d1152a4bdf4c796064269d194824a2c2550087450e358bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 89cf2f132af812b01fe5348f9470ea6ef3485e4c1fa64b9a13450ec305089c48
MD5 1e0064629a6228e4c09c51a810d96caa
BLAKE2b-256 88e6776a0cd624710b38a475cfae0444cbcf4ba43a3be3c7cc99967bf0145b60

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.81-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.81-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 f15fe9bcc90dd8b11f1b4d646aaf58d5d60b6f9f48a3ad51d61306cef807a86c
MD5 26195a43c506f48360251206d3f2d04b
BLAKE2b-256 7ea7a1730cbf3c3168371c3def4fb756953740e695f2aac04aa4e3ebc9ec0b44

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.81-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.81-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 71fdf1a5fb85fde21cb642cbe9eb25e246e7b695da7a9da4a66b56b35999882e
MD5 614ec010bc1002a844f04f3b64f7ac08
BLAKE2b-256 5c94790b6bb867960a7255a6c833514c6bab80252e649f60d5ac426ce008dc60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 38c0055cc59be7f0cdbd0f9cd70787655163d0cd4f6ecaa290113597ea839efb
MD5 7f0ef8c0617cef6d989da8805ac372f6
BLAKE2b-256 a045e12d32d55777ee6d58eec631e3d4c8b655c206b980aa7ac95bd3d11d2f58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9caf3ac76d51e93d3397dee0fe9b1a568b9615239f1ce6c9ee10deaa985cfc28
MD5 39179457c0830ecf2c193cdefc24b59f
BLAKE2b-256 939fdb85e09c4e5840b5b63c9d904d18ddd59eaf6b8c9f4099150c043a06ded6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e84bf3e016e47301cbd89196c916ccf0396a0a65a1a72afa992a9893caf6f2c7
MD5 3dcfe5411c9161bdc3111dd9ce8303f4
BLAKE2b-256 44e337235453b0c4ba54ea370cc21dcae900ed908384468e25c93243c3e8bb54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d571bfd4579e31667b6c081f87928eebbf8c7364d6ba7e3fbea82f6e14088e39
MD5 bb72837d6b310e957dd8bbd08ae97442
BLAKE2b-256 8251fe44612782a84d2d2c3c449c525f1e59b077811649c391750f325b086902

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f1baade73b298028cd486fdc16e2d9e5f9394b4873494e84cd4d4d3135d48350
MD5 fee36113b7781b7d3151413302295164
BLAKE2b-256 184811929faa9f2ec7671faa215496b0c1034818caa3753d1643570152ceb530

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9514509433aea7a44d6d9582bb95a7c5427bf09a8d3b6aa6099ba00d355ae2eb
MD5 6bed83a475f2313b5919086391f606f9
BLAKE2b-256 cbedc902ee595c61e804c0651274fee778fb0a9079250342515509909ff59f1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.81-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 662f1a1fff724e243a471f4195a40bcb7085b3bc0925153147513ef32426cc97
MD5 2dc3af63bee51e66786662aeab442f54
BLAKE2b-256 6be07e376aef65167752ae851c4c9dcfa248ef58018ea1599c16f025137d6adc

See more details on using hashes here.

Provenance

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

0.1.83

18 files

0.1.82

18 files

This release

0.1.81 This release

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