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.78.tar.gz (176.0 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.78-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (759.1 kB view details)

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

mirascript-0.1.78-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (719.6 kB view details)

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

mirascript-0.1.78-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (535.9 kB view details)

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

mirascript-0.1.78-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (547.4 kB view details)

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

mirascript-0.1.78-cp314-cp314t-win_arm64.whl (468.3 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.78-cp314-cp314t-win_amd64.whl (495.2 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.78-cp314-cp314t-macosx_11_0_arm64.whl (506.3 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.78-cp314-cp314t-macosx_10_12_x86_64.whl (524.5 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.78-cp38-abi3-win_arm64.whl (476.0 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.78-cp38-abi3-win_amd64.whl (503.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.78-cp38-abi3-musllinux_1_2_x86_64.whl (766.5 kB view details)

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

mirascript-0.1.78-cp38-abi3-musllinux_1_2_aarch64.whl (728.7 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.78-cp38-abi3-manylinux_2_28_aarch64.whl (542.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.78-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (554.4 kB view details)

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

mirascript-0.1.78-cp38-abi3-macosx_11_0_arm64.whl (516.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.78-cp38-abi3-macosx_10_12_x86_64.whl (530.7 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.78.tar.gz
  • Upload date:
  • Size: 176.0 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.78.tar.gz
Algorithm Hash digest
SHA256 0cb86029869808badd9126d31fed0944d8b4afa815c43f481be67bf55d0b337e
MD5 4772f93faba84bb7f79d347329d50498
BLAKE2b-256 461b3a3512e9b6b6f93fb12f011c9f0e58b411632e751fafe007881ce5f010a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 efe9a874308eb0789d107709f4e2868621104cc5a3e800f1c0f388fce01acb65
MD5 37c4369d86785c15a98961523f71ba8d
BLAKE2b-256 4fbb6338b847a9cb4b4cffcde8496bf8314f77ba5031a6e6b3cb42458986f779

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 351bfe8c41bd8f8b24d9239ae59bd108d3a3327d222cda4ec4da06fb30912076
MD5 1e66829683808dc4cf556fae7e052467
BLAKE2b-256 b0eef108d0fd16cc992c8414eec7b40149753ebe768d346573677976c997f698

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0fba258b675919d3aa6b3a5d3455e4325921708ac0718e91f612792b4a894fdc
MD5 09d24062c4d778806df2220115ddcf3c
BLAKE2b-256 66e18b3001848d499a8feb2a670587dd3e9b326c57403f504f4e857019cd5035

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4f592452ccdc198287cbb1713ad7bed2e8df2a3aa5941a48edd66958d29f6a6
MD5 244a353779c27587b9d24f2358ac4cde
BLAKE2b-256 d89d6f3ca6bfa5767ccebece8270b98ac2f17cddba229cddfd9651d4def3ea51

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 b6754094da3a2c08e680214ad2b4489e2f2284a7678c67e082d66795cfbe7ee1
MD5 4e779b2cd3a4133defda3ac57dbc8003
BLAKE2b-256 48188ee35126bc3700b2eef7df7de0e72611d790a3d384d14908c2ddbb1e8bfc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 4d02186c5a9c0153b816348cbb4d59a739fe5e526aa86b19895a662751280ed9
MD5 12dfa0c0a89f7ba80e391a9552d35822
BLAKE2b-256 98647b40eb1553adb9168b172262110a34fa121c2dcdbf9171312408933e4770

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86ad0e2c78a763270e56b016750b71ede0329ca9f9325fe07341ced793f4b4de
MD5 e9e96ca8cac3f494b76675f96f115530
BLAKE2b-256 a8acb147507a014a0f38096cfe78f43c331a0757acbe732d0dcd1692685d7ace

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4424bf6a3c9e4206aef8de7c340222e039c39718ce09a8da88b553923a23b4c
MD5 bb522e4669ab6bbbdce4e751c630da7b
BLAKE2b-256 47da6e2cea97248213d5eeff2476ffec709be962333434fa7cd7cfc7c5558050

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.78-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 476.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.78-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3a4f8a6a4c405166158a68692d3efef156139b021b6605230415509862e3f4be
MD5 6acde7b8b2f8fcf8e5cd7536d3f62dfd
BLAKE2b-256 0562b9559b50a03ea81fa28ff580422d7ec54407f03085d62b6f0ef600a4f503

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.78-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 503.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.78-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 00fc8b85c76716422a84aa90bbee0a1e67c12c6093057134aab8466c46334510
MD5 390239d9520df99cbf052d519a17424f
BLAKE2b-256 5c6f7129e290e9b9c274c5e911a1f8a506c13f5139c8b048e49801997f685f40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a52a31625e0854eb3337110f651c97ce6e97ef6a986758a43d191a81c26c3dc0
MD5 90b2edb1e694121350e32a6795e0b4a6
BLAKE2b-256 003ccc8c2fd132f403dfec1330b54d408c08baacafc050a897cc40a7dcb80e3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 85f85076ec4c6db04d1fb362263398bdd1968242894227cd7ee0a1c3927de318
MD5 385d4029e92e185acc5c83cc7eba42ce
BLAKE2b-256 a1f1ebd7d335b91413d49362546375cae7bab7443186b5e3db28dd5992d0f8e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d092a1b880f28ff3c751c1c534f6503ae87af96b1ce17c103814d361bf2bfa9d
MD5 8a91028b5e26b25fb81ddbbb2a298cd7
BLAKE2b-256 d5dfb68c76b644242285e919ef2cbc606c411e899e589f2b9869dec3d41e37cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d32a53314a9afeae19159d6e8061b67916fe1c89af19fa0fcf6f934b289af6b
MD5 ab4af32cbebfa1a39dc860dd9924694e
BLAKE2b-256 f3d64d9a4fbc01e36adcb17bed61cdc692846befb92a9379fdc2d87fd66f92be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec25ea5859596c0d29a423701e5b264ccdf507eb87a9cece5ae222b13f3f69ad
MD5 da8488bfa5e9bb7d963ba1e950e79789
BLAKE2b-256 e988fba4597c0b627da9e677fcb57b3fbeaeeb8f5abdae471890eb7c231ce0e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.78-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 740eb09d851793ed9bfd8719cc3bd1d257551ac29b360c0341f79961f127bb2c
MD5 1aeb93ff884cfa5a2a795b818432551c
BLAKE2b-256 451780f3d21a3d653d470799b0475a46c4c513cd9a85256af2cf8b0810b8830d

See more details on using hashes here.

Provenance

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

0.1.79

18 files

This release

0.1.78 This release

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