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.86.tar.gz (204.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.86-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.86-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.86-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.86-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.86-cp314-cp314t-win_arm64.whl (476.3 kB view details)

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+PyEmscripten 2026.0 wasm32

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

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.86-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.86-cp38-abi3-macosx_11_0_arm64.whl (525.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.86-cp38-abi3-macosx_10_12_x86_64.whl (538.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.86.tar.gz
  • Upload date:
  • Size: 204.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.86.tar.gz
Algorithm Hash digest
SHA256 c23d4e3f118d05b8b308f20c6ff263bfbb5096c2ee78e6e5493b0d8fb5e9eb9c
MD5 c6960c90ef7cd3229c6b61d8e8a8c9bf
BLAKE2b-256 b136405a9084453bb878d4ee05d19059a3ac9dcec33e72f58aab1a4d6ea0efad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a8e0e1e55e787d3f26c79ec75d3cccdca1e1029e951d1a23dce55f10ca9c851f
MD5 5c1cc52babdde6b4d7038ddcdf058427
BLAKE2b-256 eb8fc8f545115423db1f3851c5fa397842ba9ef5cd64db319f8174e8d18a55a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 bb463fd75d8b86fc9ce46401808460d6e2cdba59174b689d7fc830472de7b2ff
MD5 12329b35010b558ac56e07ab7ccc6596
BLAKE2b-256 e1b19beed8fce4a5181527dd3b91a3a154a60cf6191c368d32391c233755bedd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 56b7dc3ef8e42c6b6cbf0a870d74e31ec1a0000ab427ab1ba39bb3c933ec34de
MD5 d73374636b9ea44f650c54744b75c311
BLAKE2b-256 e84b6025657457abddbe2c703d1c89700799b0913bfb0e1dd6b5753b121f0722

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 299b1f5d48805cb6d515c0375ad52c3355376be07d66cfbd7d2b9267b9083803
MD5 d0f25c575d2ce96607c4c62b9cb6651e
BLAKE2b-256 c77faa3d4a47cffe64e247dfe55f399a29f3c61dff30d87e16d38b370e1ee74c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 80802c6bb27de980320d15ee302eb7aa8b6c8a918483fbfc0eeccdd31aee30a6
MD5 24ce976d44b16a7e16f6abac9352c2e1
BLAKE2b-256 a72d3283a216a2a3fa1d346dc026439f3355a3f42e412f7a25867e7aec350be0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 31c2a614c937567fed8e7cb423c705b67146ae33547164bd2e198e50ca0b7f14
MD5 e6f59f0986b04109f25cbe552b905eda
BLAKE2b-256 bfd006394240dde8f2677adafcc62baff5c6f78be4ff70441501b0093d34d21d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2793859099c5f3efc7dc8da688663916d1b476a1f3ce2fea35b6edeebce9b2ca
MD5 bb1914eee6711eba5936d68eff2ea5b6
BLAKE2b-256 fd4370ef61982ea8afb73c787c8aaa7b8c62aed613cb9e8dec0e3c83755eeb5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5dd1a80d58701428a3e70d9c3dc1a660d42b25a5c17d39312ca99db9ef56ac36
MD5 75732176c6c391f583e91229b881ad38
BLAKE2b-256 e6e31945f4f578d1743267ffa6fa07c9fc7757529b54a9569f7166822a63c3c8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.86-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.86-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 13c4dff46332af01dacf4e5a602d37020afe648b594687c65baa5692ecf1559a
MD5 a95aad18b89babce2eda272a179b481d
BLAKE2b-256 d69812b9fdc8f95670912f748cdd773f6573629ee3046eac4108341af8e56ad7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.86-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.86-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3fce8d407216d8c6bedb5307620450d49d9a43e86cb95f4df6768a7cb0a576b2
MD5 ddae04a98e93ae06b922bd494fd95a92
BLAKE2b-256 3254ec4963a7e738d7f703402df8a84664bbfc5b665c0d4f9c48776a6b4f634b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 8d669bf313cf095065b5992f892a45223c7adfbe4389373518a46720be8edfd1
MD5 5a8d2e85d8b87d6ec95b43a2ae19e828
BLAKE2b-256 99be0dcc89637db4aee1ccb2cdc7d261f558c949960dd6a2e9740f55dce5578b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2c7bd2dad54591b65851a67f14bebe984e25bd00f1e7798374cf91996d591c48
MD5 0895f9ddc9f6c663770248e5cce70c8f
BLAKE2b-256 ccb5174e672b1d9c256acccbc2ae65cb275204073da8cef547a14a21bdb675b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ba130d31016378eaf7d9508bff957031a43dce981125bf4726cef50fd0dca6fb
MD5 b6df09959c8b18438c8f53fb6dcda91e
BLAKE2b-256 2baef9b9d72296e8556a1100510677e8731ffe7be88957c3338fc6880a06050a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d366013ec7e89c3cd6028e9213ca96f79f18d95b371920462198a9122723a55d
MD5 a8c1aaab00605130170c87270825fcf6
BLAKE2b-256 b6d24e3450fde9297a10f688744762548cb44b4eabd78268f275e2af85b761ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1030897dc1d34c340c044937a7ab3a715c98ed5ae265f69aa4aaa38173e2517
MD5 1fa0a4cc2adc28c83705d390f38dc712
BLAKE2b-256 1544f8e08fbc54c9c5a754f289007246359a118905f5120e6997efe1581a6449

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7eff8f4e8c98b1837b22ebb39096a8adaf306bfdb7a331adc33d3c9171f76eee
MD5 e2fdeadbc4898d4d635827ec3c8e2de6
BLAKE2b-256 c62f64eae786653b857565844117b9d6ebab65b143987d8c60d4fe906b156e0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.86-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d5231de386e38393946c8728275419dda39e7af226903f9c981d976ccfb21580
MD5 24acaaa8f3aaf8003eb5745ba7dc5fd3
BLAKE2b-256 b3c2f44a7a73af89bc25eba4ed535ceef57e5a11fccb2f5df2d3309644457ec8

See more details on using hashes here.

Provenance

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

This release

0.1.86 This release

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