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.79.tar.gz (205.7 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.79-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (766.9 kB view details)

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

mirascript-0.1.79-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.79-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.79-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (555.4 kB view details)

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

mirascript-0.1.79-cp314-cp314t-win_arm64.whl (476.0 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.79-cp314-cp314t-win_amd64.whl (503.0 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.79-cp314-cp314t-macosx_11_0_arm64.whl (515.0 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.79-cp38-abi3-win_arm64.whl (483.9 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.79-cp38-abi3-win_amd64.whl (511.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

mirascript-0.1.79-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.79-cp38-abi3-musllinux_1_2_aarch64.whl (736.9 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.79-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (562.3 kB view details)

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

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.79-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.79.tar.gz.

File metadata

  • Download URL: mirascript-0.1.79.tar.gz
  • Upload date:
  • Size: 205.7 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.79.tar.gz
Algorithm Hash digest
SHA256 d5bb2ced70ec98bfcc651f8332496bc462f40964041a1476278f51807e8e1d40
MD5 003ebc397481d605f6260025fda52a49
BLAKE2b-256 e97e7629f2c896eb4876bf1dc7c7e2eb749a8941a82e7fefe8dcde0d90e1d034

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c9ddf8330ce983d536938749f2c4232b01a3a85992c73aae8743e165cfa10ab
MD5 6a7269493ed220f3652be835ec4d8598
BLAKE2b-256 820ec9731c87e95816f3e353310a53c3310586dca3c1105d4d4fd002c43d06a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 60432370e958f1e860747fea50648141111557ccf78f8ec453d8debedd0cdac5
MD5 9b2fcbbc0ea73371b1d913da30581fb0
BLAKE2b-256 a6a6d3c05aae6e73ce91866af3db3cd6a555cf161d516af331970a36835c03db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c0c015a2f6fdfb242909d6fd1dc9e51ab4049c21450ecfc879448bf2b3e8416c
MD5 77c549a39773a872b3c3c34983f7a62f
BLAKE2b-256 0a5ae9dcb912616dae0540a2b899cc473e92acbc13c2612eedfd8f26bc19193e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e4b152cc4d25d626b2c9ff2cd3ee7589103956e84e710937bc019adabe9d706
MD5 782b76d6040c4e68ba2787d3f32c8c6d
BLAKE2b-256 ff32aba475c19eb0b08a303d782990f43b1c068f06c7e20591d66c4942f49602

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 19f2a335ae2eabad1ae493688f5a3d76f964e2f3178b2d5ed8243b0ce0db9e25
MD5 83d6f728e5fd1715722dfaf4a49a35d6
BLAKE2b-256 75582fc76fb98fd9e78c8422d711f6209145fe3bbe8aacea1660668334d1f93e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 e447434e83b757228159ed94ccd04bbda327f402fed5ab9b698253c075471234
MD5 0a127fd8d743f11bb82b014e733fba44
BLAKE2b-256 7cec84549448bc63df41ee12beb084bfc924c157f2509d0d8020f65d18a7dbd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 520c3ea59b0f1a9ae4aadb3c7cb1e4428f47e62942ab242fade06e582b0082e3
MD5 f8d1c670c36ca290d39b35bc5fe9d285
BLAKE2b-256 ee55d37a208f26a36b4a7a546e0c25151b0525d59e9ada74988f41f7b367a7a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 445301cf50cecd88ccb9234c1126e2ccf2347d0ad3344fd3183d30a5e9fd2a60
MD5 902ec3ccd77533522a959312efa34e20
BLAKE2b-256 792eea488074ad17bc19378f492f1d16b2de5e2ef7424070c92d349d09693d49

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.79-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 483.9 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.79-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 b51e080b4445f7f03d173a7a08995f8696eca2a9831302c45ce81ed0efc98bbe
MD5 1100379d92946df57fb272e9fecef717
BLAKE2b-256 a197937a8a79606fd0de14e733c4cd1090f19088393fac15d997c4c9fc772193

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.79-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.3 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.79-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6e103e9890524bfc0d638a4735829a1f10e24e0dea776f4603cf2d0359bba90b
MD5 8860b29f82d8ef437cd68e38125345e8
BLAKE2b-256 8788dcb88d86f83c3caf50896ff144b34ca31d524cbd62bf51d53fbda5f650d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 45ab8c7374d063e6d482b4b42846d97948ba9933233816e710f540ea2717ca05
MD5 7e1d27338ad9c9877f670df80e9ba5c4
BLAKE2b-256 f43a2a35344e62013a778f1f6a9e83fc288099a5b5f265e53ff68b344a670b30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 554de389d62374249c3c917762eab03f93f5c4bab8df704d8dd54e44eab8f6cf
MD5 61fc42266fd0f056c33d41d18fce9892
BLAKE2b-256 c91463a156768924581ce0e0a63a2bd75e4812c72d4d33f3bf04fc50374736e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ef28ee91e8e211ca879c37f18d834a9a8cc11132620266af215f89461281fd3f
MD5 715437b5961ecedb56a3b280dcff334e
BLAKE2b-256 0054aa3ce84ec2d3e21a4ee246d08f8134c7c75e1105258a4a1f48b72d2341d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cc9082958ad68378ddf9878460023e9f0d289544a71118df99d9ec7e989cdd26
MD5 097303fde6c5ef9023bddb14b463f1e0
BLAKE2b-256 e79846b4a8ec2f3b181ec46556a70f808f7aaaaa62bf72f2a540795dcb7874ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2411f709bc4b971d7797f9834edb4d49a8e11bfd2193dfbb3f100cee379b07fa
MD5 d260da014e3a0876696f4f8bebe984f3
BLAKE2b-256 75add3d9f12e3147725e584b6c2976706d74e2b5354188c5bb9a75e123201928

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc2065574096338adcf6b9b87939dc2b5f4d263ef82739f6fd2d2514e029560d
MD5 6662018b0cc129a51eeb9e8448abc742
BLAKE2b-256 6e426658dc8ccdc7d56057b143d9346c5a996878b838b3dfc27e08f3123d31e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.79-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7e42340c55979816fdc4164f7c3125701a0b94baa66acbf60ba0a8df242da46d
MD5 a3b6385678bfadd0a3dbf6ca5bb14b06
BLAKE2b-256 fb94bda5da9c6bc2f90db7a06e006db810718db5b19329db4cad9b810977b7b9

See more details on using hashes here.

Provenance

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

0.1.80

18 files

This release

0.1.79 This release

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