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.67.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.67-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (765.4 kB view details)

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

mirascript-0.1.67-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (727.5 kB view details)

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

mirascript-0.1.67-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (540.1 kB view details)

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

mirascript-0.1.67-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (554.3 kB view details)

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

mirascript-0.1.67-cp314-cp314t-win_arm64.whl (468.5 kB view details)

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.67-cp38-abi3-musllinux_1_2_x86_64.whl (773.7 kB view details)

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

mirascript-0.1.67-cp38-abi3-musllinux_1_2_aarch64.whl (736.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.67-cp38-abi3-manylinux_2_28_aarch64.whl (549.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.67-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (562.3 kB view details)

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

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.67-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.67.tar.gz.

File metadata

  • Download URL: mirascript-0.1.67.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.67.tar.gz
Algorithm Hash digest
SHA256 3914fe001f8c54ebc7b5b012ae443321f779132788f80fa9eecc132a2680d188
MD5 8513847be73f6569ae33f53b422914c7
BLAKE2b-256 c46ced8b30dd4b8d9129cb2698e0a2fd4cd2cb8dd1f4aaad95dc3639adc073d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3801df6490228f0d3d5b6067a169e157dc0702e63c4ceb0d08719e4d1d0206d8
MD5 573c1a21488f6a1b4a75825f7274661f
BLAKE2b-256 463367fca458fe83ec147322c3e2f0a9cd5a7a8d2a779296f2789be2779a513f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ffb470086bf859f80c08e710a065e986bc03532890ae3fbdce5640f28bef35e6
MD5 4ae4136cd6823f3d16e9e725cf29f962
BLAKE2b-256 fdb242877d101a05c60f9fc90d0fc9c26ad2be7ccb5cb3550cb2cf62c7a4847b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 90fea86e529203ab4764b284c28fb7ca4c64b0e0bfa044e37bdbb0017c93ba53
MD5 ef868429a8f8e927285765ebed90947f
BLAKE2b-256 bcea682f669f273d8a38ad86dcf4a8e75d84e8408f4b20d71a550b01778e1ca1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70d76099b0ef2380d9c175949b33f82c796b904e297c22afed0498617d7a4b25
MD5 723b6cbc4e8f481029f4aca1d208498f
BLAKE2b-256 3ac1c11215ec01154de34561ff215a48176e74f00097d69957ac0890ab282618

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 8c3568aa529b883c1505236c28a139fba6856ce6b87bc9027eb253e0ab961ba6
MD5 a2c09d0e4f91177044cd6764dfb6d3c1
BLAKE2b-256 6b7a178ee7841e6ba08c8f8651fa8d5c04a86ee8c19b71d4c022cd9189e9f4c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 04642cd13a6a95a4b4b24f598b53264b9f8babbcad16dc02df3eab23a1054740
MD5 07d10f918a88f9dda62049b9f88938d7
BLAKE2b-256 561f4bd2b49436ecd176d424318acdabed5be3c9a5841412d02c444cdefb623c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1abfc8a2b8a492fe973983714e7e54dd3be13ba3a194063dd40c66e31d0ac33
MD5 4fb1ee07fefec8215b749f69b980647f
BLAKE2b-256 82303c3e6223731e77ecf2d73a147a8cd79e92d0e9da36e591404c07855a66e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2f48f7e736aff08095a69c9d9e05b489777d47f5650592404470b4d8b924ace4
MD5 c60098ccfd3c3532b3ade10632e777fc
BLAKE2b-256 fa9980bcbe7a3be5673c4e972d4485f9f63ca640945f1a5fa02c81a6f740eb3a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.67-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.67-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 fd0d887700e6a8be66086620878f3ee349591381ba259662156fe039a469c571
MD5 fa167b364535ff0dbd05994c14f13291
BLAKE2b-256 0e42439e7a6ed1fa66669e046230e116d037829abe4e9592d209619071432b8e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.67-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.67-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1a7687eef99e09c6ef95fe2b91a7f5c86a695ddb7d893a3cc2c195ebdec61260
MD5 55d3448a12bd6b008b479e23ca8dcd8b
BLAKE2b-256 6ab3355b95763a2da6d29987eebfa61b30f11eccdf3840f01a817960ebd87244

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4a9d8cafbd0d4b78bbb668315542991fb150388b2022c4f41adbf760c24276de
MD5 a630390108f501fa57662ed04b034952
BLAKE2b-256 3fb15b2032dd6ac880c790950e83358804b48774555c804ba345e06297325711

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0d618fb6ee6bd8cdbc0ecc4aae813e727adbc4b6c18c4a552c97f53941f3a077
MD5 9bbd8f5f11c8cbece45780ac95c7605c
BLAKE2b-256 50563799b4c204806aef603b8221a5ce38b274659c547d26cbb84eb6068c77b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8dfb6a4f4d23ad11252b79a3905a28b8bbebeddb54677de47b87724de2735b87
MD5 f8562d22f274beb3d4a200615f198d2d
BLAKE2b-256 be1d454c275b4ddb136ccbf3e8427a4cfa61a728cdd94924d281fcf85cad1037

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9d2b147b35be7928bbca3619221b5d0513761d43b3f5ab02253b99f0950b428
MD5 5d37a1456446da49ca884ea3f2afd058
BLAKE2b-256 bb3bccbec33d22fe6b5cad10f4bb8b8e6245b75c0e81079003818d47a0d8423c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66536f16639adac626df75f83db7db57357af095f9ea164cd025799721ff028c
MD5 bf3b66ac6e8edf38fce64bdf671b2d19
BLAKE2b-256 64648306316f1b94e61d882c83af13e6cf235d2350c39928e7716780de0734ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.67-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 483ae1ddb22c3671c6c59e8576ba6694c711a3b9dbfe6a255e2c702571767789
MD5 937b2af7e130bc1054008aca0c7f7983
BLAKE2b-256 f318394d811192357b30660c6b9307c30ad442009b92b5cacb73e54ec7309991

See more details on using hashes here.

Provenance

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

0.1.68

17 files

This release

0.1.67 This release

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