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

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.82-cp314-cp314t-macosx_11_0_arm64.whl (515.4 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

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

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.82-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.82-cp38-abi3-macosx_11_0_arm64.whl (525.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.82-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.82.tar.gz.

File metadata

  • Download URL: mirascript-0.1.82.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.82.tar.gz
Algorithm Hash digest
SHA256 f5f60125feaa57bcfe473c4d0a292bdda3d99a5eb21e5aed5e8633ca3c19ef1c
MD5 84428b137965f21cc591b0ea42823833
BLAKE2b-256 fd734a989ff7265a0e9236feeb2abbd8f68d8347441aa1dbe5a97b8b8fa5d8b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ab1ed3d6a234e44ace88987f475bad6a046579e548b883e6e1e4bc09be1d7425
MD5 52db3f81eda9137e0f4ec5eda28c1b33
BLAKE2b-256 ad99b280ec5c34e364d2588dd4833f75ee931f90998a79913ee62e610db58592

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4f01d119f3dcbdede05ca064f5c24e09b9eff26e09201a3ae83d948bba3ccce4
MD5 02a395605a70a31df2adb26882edc2f9
BLAKE2b-256 99e3f6158444e56e27ce10377030183b76b5b2dea8edc779644dd2844f1644ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 035c4a298502b41ea1d9079e37446c32a60a8b5172f3ad21e83fdf5855163d82
MD5 50e2099c31fd379c5cedfcc1f0d29ce6
BLAKE2b-256 18ee900161c58934c91f53612541e633127407618b527e3c244052c798d30fff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0f17c19e56de7d2a0fa5beed037302f51678180e480c40c156d3880ed5bbf9d
MD5 51a82acf1211bbafefd6d30239124f10
BLAKE2b-256 49ac7a18f5be48e80b6ea35fba92678ae4c3f209350dc27116d303693b384c74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 e470f03931b9a8f91a0d9007a432daacff60bb23707565b55b3b3ca92a86c53f
MD5 7afa0926c50eba9d9b14f0285b64531b
BLAKE2b-256 653638125192d143d946e12c130bb125af2719073c023b06bf618972feba0f8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 bab52a76b49c2cfab8732cbd9b6f71b98ba2c32186c46f37930a45337a7651d2
MD5 6ad9ae73b2e75088b0b164f3ca249abe
BLAKE2b-256 fca2931aaa3fb8dd8fe1e75023d79f4065a8bc4828020953421cb46f7f75fb34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 741343e59c76abf255a44b9288b11e6d3d66a9642d2de32392b26c326316369d
MD5 87fb01eedfbdeff439b049c834df3740
BLAKE2b-256 9054ee41fbdc9e35485125308e8d2fef006a5a962abd817f79b0b0b388712909

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e0feca0e0ace111e12d21a7b2a22ae89bf39734926b1fac7066219a35290ed9
MD5 bc123724cf9a36efee1da2a9051ff79e
BLAKE2b-256 d8bb957ce08e4e65c7ca8e0bfce590998aa3fd068972f282b27a1efff7506fdc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.82-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.82-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 0ae9a14bdf6fb1452c71c2d5750350772d6429cc27b0d9e712aa41068feb962c
MD5 2cf9518fcb501221a1e56ad0cf1f7681
BLAKE2b-256 b296d5b5c82a89411f2e355c250b3983c1c93f72f3c26ae7ada0228e9399c875

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.82-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.82-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 08b3b3bef1173e7eb878ea31e46893b39e48bac22ab9c5d3fd8bd1961ebd0ec8
MD5 63303fd79625723bac9183a7b7e78379
BLAKE2b-256 531bd14f307274afac26e3379848f7b56c954adac18b0e78c5f52d125d4b763b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 b0c3c7af8b00f76983a27fc4c0b961cf4db0dceda786cc38123c670893c5c912
MD5 ed49a20af8ef1e410b37026147edeb77
BLAKE2b-256 560b67e1c77751ac7e80a42132f53c0cac4c808b1d81ab7096951f77fc317832

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 da3d82c7eff366994693000df8c975df8ab6abe52b12f035088d8558d6647ef2
MD5 74c7ac877ba8684dc6a10a4c93623dbb
BLAKE2b-256 fff0d9cfd111ffb685867d09c7c5daedb3baac06a6ed809e246f19ff25e98b08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4974921e9975484cd0b60325b09d0d8f42bb159b83c1f539d4e850469e374ce9
MD5 fd101b07c85a64f3dde87bc766f93d9a
BLAKE2b-256 4742bf06374e8c409f5a119015eea9448ff79d000b3a3244571b88febe252396

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14fd21b0590d1fa4c011dde5de1138c0d10ec0730630078977f069ebb7796643
MD5 7123cf2a7394a141e6a06d8829b361bd
BLAKE2b-256 d3c147d19897b1a8392a4716d337e663fa871e088735aa1a4b3c2f573d23482b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b57fd0315d9f12d06c192630080faa425be848aac4057d8332bfb2e6cb3691e7
MD5 57efa07a44130e15d25ecbdf0da0c208
BLAKE2b-256 f00cd30224a29d8c41fda8a37875af4c0e12c723a1a02e3a95fb24b931b202c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3095b6cee6ec60c76e051cd4cabcae0a776075c545e0fe8db9428310e3f1ca2
MD5 2462871839713c98b8b563f9683e27b9
BLAKE2b-256 62cbdc45a537be9260b64c8dd9792b49062540b3eebc981e2411510c76ffae1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.82-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 761e9c8b3d167521988affbe08e68f3fc54281eb0d6f0ea903f3389d03d26027
MD5 770b185ccdb31de230b6968df9bb0200
BLAKE2b-256 01b21ad18ec55b760da0ec5eaea1c0c54e7ad7be50d56068d04d67307c3c8609

See more details on using hashes here.

Provenance

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

This release

0.1.82 This release

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