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.68.tar.gz (154.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.68-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (765.2 kB view details)

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

mirascript-0.1.68-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.68-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (540.5 kB view details)

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

mirascript-0.1.68-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (554.2 kB view details)

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

mirascript-0.1.68-cp314-cp314t-win_arm64.whl (468.6 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.68-cp314-cp314t-win_amd64.whl (495.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.68-cp314-cp314t-macosx_11_0_arm64.whl (457.6 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.68-cp314-cp314t-macosx_10_12_x86_64.whl (474.8 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.68-cp38-abi3-win_arm64.whl (475.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.68-cp38-abi3-win_amd64.whl (503.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.68-cp38-abi3-musllinux_1_2_x86_64.whl (773.6 kB view details)

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

mirascript-0.1.68-cp38-abi3-musllinux_1_2_aarch64.whl (736.4 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.68-cp38-abi3-manylinux_2_28_aarch64.whl (550.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.68-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (562.1 kB view details)

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

mirascript-0.1.68-cp38-abi3-macosx_11_0_arm64.whl (468.1 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.68-cp38-abi3-macosx_10_12_x86_64.whl (481.1 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.68.tar.gz
  • Upload date:
  • Size: 154.2 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.68.tar.gz
Algorithm Hash digest
SHA256 0e6413b36a6468c398ec897070325fe9bb385f7e217921a8dded1f4cfc4b774f
MD5 d6aca22cdc4b22483430d12e49f61f30
BLAKE2b-256 0c6bfb64617508ea67840c8ca7366dd3dc621ffe60f2333bd6c0cd7817099a5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a4c030a23cc5f2b424c5e121330d6310db96c124c9f368754219dfaf12d12237
MD5 2accbfc091cfc71a5c790965549f0168
BLAKE2b-256 1effe4512c01d13d483a2bebebffc29aa0bc1f663f8566930058742a5f6f6b83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7c147f030135ca035020873225fe1a3a20f0f7986e6e4124608ec12813d7e254
MD5 c625f00eabb61974c8ccbc5914fc524e
BLAKE2b-256 134e481f8448cc44fc22bc1e760345cebdac1c9bf0a740eae4939738b5a17f7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 285e6c126c5cc972cab298b964b6e282459992c928862e1cb5e180b393c51d03
MD5 4b0ab9e7fd168b521581768a1a2b2192
BLAKE2b-256 5bb12586a8dd549a58105501870873a66608e1ca8496509891cf284223d524cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b203448f66ec4453339e53443bf00cc238c704f0f31b56a30f03bdc4959dc78d
MD5 73aeb7ac9c71b51799e9bfbdc26337f9
BLAKE2b-256 1306efff6b87a90f6dfbc472ae1807d256db220496a39cf94430af7bd3707f20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 7f4b7e578f467c138f5f97977c200078ae8621cfdb65e05a2db61fc034fb9b08
MD5 f62bc7883fea77b1fb4d4b942fe654ae
BLAKE2b-256 bd0829632b9636efb9686258f0cc5216a78bca973a61b9247139e2fd3da67af6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 628da56c177596f076e88ae192a48790070f80dd5271b88b2662761bbfda866c
MD5 76159157f29a29ea6cd4e48762925aa1
BLAKE2b-256 59768cb1e21020cd647f36cc82b31d7a0acde3bc984b3258a4f1aa7155a97f11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d907fa7bd1da0fbffdad7c1dfda1aaeabeadce39d9950eb8603eb58336cd5a5
MD5 0a7ecf088a093c5d0105d3a0891475ca
BLAKE2b-256 17c92af81f1a01b6a4ac055637764680fc2377f8d803a78bc229e5bcc94cbdb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 31340078525f67841a006338069ed844ed340d16bc19d3ae5b482baf66232f79
MD5 df335f75e56628074546992b2a73042d
BLAKE2b-256 cd6c00aa25f048046cc2aba43791ec9354d22f94db0e3e9e15ecece5647f4557

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.68-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 475.5 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.68-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 5cc7dc3d2845900a3efed1c0f9ec382eac1afd826ec0b16d975875573abd261e
MD5 3839595d8e93addec1bc6293b5a4df65
BLAKE2b-256 be740c0561a8d2dc22be5a1c972319466d4675daf071893a973e7e87f3c424d3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.68-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 503.5 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.68-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 107a68db51818336378d8159bf2d2d2fa64f3f5506c91f56de5f8ebe4a2dd477
MD5 6a24312c37051a7becaef95ef597d548
BLAKE2b-256 82544a8bb5a02869408e8657cd65611bb866843037156c5065bf4cad71cac7e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3b9528c73de6204585f0212c9e29b45bf0ad9464284b74822d6233db4a0bf638
MD5 4bdff7d01c44d6f2139963f1672d5577
BLAKE2b-256 1914907efb977ae1e5ecb4f5700407b0922c3546e7dba8a4f20b190b0a7c3b84

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 944510c4b2d0052fd5752ff2c1bb2e8bcb8a3a74f9a3e9b7b32a22656606df93
MD5 2800137a6dffbdcae258410e53010f5c
BLAKE2b-256 a04be2be1c23462e153a136df4fd8fc85cbfe4abdaca96986e482ed675fc233b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7a43d60c7dc060f8366469ca3d2536312209d5ddd10fa042c34e10243362da4d
MD5 00b4cd7c8ef3672e1988ff7a3f17ba06
BLAKE2b-256 82279e1e29c73f1c8e911267a2ea2c50bd651c5cd78a8d78c0a6a6f1e10b9700

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 32af18b9f0403af4b9131c0cedffbcd81ea08ded9610d0888548210238423eb4
MD5 f8146ea4af764e92d515492efd0de6bc
BLAKE2b-256 fac539aa83b5146a1c8cf2c593ef1231ada3d053efa50ab3f587890168190fc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b5942514659e6c40d44e419878d62b95e81b24d399c3e45f66bf102550e7eb0
MD5 e3e4985dd90a8b145619349590cb92a1
BLAKE2b-256 78aa6c34d60cca52bcf8198edd281cdca259fea7d7a462d3409aae392d2fe563

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.68-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6bc78ed798822212e06b388a4340f30dba6f6b30c13d026494970c9d22936c02
MD5 af83265ec7775132805a3b6bd4e1b451
BLAKE2b-256 8e63c34f2bc129267eb58561771cc66e93130f2a0b8bf29e008666cb9fecfc84

See more details on using hashes here.

Provenance

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

0.1.73

17 files

0.1.70

17 files

0.1.69

17 files

This release

0.1.68 This release

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