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.87.tar.gz (204.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.87-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.87-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.87-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.87-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.87-cp314-cp314t-win_arm64.whl (476.3 kB view details)

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.87-cp38-abi3-pyemscripten_2026_0_wasm32.whl (256.5 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

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

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.87-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.87-cp38-abi3-macosx_11_0_arm64.whl (525.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.87-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.87.tar.gz.

File metadata

  • Download URL: mirascript-0.1.87.tar.gz
  • Upload date:
  • Size: 204.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.87.tar.gz
Algorithm Hash digest
SHA256 5f42f0459ebb1032f730a8f570bdba10882e7973c10ae10af7d3b6dfd93ddb15
MD5 f9d1f27abcd97a6a1f0217d62c842fb9
BLAKE2b-256 3f524f6f0006dd2f589ed74595773d6c0035b2af1d6d8bf3e578914a39aa7991

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9f515ffd93b47436bfd5a9f705e2cb4b09653e12f79e5b905d7d914cc5e270d8
MD5 03c18c8f3334add03f93d96171c5d1a7
BLAKE2b-256 b4316f1d226f9f029cf6afb742ba94d4ad9b0e6971f354f8eeca28d6feb2dc8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c0f9a87b52b7e6efc58dd3a50150bb23cfaad25efd6f94a94a26da5d168b0749
MD5 123e79dc3347c370f35d42cd325b07f5
BLAKE2b-256 18d49fa80ba6099b6cfd30b995c7fc5d492d99e263a309e4454cd565df65043a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b2e2029641b8dd5c6cbd9884dcfbb107015f8f2d8855f6dec2faa72909984856
MD5 1b6a60c704fc8d0e13bf9a8435182e05
BLAKE2b-256 e7772dc8a6be2b402174bf3628f151e6d866f698734f34241c5cd49a0ad4ba3e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19ca3ed5f99d09b1b05480bf8d168940b6b7b8e8b049652ed01c4f5830a22a6b
MD5 c06280802d3ea8a6b272d29a243b0a18
BLAKE2b-256 71fd0035a589cbc08e5aa8570942a183911cad104ea454617989e63ebd5fc2a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 c4fc5c97b68ae3250a622259a6b4f579fadd367de38adbf5d78a8c6cb86cac9f
MD5 c134eac2a05a7a79e962e33fa734236a
BLAKE2b-256 58700362f4e3e4bd199fed318613317d2f6b7d50b57f92a7a7589af5d5644668

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 5613256c0c44c782a440ab06336013ec823fb7890f0a2953800493a65dfe8993
MD5 8e453f7a699a817854322cf628f2ece1
BLAKE2b-256 c7b03e118aaac7fcf7bfca77444c01118a61ec72359774eb78e920e9ff799c87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3477960f250d0a6a409a4806d1d9577de7bf8e8423394c340c7563c733ffb091
MD5 f68e1a0436b09eb75c40d887c2239859
BLAKE2b-256 86b06117e4ba7c0cc44554823829b815bd9db78eef81235122a9f117243ddb0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 61c0cd07f47ae56b3734ae3c7360ab6c7e2cd20743a35e09e378c8d22f5613fc
MD5 40962eae025d9f3e11d89b4e1abc02f9
BLAKE2b-256 35d6866227908f734d8eb11d1cbafac538d92def50a6a1ffdfedc691f8ce4997

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.87-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.87-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 467f998c07f37325749ff12b58e6d216c40d727bdaba9d2cee8a8b4cf70487be
MD5 4a7f477788d5ccba112ef4ec8a4ef9b9
BLAKE2b-256 5d757c943e8e3498fff7a0e551d2d97b06adbb92b91f656a9d1829259e6c32c5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.87-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.87-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7fc3a0a51b27599a4a4d6494c6e676ce39e345e66d7fa52884ffbab7e611c48b
MD5 f6262ab446580819285d3bcf9d10993a
BLAKE2b-256 661f9354840b926d2e03d518d889d622623cc0cacbe5b093adc916f65872e97c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 07824d3116ae6b07e441260531d6191576da3511959572ab80a833bac853ef8e
MD5 d7de71015e37e4a836d02f740992edc7
BLAKE2b-256 6030b76586fd0c5eb949ab80560a21892c6810da145d2e581c435b41cb2ea81b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 49b748b28da11904d6363d74f46b2bd2ccfe198519a29a706537f21722e67692
MD5 c09cc9969fa1c51c7775f9e2455688ca
BLAKE2b-256 3994de2de30d27a08edf35ed691d8f5676056664b5267adbd72cf5e84a4d5e10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d7e49e7e1bab547500ffa24685c622291ea10d3c6743ede38aa9e93619ca8f7e
MD5 19b1a570f67234cdf11c1e7589a35c49
BLAKE2b-256 c6028b5bf3ac940ef5b3475695f06db00ecab65788b694fec2704e42479ca9d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e354a0e5dff99bd8dbcbcfcaa1c485804b6951fd5aa4a83824ee52e23602e853
MD5 59e599477cd4020467d27369921f3743
BLAKE2b-256 91ccef5865950322954bf6fd40bc1d7253d6f022250a8a4aaca21fc70a7dac2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38419a2a8d0c95aea2e4ff5c6fd8a4c017d5cba196415ad8aff3f5bc72e080bd
MD5 b8919a9d1bc5eab4ca0602f0757417f7
BLAKE2b-256 9d4e2a41231405bcb76623f0050e5dd9f85eed5e914874749afe4cb061a8bb9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37610e787e85fcbddc1e3e50d3b44397d17e4ae44c3f0cbb939fa5fc3b380281
MD5 e80e1e0850c107fef2b2c01ff28ed913
BLAKE2b-256 aafc5ca2ab7844effe1a4a8be244262c664668266c91ebe699e1651feaf12654

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.87-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bbe71f5dcb06b10f05a52bd8a4525327393ea436eecf4fc003da52461610d2b1
MD5 43a9e765d87992985ba05a614a10b0ff
BLAKE2b-256 ef578f754ce813907e8382840ec472f6e27982166980c4e2f4f1fc7abbe30ed5

See more details on using hashes here.

Provenance

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

This release

0.1.87 This release

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