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

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.84-cp38-abi3-win_amd64.whl (511.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.84-cp38-abi3-pyemscripten_2026_0_wasm32.whl (256.4 kB view details)

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

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

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.84-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.84.tar.gz.

File metadata

  • Download URL: mirascript-0.1.84.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.84.tar.gz
Algorithm Hash digest
SHA256 98555ae3b7e3d73901a231d4c3eddc7b7ecdb011892877812ce0722bba275cdc
MD5 b27199bd07d7b54b9a2b549b4890f904
BLAKE2b-256 cc8f56e7a58b7ca36adc0b60e510c005519ca8ff32b0937d87fc9bbf06ec6d38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 13b6e61fe525079f68f08ad23d4a8f0d47d9f5e66fb351e340a4feab80aadfe5
MD5 825b7cad01b5b64372ddd257c133f293
BLAKE2b-256 821c95191a9709469b0f846150e5aefd6ddad733be3c50e7f74095db2e19ebde

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 798cdbb358643d314f4967dd0e4e93f40a2c9a5f5471c3b8a3c1014bf5f66c7a
MD5 2aba7c399b52b4d9ecd5de6f9026b003
BLAKE2b-256 8ac8334b9c36862fcbbbd8c311bcfef0bfc84ce43289af512bc185ad5738bd22

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4f82fbeeae3a500f5c308d2b5b975c032d1262c989a1c2859080e4f3ab485faa
MD5 d9d11cfe086b30b5148d411a8236625d
BLAKE2b-256 f711a6229c1544318363bbde0ef23fd779c70ea46d28e2f6c787d5e1f9c5cae5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf318338c07b03a6452ff7a8c8809f851afe8dc7428281be3fbb3870e09af597
MD5 9cba503fa7c0f6f381683fb784e3318f
BLAKE2b-256 c6f6dd4a45a5d7b1bfc5a6bca5b9e96955d323b0ee74a0e0300504ed3b2a9b63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 400aedd2ffde1453e41b98c0e7b43cc6fc1b92f9ee44f43aa3bfbc8a6f57f43a
MD5 f992245fca758bfaf29293b71264790a
BLAKE2b-256 a05746e152efadb4ad7f82a8cb6a4c76f25dc208ddf937f0e18e9ced362369b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 1653f994165aae344c8930dc773a60af81de900fd60b58f3ab84dfd155a368e8
MD5 4e682f1266ccb4ad66fdf24ee247e745
BLAKE2b-256 9d5776ade4818a2fe66b9148ff3ff8f8559dbeb6c5dbdbabdafd578c2b6827e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d716e0fe86d8f1a8f48f996a7518fedb66aa192f66f2757edd24198125275e0
MD5 a6598b4eb6f8d0e1ec157a108980d758
BLAKE2b-256 c3da9a369de0f3ac49dcc37a1e595c5aaa4951560c8de7e48c72037b09234780

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5fae9d853c9a6250577ceff91e6515a182f08df77d75bae75c49c7561a5afea2
MD5 3eb5367730e8e7a1897cc85426fa8327
BLAKE2b-256 c85eb11ec7a664c1a13d802e6c5ff24617e201537c47bfc1d51274bd82cfc635

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.84-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.84-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 ebdf52694b03e2e95b92c15e2bbd175e28e3b5fdc96b7001bcd834c20772082c
MD5 dbfcee437d944757e5b5ece8803a71d2
BLAKE2b-256 6e50d7254d3ddc553728cb9888ab2fe0adb99ad70bd7675ac2badb032eacb6f5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.84-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 511.7 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.84-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 db62296fe1fba3ef358d0937f0951da071ff99d4d3346756ffcc22feb463f30f
MD5 16e0eec52aa6bc26773964692ca26f9c
BLAKE2b-256 d0f1e4455fd57acdb42079fcf6ae4e59547de4b0ccaabca2e01ac447ea5127d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 08b0cc9a16c53f0df2693648018c6a8cf51a00b1c35715f5981172a4e53b4178
MD5 4b0dd08fc27ecd8c1b257091a4fe78a9
BLAKE2b-256 617db485e52ba126e30752d2ff306058f473749dd7afe05cb1ea84754dfa28f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0371f299bde703548264cf3e54b2dd7929089af46f71155d14c5f9ef8ed8bf40
MD5 0cc0ed4f8ead2dc9c0f2b8f909e3b084
BLAKE2b-256 4e068d14964aec8d66498e4f5fb71d7e25ff0ed498e329f20dba320b4e595632

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0319feff09f0811dcdb2011741dd4a8ae0e483e2cec35c0ed5f84caa3a7f98ea
MD5 edc316eb0099e400236d803073d64ee9
BLAKE2b-256 1183fac7c59a1dad65aab8dbeafb854523136693e8f8bb50306ba0964c8fac0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e4f7fb92bdf99d1bb330e590fb8ea59aafd7ca45c6659d2b9df19771266b3473
MD5 06e5a27faca411891ae14124330dd15f
BLAKE2b-256 66876c7a5a644262a1e6d484ea0158347a7dd37efb95111241088360baa3d3ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c12d2bba0fdaced6ad0753cd51df50a9d2b6ff1ac6cf4d1e9dbf68386e048fa9
MD5 29237bc86bb464bdb9ca26096d8c0ed5
BLAKE2b-256 12af3671c32f41f2c678a2fb2eab1485b5740fb951d469f3515e4126976cd1a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b005de29717428fb2151c8131b55e723d2c3ff11d44b4f57c932891157f0f939
MD5 57482475427c6cd4746ef7415c929412
BLAKE2b-256 78e548378c453f53baab1097dbb8cf71a230658aef80181c423b14e84e2fe008

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.84-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f943caba1ae5cfe5c712110c6e558520249285998be84b0ebadfbb733bf840f5
MD5 e05f4e46dd66d05940be3710a631cde1
BLAKE2b-256 2cb4b98d8cb92e4637c165263b81abf362d47643182464d636f03c3b58098a18

See more details on using hashes here.

Provenance

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

This release

0.1.84 This release

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