Skip to main content

MiraScript Python Bindings

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.73.tar.gz (154.9 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.73-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (760.1 kB view details)

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

mirascript-0.1.73-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (720.8 kB view details)

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

mirascript-0.1.73-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (536.2 kB view details)

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

mirascript-0.1.73-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (548.5 kB view details)

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

mirascript-0.1.73-cp314-cp314t-win_arm64.whl (470.2 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.73-cp314-cp314t-win_amd64.whl (496.8 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.73-cp314-cp314t-macosx_11_0_arm64.whl (507.5 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.73-cp314-cp314t-macosx_10_12_x86_64.whl (525.6 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.73-cp38-abi3-win_arm64.whl (476.7 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.73-cp38-abi3-win_amd64.whl (504.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.73-cp38-abi3-musllinux_1_2_x86_64.whl (766.9 kB view details)

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

mirascript-0.1.73-cp38-abi3-musllinux_1_2_aarch64.whl (730.3 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.73-cp38-abi3-manylinux_2_28_aarch64.whl (543.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.73-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (555.3 kB view details)

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

mirascript-0.1.73-cp38-abi3-macosx_11_0_arm64.whl (517.1 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.73-cp38-abi3-macosx_10_12_x86_64.whl (531.8 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.73.tar.gz
  • Upload date:
  • Size: 154.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mirascript-0.1.73.tar.gz
Algorithm Hash digest
SHA256 1df019a893046c7eb789b0ce3de7169350d944c9db9dd785f6aa5daf5a8c10af
MD5 782f172649abcba03f4cd165b0dee83e
BLAKE2b-256 1eac9d6d13ef89ea754204a7d62476695b56826513f3b5cbe96c4ed5bcf20c9b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 af7569b22c35933ffeb9231bc6fcec47fae80df1e765f43962671aa665dbd3ec
MD5 833b939fad81b5c2a6dc216967f779bb
BLAKE2b-256 479e178cea887bd9c1709fb0a69aa5d246e9a2320c35ce79dd7f34cafe3c5f34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1eb14445028ccbb476aaf65efa8c5ca880ead7e6b8598efd8f48b27da447680f
MD5 31f4713c4792688e3aa82bddfa59a869
BLAKE2b-256 ed0d6dd2939ab39d8b49c708b58fa4250b2e8d5ffd614ae950aa4bde77f9ab26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 219ef149af8b07abc5874c6f12eb589129c8995265acd0ceac095dc1d0af491b
MD5 5ee46a5f0ad518b4b0d7297c6343fbef
BLAKE2b-256 6e7bcc537609ef5ff3e3e2a8362d5eef68f0a07df1666e46b671b6280092da89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5540c3b4fc020f557e69a12090ce59a5465d54ade38f14f9e93b84fbc9089f8f
MD5 77059a9c6a5d391b570ba5e20399a7f2
BLAKE2b-256 9679ae9ecf61a41f070fe696bb9adcd98ec46513701a567857fd7b01d64900ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 44f5feeeb51509ff0d3f7381d75ce7f9ac0c683f96ca65879b3fc8f747886e4d
MD5 0ac9841cde1c942cdea8833a198c7833
BLAKE2b-256 8742cb091b26be80d7f844450defbafad9fb4fe3b55bd5d6b740bb6b598ba964

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 142293369a277f27bbf6f1889e3913438fffc75aeee214b511c19277b7e08e42
MD5 b6921abb84e3894ad21c4d907da7bd28
BLAKE2b-256 fe978a685436566d74d2f9896a46339fc01d44e7eb266004d9d8a84f485049c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ffb6533d531cf91c25222eebbeb268bf89e139706fc86c49dc0fe85382aca45
MD5 8aed3b11484a210d76b0c3a3b7dddbc8
BLAKE2b-256 4daf69e495ad43cf37055c31bf9bba929977743cb4b74e3c7c715f3db0c5b0a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7636e40e18f4d2f7e26f0fe0ceeea93c9d3a79c719feb0e16682181606b3d022
MD5 c243b555fd371e1f31f8653ed9720fdc
BLAKE2b-256 d2d28151dcc5b30e4bb9bd72657fdc324359e57c3c6ea4235e3c3de4985501cb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.73-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 476.7 kB
  • Tags: CPython 3.8+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 4c7bb19a90de74379d9a5ddbb5636a59e2a4792ae92bd4d2a5eeccda8d5697ed
MD5 4dc849ef34cb34fbfb13613193a96441
BLAKE2b-256 a0077f18982ab4d47f7123d91ae75c9aa3dc9923c4dfb3cd554cdddf58438af2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.73-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 504.8 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cb3929cacec3d4cfdc5cd47887d2e9831e05c08530464d4d05178fece8caf4d4
MD5 bf093d2fb499e0a9447e4b185adecfdb
BLAKE2b-256 985b42f87016ae1a847e7b2df3a78bd186442c03ed5552cb4fcb6b54fcda0ce9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 da0a5a1d97d740c3b0c32b5b9f20f7bf5c490383580a4a7113e1a21d1669c20b
MD5 aad71db98fa834a88caa02a3356058dd
BLAKE2b-256 72375726629c535ded1255f3e3d5568d0ee92ba33483a328181b18b4abd764f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0cbc66edf12bd058bb694b6ba60ad6d9f34192de6f863884f8af3af94e46ff20
MD5 d17118e31b01c89bea8d11984ccaa2fb
BLAKE2b-256 450eddfd51138b4d28b17da71adb70f4fab574f2d0fff7dcca01bfb4d827da19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5b332eac5ea98db3439029afbb332e21f514d547b5e83bf1d311922a26e9ecb5
MD5 6e6a63872cb09a0f599f20098ce7c81f
BLAKE2b-256 3c8131b5653d158b77a0db90149c672c76411a6d3eff05f1e2600d93a734b190

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13bc526066f4f6fa2384be122e9a987a23b9294baf7e7519d815e78fe41e696f
MD5 21878b242a40c5e85d4d938fbf9cc255
BLAKE2b-256 b7c41ae1b7085b2d6ae347d90896a1e0cb659673f12a2add3b6c4aee62178dcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c949920de3a7ab814b1095c5ad0c72b97edc315c6a4d984d60c898423e9209e8
MD5 d3b2d56f03910b6383cd6debcf5ba310
BLAKE2b-256 ce91b50e6b9a20cbfa3a9f7425b7cd5b3980fcf33bf41980456b9fb5a562d107

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.73-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a4b0a1e69d17415ef45a8390a641b3ff47e42bc4f4fb28f966634106fab080ac
MD5 29c8d2fa8f0c959b252b2f7578f1318b
BLAKE2b-256 6c3f845b5b52edf9e24a1a4649c4a2a8411df378c33851d5ea6e5d8acc96b508

See more details on using hashes here.

Provenance

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

0.1.78

17 files

0.1.76

17 files

0.1.74

17 files

This release

0.1.73 This release

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