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.89.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.89-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (769.5 kB view details)

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

mirascript-0.1.89-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (729.9 kB view details)

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

mirascript-0.1.89-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.89-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (557.2 kB view details)

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

mirascript-0.1.89-cp314-cp314t-win_arm64.whl (475.2 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.89-cp314-cp314t-win_amd64.whl (503.2 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.89-cp314-cp314t-macosx_11_0_arm64.whl (514.1 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.89-cp314-cp314t-macosx_10_12_x86_64.whl (532.8 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.89-cp38-abi3-win_arm64.whl (483.3 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.89-cp38-abi3-win_amd64.whl (511.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.89-cp38-abi3-pyemscripten_2026_0_wasm32.whl (257.2 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.89-cp38-abi3-musllinux_1_2_x86_64.whl (776.4 kB view details)

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

mirascript-0.1.89-cp38-abi3-musllinux_1_2_aarch64.whl (739.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.89-cp38-abi3-manylinux_2_28_aarch64.whl (550.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.89-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (564.0 kB view details)

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

mirascript-0.1.89-cp38-abi3-macosx_11_0_arm64.whl (524.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.89-cp38-abi3-macosx_10_12_x86_64.whl (539.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.89.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.89.tar.gz
Algorithm Hash digest
SHA256 e7ea6fb5213911925d0d91ed0613a81239a4df7b6ce2741e96212d5bd8e5567a
MD5 0faf225865435541dd3c1428340e6b5c
BLAKE2b-256 4a62f7273502c7d66ea83a50fdca056f04dd130fbcb52abe91cd636df9426389

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a25b863941f4d6121a084e4f31040d7b22ef2f521744dbf95b8013cb8bf1d2af
MD5 c61eff96533ce532b9638acad8b09f9d
BLAKE2b-256 0872fb92966de7d26ab3a43691c9e52c113ddc18f2bf0b8348597b43fd38ae5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6445ae8e94bf13f2982b51d30a0b200709222cc901f77f7dfe00663f430282c0
MD5 d37f59e7704bae0e52b48f092f3ec47b
BLAKE2b-256 8d0aa0aa228faa408816e48ec07c446919e88cc25086402d2eeb6003946c01c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db809884d1eecbfa82c3f1a5da329815308ddc504197a054cdc5ecabb93da3e3
MD5 78fe6999ce75e4a0bf5bc79a4dabba7d
BLAKE2b-256 aab6341077f005250bc6135d6e0e0234cacaa6774b003871da99dab15e3e8093

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7f20d4f4e11b1a12356c91eff1a2bafc7dbc4c527fdb29ecbd8074f30da8031
MD5 748e4d0f4cb8e1812d6f10e23a33fdf6
BLAKE2b-256 15ac3459da831096544809895b14fc7cf51377434898d2a9390871a565584b5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 3c034af2b60068564adef6b8c4a3b39a56e2e2c77a2fe61919cd66bc798792f8
MD5 ec6479615c287451ae16e21a84a976ea
BLAKE2b-256 6044af87f12cc6cbed10cd9370c829b10d933c3f3c46555fd6fb421c32266bd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 ce95d696a5c53ced48b62ea406b77d9d896c78a22137e2ba95dda28c0b9d36b1
MD5 af075ad2e5df16beddf68703ad238872
BLAKE2b-256 52aa20a28d7692ee24b73bbe2a3b79e128705f70aa97eda4cad26e785585031e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbb1b831c26335b1d6f483283d365c7bc00f461a6b81a83933d1cba22f737560
MD5 2a56c17f3ec8dbcb71f24fe9ed89b14e
BLAKE2b-256 28232a1c0c214414f1b1b586338749c52e5d078785cc83223144e1895a3567c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 332f3c176ea1cb733ddbefb9a003c76eb1fd5b395e5b0a5c6f415c67ad4a8499
MD5 f8652913a9ecad46440f8b1c73074a87
BLAKE2b-256 2fd8c5a77824844658587efd72084d9b16805427a555b96f3f81f2a90c6a4b1f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.89-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 483.3 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.89-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 377d9f1c6ec77ac30b53c1df2ed228de3ab9bb821b8c6f419f4dbd2c23ebf2fd
MD5 cd401d5fcc6e4e9e87bcfcfe3b04b474
BLAKE2b-256 52359617b2885670d6f5991e56d6d4cd13f5e288bbcecdfc005d97522b7e8b83

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.89-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.5 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.89-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 183d85354644326dea7c3a68679df6725a0684f0c394c8d9eae3385087cc6a77
MD5 872214d9e3a1c648d63c19eaaeb3c54a
BLAKE2b-256 a85a5271c72b1603c66d26793f3c9d37af61fce4c047096816f476176f8b87a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 85c7e650ad5cbf28091c6c593c06df8020e118f676666325f5c150648a8e87bc
MD5 866f023746b1a6d9cfda23c9dab2c9cb
BLAKE2b-256 50dc9da9793d78f66d0a72c7b48a6aa4ccfa30326b2548b762d7b5659f885315

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f7ea703798216221ddf25ab99af588910a305186a8b39f29a0401bab96eb80db
MD5 ab45a42766b30b83c4ffc76e8cd236ae
BLAKE2b-256 b283556cfec2a292785e91ed7bca62ef6f1858af6eee01f7b38f5db6243dcc92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4d590c29f9199af55318d9acb89ad285aa04aab0b3d39a105e32702cbf02a674
MD5 020b12e4197a629bfeb73d4551a1639b
BLAKE2b-256 a3fae5a1f93d1b6dd71c9f838a5f4685e37f8151743eddb5668f25b7305820a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7ea192c7b83b95435b45af4f95ec0ae14a9578a51c17851646b75b544f04e57d
MD5 95628b8b14ce1a543805c5f84e34d10e
BLAKE2b-256 178b3163a89e48a32abbb7868102473fa58f69f0a51352e2dfe8ec6fd31f05e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3de792a16ca452fddf8c17839c370c2442bd3b71965d5949a3406722ce1611c1
MD5 14263b3912f1ed8471646edccd095797
BLAKE2b-256 2569320b61a2feaf2ec37ee0e1958e7ff518e51d4848ce94c2860e9ff338d7d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 722674d703129bc957e858e2194822df8660889d57c508e13083ef5e1184fc4c
MD5 8ad14e28b85269f9f0fa17f476c95690
BLAKE2b-256 5367fff30e6618182f76b22376749eba024a7b17f07fff2e8e1de0a75c25ea6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.89-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 99232279815c822887bc44ada368a1ffdff05c3578ea0e9062facaee132f527e
MD5 5c4acb8af41c68bf91e7c0d3b1a77e23
BLAKE2b-256 6a32ad16d57eccea4eecd7185597809179312ac25318547ed927db519217b376

See more details on using hashes here.

Provenance

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

This release

0.1.89 This release

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

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