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.70.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.70-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.70-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.70-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (540.4 kB view details)

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

mirascript-0.1.70-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.70-cp314-cp314t-win_arm64.whl (468.5 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.70-cp314-cp314t-win_amd64.whl (495.5 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.70-cp314-cp314t-macosx_11_0_arm64.whl (457.4 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.70-cp314-cp314t-macosx_10_12_x86_64.whl (474.6 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.70-cp38-abi3-win_arm64.whl (475.4 kB view details)

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.70-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.70-cp38-abi3-musllinux_1_2_aarch64.whl (736.4 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.70-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.70-cp38-abi3-macosx_11_0_arm64.whl (467.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.70-cp38-abi3-macosx_10_12_x86_64.whl (480.9 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.70.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.70.tar.gz
Algorithm Hash digest
SHA256 1041cfb56559dec7e86f043f1db1be85c41ee0506b60d2e99a23c23471d826c4
MD5 b5675b833ff0e7674da575b7493ed0c4
BLAKE2b-256 d8adca8a6aab0772f9444a58ad4507e8aff3fd2c6ad62d22eac75dd00d534ca6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9887c9674293f91df21c5e2ab5b4f20bedfcf5189c4366ca2954037de9670604
MD5 1d6b83ac406979d98ed5104ec01cd17b
BLAKE2b-256 facb1938dbe35b3db59c943c0686ef525b13bdec7c273f463e92dc2be9e2e443

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cd14c3f001505176ca61e5766b07a3d247b9c8c33ef353785352c612943c757e
MD5 2007118608bd603c25425a006cfe6574
BLAKE2b-256 dade2b042915819a50650f2842df675315684c7c12de0e3d978ec6669d1ad61e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0d72ab7c4fc8cedab214d5862f5d794be173dd33bb626cc11b62b3c3b59bf62e
MD5 c858358d4fef5a06d08d5f3cb728bf22
BLAKE2b-256 d77da4d39b45147d68f8588d7dd1ed88aa7d0c4f1fc01900c3dac49fde28123c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c6513cca87e493a28924587402dba42caced20dea07c134438c6dea90288ba4
MD5 b076f361ba8aa91a3a3727456e17c35f
BLAKE2b-256 deeb99d8c02cd0d02492db7ee4254c229d008a1238ec97640e08a40930de8bd3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 8fe7d765f292f8fa572bbd9a4928259da7589067fb6f957b281322987e58854b
MD5 a7fe3c7829dc28942ea9ccc2021b1c91
BLAKE2b-256 7fcbc918ac965adce3c5e4b04278b3cf90d06fa083b0668cb30a03a62f9e58f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 708a1ddedbbafea6b36ef47a74ce13c4f6336c8695182c82e2fb788092534596
MD5 ceee807506077bcfc7c6485c6015ec43
BLAKE2b-256 fe4adeb90af4ca23603a0e8cc4b3499592cd75ef8267ff83d18a953e2ed67632

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63deccdddfe965f0e01304722739d1d8e4f12f981c5d25caddd23178835b8890
MD5 0ba114087dc33d01d9f63aa1ea98988f
BLAKE2b-256 d08f796e7b750cc3ea14acdaef44ebc7ef6b4c40a848ceaeaa3bdc1378dc390f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 23a3936b413fa6694529f66ceea2016e7b1b1d1f96accae93c272bc29447f648
MD5 d6ad81b9a0e24fdb3a4c59816ff6fdf7
BLAKE2b-256 5d9489741182fc00224dbfee20c61c8aef18c35491fc87b70e7ccca020ba6017

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.70-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 475.4 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.70-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 56147eb85d95e247cd498fb053f101feb59c790abced1bc30d97f728a3b8a855
MD5 373447d65709a8e32ea2d48403ebc17e
BLAKE2b-256 79d7577c54587c18816819b2275d02d890eaab3d5e8aa128f5bd204372157f7e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.70-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.70-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ed09b6c75878a99dddbb7af3b34cd6acd52d5c043861f28c14fe1298f31e4b5
MD5 5f38fdf6fd04bf7b5aa3585b632e9e58
BLAKE2b-256 91527d6f80c1bb04246e548e40726d91fd8bd9084f36d49b2ada0ffbfa791efd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e3c1550e09797d2242f45efd5d3ed3b15ae6f6baf2a8df9b5798288d3727ae40
MD5 4843ae3a0eed72fa4de468a66e668990
BLAKE2b-256 2195b875fbd2160cb7fdd326fedd81d31cf364183357c17033bcde2376bfb7a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f8e42bdf2695e98c902f2372b2d955aa19074508c11115d29d14a3bb4d9a5722
MD5 32a44aea6d7ceff2bf6ff47f6af1636f
BLAKE2b-256 1b7807b5c67f5c796dac7ab77825cda44225ae4988638e8a2ebdab1cc54d578f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1f55acd127f6cdef57a6768c64725475d4b3a98d7e9cfa48d52006467aeed936
MD5 68e45128bbca4324069727481a494734
BLAKE2b-256 048d4ad8dcd16bc3b8263049f639ce366d38569dfa41ead5d9c46d4f381d9877

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 896352cf966b20245f4f14cf84cc16008ee9ba1237a15c652084802cf675fa7a
MD5 a3b5a33f44006e5f2dd0013fbc7a9508
BLAKE2b-256 225fba8ad660aeefebda0e79a1a48128756bb5eb99c8cff3c6875f003bd4e8d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66b92d08f2a1fd04b86655026376f5d05971b8ce4aa0cd87456ecb3724250b12
MD5 8c0dad5b6c9d4b2f61eb756b18d3aa1e
BLAKE2b-256 f76c421e29329440692ded787eeb2558d54d92ccf1d997832dcc139459a31874

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.70-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3e08950ad1fb7b1cd01e48e5775519cfef6b1bae89498c47471324eac11ab04d
MD5 3aa712436a6b7138efb1a9f9c328b12f
BLAKE2b-256 4b8acaa5a6a772f38e67f7ac990e923566f19d5385c1155ae80b59a285a872c6

See more details on using hashes here.

Provenance

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

This release

0.1.70 This release

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