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.76.tar.gz (172.6 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.76-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (757.5 kB view details)

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

mirascript-0.1.76-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (717.9 kB view details)

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

mirascript-0.1.76-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (534.3 kB view details)

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

mirascript-0.1.76-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (545.7 kB view details)

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

mirascript-0.1.76-cp314-cp314t-win_arm64.whl (466.7 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.76-cp314-cp314t-win_amd64.whl (493.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.76-cp314-cp314t-macosx_11_0_arm64.whl (504.7 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.76-cp314-cp314t-macosx_10_12_x86_64.whl (522.8 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.76-cp38-abi3-win_arm64.whl (474.4 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.76-cp38-abi3-win_amd64.whl (501.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.76-cp38-abi3-musllinux_1_2_x86_64.whl (764.9 kB view details)

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

mirascript-0.1.76-cp38-abi3-musllinux_1_2_aarch64.whl (727.1 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.76-cp38-abi3-manylinux_2_28_aarch64.whl (540.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.76-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (552.9 kB view details)

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

mirascript-0.1.76-cp38-abi3-macosx_11_0_arm64.whl (515.1 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.76-cp38-abi3-macosx_10_12_x86_64.whl (529.0 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for mirascript-0.1.76.tar.gz
Algorithm Hash digest
SHA256 47ac9d93422c44b146ea82379d44950f45b7ad06e948942fbd7281a9b621f877
MD5 621c6d2058e6f7ed5e89b3fc5f679478
BLAKE2b-256 1bf35272a4951949aa0b77b9dd4290ac11c1956d38233c4a9e19cd82439d6bae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f7a3a63a1af43bec2cfd1e3ab5e088071a2c96bfd5a0f708513aa033a73e17fa
MD5 952e13471fbc60104adf23a82ac7c82f
BLAKE2b-256 7a0665797ffcecb3e61a7b8eb89efbdfa9dfb832698b7e3aea64cf8edde640ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8b6ede791c1b27bf4e2710a33e24bec9a75d2a5397a8cec0f36217eef9d6461c
MD5 5c39b44c0ef3985a7cfbee127bd7a2be
BLAKE2b-256 bf0873edd63139a1f82212a86e188672afad31fb5e1cca071327eca349483ae6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b15237ff805229a3fe5ef96731272f8bbc1ad597ee778fc98d04a6ec936b5bee
MD5 e308dddc8e46411a1c0bbf1d60f3b4cb
BLAKE2b-256 43fd81445a09c1a871f83f6f5ac535a714662908c3554b63eb330a4a4953c068

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64345f6be803fc8ae515f6dfea5e0bdf71d276bb53ade5af4a5f6226a9494e07
MD5 13b15c78ac6292bf69ac0c6231ea49e3
BLAKE2b-256 be1ad14221575333f40a2b35255d98c08b1092752de56f4f2777673ff2706a07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 6c9fec8a2ef1e764a637dc7d8fb1a7924f40d3e7250e69c59ef06f0b1188b2b3
MD5 730de115554f9793c0f084e0757a2f9a
BLAKE2b-256 a46ff42d4ce464398af746a2e89e186cd2cc4ea966eb6a561865b36a60d8b0d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 1684ed627c9bd599535800150eb9242961f69d35d40a329ee2e5757cce672adf
MD5 cd71ea293c55432c7df967119e2b5106
BLAKE2b-256 e7f27e87bb74e1bcbbf1b167649042cf87c7c376c5f10c3a30923bccc77ba99f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 518a640c95a82040afc0ad93b5c8d2d32d308f7df239e6c5a73f7ba162bd0643
MD5 e595877811d08710c61d9ab87cfdd687
BLAKE2b-256 8f0ad12c57b328484b8286a753059e55fb5afae05b15431f2679c213c6f17638

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 66be611b26b06e5f9b03989c7e3450d569bcbfa572167acb3a06f2bcad2d6428
MD5 93868e3da1ac3467feb62a04517294e9
BLAKE2b-256 9ac08d8780163a660ae09a7d1673237e0956862a9c2b31ca77788e9d7a292aba

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d3d74e52ac552674d95fd0455a1507e2853f663f56f52737f7b658d202a35c47
MD5 4549aeefa4955c85664c2be2c47f5cb7
BLAKE2b-256 4bda43147025c82a233a6d7391f62e1582393ef8d3588d7785176c58e18281fa

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 92fe4b93ca60f51ffa34c8bf994cdfed31941047ae8069bae90eee323a9f3bb1
MD5 7acbed8cfa5eb014a782405377e782fc
BLAKE2b-256 091ca035dcb12beb058f17ef9cc85378b3e4d35bdd1fbf3a09675670431c31a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 763dd1aef2a8468479c755c4528e8501ba030415e2d7637af4b194b92ca3475b
MD5 ae0ba97d860e702bf0163c38dbd24d61
BLAKE2b-256 c71ba6a261df0570f2d900a941424e8d36fa3da2082d87dc1ee4af61615ecc9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 9f94383492e4865eb74d3b7f9c303047ab3b2c4f81a841e362cb54e4b265982b
MD5 19c64d24393465130e654004770958a0
BLAKE2b-256 eee3300e61e3a951d73a8c30f17bfb22dfe9447ef67c42ebb26aa8b99109ea29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 34e14c4fb6619c9a8a0bc3b12c4b8ac1e4c4f65a5bb77c224d4b60a4b6dd17f0
MD5 2cc1218736204bbd51b18db37402dd07
BLAKE2b-256 d83f701245e900c8c07d410781f1b20e1dec606a8867221e960e06c3e2388740

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 006b9349a9c154988f2aa4979ad200da7ea113c69380498bf65d61ddcc4a0c76
MD5 68d63626d4579657f3701f78a20fef93
BLAKE2b-256 82d9b7680f99a4bd8a4d791eb495444d966c241181a80d0b058f4bd28f0fc51f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 442ff2e7759ada1169e6628573add131315e6e05ad522a07e4dce87347689f29
MD5 790c0c81323d8e0ee47323972550afc9
BLAKE2b-256 309789b08560cf6500a6c92ae4cb551ee2b52af5b7cf3745d543cfee3b3ece42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.76-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a70f9fecc8fc472dec3a5e7f2d77306c4eb2aab0a8e902f9d34d3c44345576aa
MD5 da6a436168c06035c91bc402811f1117
BLAKE2b-256 a9975d9154cb4576f2ee8524cf8b971e020395a59095dd1f8308ed18b64f451c

See more details on using hashes here.

Provenance

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

This release

0.1.76 This release

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