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.80.tar.gz (195.8 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.80-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (767.0 kB view details)

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

mirascript-0.1.80-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (727.7 kB view details)

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

mirascript-0.1.80-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (544.0 kB view details)

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

mirascript-0.1.80-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (555.5 kB view details)

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

mirascript-0.1.80-cp314-cp314t-win_arm64.whl (476.1 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.80-cp314-cp314t-win_amd64.whl (503.1 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.80-cp314-cp314t-macosx_11_0_arm64.whl (515.1 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.80-cp314-cp314t-macosx_10_12_x86_64.whl (532.0 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.80-cp38-abi3-win_arm64.whl (484.0 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.80-cp38-abi3-win_amd64.whl (511.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.80-cp38-abi3-pyemscripten_2026_0_wasm32.whl (256.2 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.80-cp38-abi3-musllinux_1_2_x86_64.whl (774.4 kB view details)

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

mirascript-0.1.80-cp38-abi3-musllinux_1_2_aarch64.whl (737.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.80-cp38-abi3-manylinux_2_28_aarch64.whl (550.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.80-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (562.4 kB view details)

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

mirascript-0.1.80-cp38-abi3-macosx_11_0_arm64.whl (525.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.80-cp38-abi3-macosx_10_12_x86_64.whl (538.4 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.80.tar.gz
  • Upload date:
  • Size: 195.8 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.80.tar.gz
Algorithm Hash digest
SHA256 644d13a6c7948c867126228133ae70ea93eed4f02e6501a86d6c79e04cd21633
MD5 5ad1c32fe8c567828d449529b5d5879d
BLAKE2b-256 389593969d0d0df93cee6b8add80e62c782901e4f18c74ca9dbf35f27de71c18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c6b306164e0be51eb0af09ace53eb123011d141234b5ee4355bcbbdaa5272629
MD5 6db90c7e0864a5463851384dc4ffe87b
BLAKE2b-256 d9ee922c056e4f9e12224cd1bccdbfd2355bbce87fe2412e6dd5063a74e2574d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 32edec6e58b25d57ac21ea592845ec46904e9417537baf533cf0b04f73422a30
MD5 06c4e938461f6439d65ff8af86673653
BLAKE2b-256 15a9c50beceaae7fe69ff69b72b26c57751820430424f84988ceacf511245a5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31c4a47669bdd34c53b69e10ae90c3d1ecb6e1352a5b3ba10de5096564d571bb
MD5 ddb2049f389ac4df2f8b3faedc9b1a0f
BLAKE2b-256 5f1a23751ba0690d56e0bff7d1732414c6ccb920082028606145c47c4f672cea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 828f3d3170fa318018629cb8dc68ba356215a068d0c2e147d0771fa13b970de3
MD5 68427405863a2a6afa5ed07128c69e56
BLAKE2b-256 cb60c4b786bec4af21ba698df43d0f8ef2d7905e2e889213e49c312d8c85892a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 23a250fc6547fab84cb3d5fce590ceb35bbc52bae111cbb3d60d775d3a5da5cc
MD5 6dfa13610ad1e7e44c5c1a7b0dc2dff4
BLAKE2b-256 3b1abc278138833a361d049c367097a8b32392326e82bb460a825e1fa8ecef1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 c851e1b836c0d8a8949db9e5e036ec293a3d171006662ca4f2e39d6273ce4414
MD5 d47fb6d5482942ab68e636c1593cdee8
BLAKE2b-256 0344bdfc9b775b424e55cdbf5d06b6a09f17cd93f30968ff803ebbe280f48a18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65a92658b34fd03119c9cdcbb28bef010d7b5a919db47370f5bbfed31093f557
MD5 20381af520714e55bc8346ac554a320a
BLAKE2b-256 475587fc25c4172fbe771e4142abfa698160dc9adaa35d0745a16603c621384f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e2dc046f919e271b1ea715fff1f6112cfee2ec319e8a15c7e5ce63302bbeb1d6
MD5 f5d2cb0b8553ce5ffdbd2290785a196f
BLAKE2b-256 c814f53e622be1cdab260233cbfa4b6aef746eb9478a500446189e26b4447a3f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.80-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 484.0 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.80-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 89d9aa1a0c9be17b1cb702ff15c87e4a3ea410131afd2a1147460fe3b4ffb3b5
MD5 40d3bf095efcece0c02d4f7cf7e59263
BLAKE2b-256 482ebbd4fd6506fe94d6949abf56c229dc16ed265f03359cf2273588348ac0d4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.80-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.4 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.80-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3bd2300d33c0acc87e2c6cb27454c56cb64997ef667107311dc5639b388244b6
MD5 eef88a3bb5779eb8dd07774b738caa0c
BLAKE2b-256 ae89d75c58170378ecda6060131bf07919f10c79323afe26663201db307d3b62

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 6459ddb20cf4ecb4d5d0dd3f6afce3084e5b6672ab278221c3ca2db3fb6fbd6b
MD5 05037b8d4dc210379274c71025299458
BLAKE2b-256 85f42c5f8877bb82f729f78104482b4fbbe43708634cc5772f32863e64e7490e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0afef8e326b20fde8b56421cb2735850cd44e424df682c2d6bf21bfe77cf5f8c
MD5 123ce4dc5685a92617dc2dd24d3b7303
BLAKE2b-256 b130b7b25a57ecab9fbe05797573fb2e20d89f5bc50ade7d9c1bc8305884721f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ee8eaa32842caa1d4c73b77b977c72c7eba0d2de82d24717cd31a0787dd49167
MD5 ad9e0a2fbac9f1c4e1d30511a4259b00
BLAKE2b-256 200a6b981b2a7faec2cf22d31eb766ec5ca238b9d4674f468935506ea3b02649

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0a871a17abd904fbe9493a05cad1bec77524d5a0aad3e82feb9ca3662ebe5f1f
MD5 757ba1d2200bb07fa8f87fd32ce0f5e0
BLAKE2b-256 b7fdc872c83176435b0fa5161216963c2c186b65ab96c76f0ced9bb6bd5fb061

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b8913a6a4f3c256c11e68979e69946b538f63af9a618eb85d34bdea03344772
MD5 5f00b8f880884dcaf14b61751d88c05e
BLAKE2b-256 6f5b19fe75b2e9edb14d9d157d958d2fb28d90eaeeda287cfcbd6af41658dac6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffebd817f3bdc2da33932bb5c42a258448211e4bbaacaf3f3925b2e0a3668465
MD5 d74fbf5550774d7267e3994547dee8d3
BLAKE2b-256 bc328b46ccf6afa46731ab014649a728bb66ab557ea527757737fcf2a07cf54b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.80-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 368fb22ed114335d5b8352db2e7398d3712dcf5ac3cb4ba49b40bf5bc22d87e6
MD5 1a29343a3aa37e5714dbec8918e6925a
BLAKE2b-256 bd7881225f88500b6305a29bdf3ef1fcdff1c405ec169d44685401341737f9d8

See more details on using hashes here.

Provenance

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

0.1.81

18 files

This release

0.1.80 This release

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