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

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

mirascript-0.1.69-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.69-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.69-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.69-cp314-cp314t-win_arm64.whl (468.4 kB view details)

Uploaded CPython 3.14tWindows ARM64

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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.69-cp38-abi3-musllinux_1_2_x86_64.whl (773.5 kB view details)

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

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

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.69-cp38-abi3-manylinux_2_28_aarch64.whl (549.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.69-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.69.tar.gz.

File metadata

  • Download URL: mirascript-0.1.69.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.69.tar.gz
Algorithm Hash digest
SHA256 3ecd179885d406a45ce837baae2a12b220dceb2e5b8bf3f4c73b0d1a3ddab5a5
MD5 1a7b1e333da0c0de7c501398cd4c6fe6
BLAKE2b-256 3a5f80e164ba6e0899641dae412f7c1c37cad69518e397166890f5ab278e2d40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4deaf2dafe27aa1ca88544efef790ba704539dbd57bad563807f4498f6c9245b
MD5 ae29024e8149eb82db8bee77c9271f4c
BLAKE2b-256 64a74371314b97231bdeff9e5a086d4b9e2719fccb5e0f1c26e2148d7e75fb4e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 61161c5298010b968cd32d73b9e7d670776d4c7d85d93b17216e1017c54363c9
MD5 98403218435f24e632d737b299eb383f
BLAKE2b-256 8e4b8110ea65792377869349d545b7de8248d76fb16f426b618aee0f5741987c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9f6f737930fe5071c48b5435340eca7a772951daa2abec65d9ddf6bf9c98a77c
MD5 52dd0377e6674ae2c110dfacf640aced
BLAKE2b-256 e4f39c6b263feae2ef879534655803b20b21fdb9c9cf853281b27ffa1c7f06f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6eda5e0799a0d96b8a5c5a0a5f4a2c8e0cf80fd412ca9f3348963d248d8e48e4
MD5 315b0feb93831238df1f3117aaa4574d
BLAKE2b-256 32eb8e7ab8c13c48626164761c0181a89db8bcb57c65cd186271c7c1859c67dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 3014f2cc4569cf2efc02601b038a9b0720c8e6bcd6b6b1613e5cdff3f4c2a007
MD5 0b5262fe6014337074b19b75ea48fda0
BLAKE2b-256 e80d54fc69188b8fb31d651bb3d0a6cb6a72b32586db883c25caa6fe53508707

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 6413990d84d0c7014005825ff5f0543120d8a6d5e339d047caa53c34b65d2ef4
MD5 cb7815bd24aa70428d27f0feaca57f9c
BLAKE2b-256 82e7c37d92ccf680dcd2c84a4c26204b5b40fb745d62432eb1f54a11e4d97881

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca53cb597aaaa7cede00f7c22a746a74863dbd3fd344c60557191dd06fac2d99
MD5 1c6342b01f36a00462c23631b311dff2
BLAKE2b-256 5af197e68cbbee7998681863c130eb07be2827f1a28eb713db17353001c0ede9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e05ae702ca604ed1c1df483c203f94fc5bd2567a0c0033ca1a99b6a8151b793b
MD5 4cde8053626cfb2b3e6eddfc060e823b
BLAKE2b-256 f326b26283c885dbd74fb5c4a29779d819dff6a568d5f72cbca5d884b36531d9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.69-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.69-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 bebc66bb3a2cd3b4ef58aa547409ef7d0cb216043e4ead9cab484d60fd15d2cc
MD5 677f551432064bdd15b2bd4b8d25f47f
BLAKE2b-256 58a00b2f3ee9cd8bb471054bc635a15ab22a16d452bbfd698600d1c772b34edb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.69-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.69-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a51d33f0e50e91fda2a4ea91b103273209846120adf333fda1161bd11f243774
MD5 57429148eb949fea7b33c19fa2f16864
BLAKE2b-256 af2d07cf38e2356bbb9afa06523c5c5ff69eac0ea29d5c1bfe4090d07e9c065e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f7d7d05743aff203f36f8927d9ccf0cad32ef6aab82107e1222aa82c0561175a
MD5 11ef46b9e5aed577aea560eba3ef8f33
BLAKE2b-256 d7764ce0eac63c348c4648da0efea086a402c59216320387d3e2a49e8b217baa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 eb8b85691342212a637296d4ed3e8d43a466d2074052b997f82e0eb2820b8ee6
MD5 3809ab81657ef4672469c80434ac5481
BLAKE2b-256 fc9fdfb10a3ff1934cc60d14b7ce044a2bde03d5acd7f712dbaa5b6e581da378

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f301f1421d567b3a8ff5176d501e4c44e0822688024d83e8eb8ba3b6d57960b3
MD5 af9e5fcb4e8f4739231c73fa2384724b
BLAKE2b-256 8e2b3f85f98f68c8365872727fdd073cf5a61f31d47a46603ff4baad1590875b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 227754b25344f28ad70867f491f6a8c9374c559ac4439cbb19066218ac95872e
MD5 bf4bc2df81efcea4f874f1e70c83e048
BLAKE2b-256 e8a3ba51b9b9e7c76a295682dc44d0d5b0f2277553d9acc1e2da871a543e916b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16076b69dce9ad21666000532b28cf977a75cec8d8f0af6929e4b17f6ce84244
MD5 0e645387fc544cabeb04467ab4c96aba
BLAKE2b-256 eb0f867eb7894d7e847886c8a1693a6424954609bd8ea8f7afd8372e670c3825

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.69-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4c1d96dab4628558ab757f9304fe3188f6e4298e038f138fc2519f7920ca0f19
MD5 d633bc5414be0272d23d4e054bd25e25
BLAKE2b-256 2439ec35b1be0a38770182e26e44b7ff03836bf0dcd80c53d70edf7ab7e1a0db

See more details on using hashes here.

Provenance

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

This release

0.1.69 This release

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