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.74.tar.gz (155.3 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.74-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl (756.7 kB view details)

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

mirascript-0.1.74-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl (717.2 kB view details)

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

mirascript-0.1.74-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl (533.6 kB view details)

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

mirascript-0.1.74-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (545.1 kB view details)

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

mirascript-0.1.74-cp314-cp314t-win_arm64.whl (466.0 kB view details)

Uploaded CPython 3.14tWindows ARM64

mirascript-0.1.74-cp314-cp314t-win_amd64.whl (492.9 kB view details)

Uploaded CPython 3.14tWindows x86-64

mirascript-0.1.74-cp314-cp314t-macosx_11_0_arm64.whl (504.0 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

mirascript-0.1.74-cp314-cp314t-macosx_10_12_x86_64.whl (522.2 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

mirascript-0.1.74-cp38-abi3-win_arm64.whl (473.7 kB view details)

Uploaded CPython 3.8+Windows ARM64

mirascript-0.1.74-cp38-abi3-win_amd64.whl (501.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

mirascript-0.1.74-cp38-abi3-musllinux_1_2_x86_64.whl (764.2 kB view details)

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

mirascript-0.1.74-cp38-abi3-musllinux_1_2_aarch64.whl (726.4 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

mirascript-0.1.74-cp38-abi3-manylinux_2_28_aarch64.whl (539.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

mirascript-0.1.74-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (552.2 kB view details)

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

mirascript-0.1.74-cp38-abi3-macosx_11_0_arm64.whl (514.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

mirascript-0.1.74-cp38-abi3-macosx_10_12_x86_64.whl (528.3 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: mirascript-0.1.74.tar.gz
  • Upload date:
  • Size: 155.3 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.74.tar.gz
Algorithm Hash digest
SHA256 b2729cf247921e62a1bfd24d215cc3d8cf8da492f7fefb709d724e8dd02a0219
MD5 3cc521ca0d57cef5ee8459322fd362ee
BLAKE2b-256 e8fd19ff7c025671eea0f2f240c9c2c2b5a6165d4983d2023e6567d5586e34b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 72d9cf28fd61577df336c83af5fc169f36822a5e837238da31dbfda4bdb58fd0
MD5 14762ffa0de5f08d0b398326f819363d
BLAKE2b-256 50489ce92ed10248e6da5ffdc3fad38072d4f1324462facd2da706f96935d94e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c29b57bf4a1ff4b68b79f7d7bc1d69ed015ecff10b2f8276971deca37eb0a0b6
MD5 ec58478a5e33a6f8f2ce27c6235c94e6
BLAKE2b-256 1b6e39be8b213f29a3a27d40ee6a43e198ec9822303885c8ff9bcac9242d4457

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 42532595dd5ebebe7f5f9325c1fa533a64d06f641d495a0361525b8bb4c1b7ae
MD5 85f64956899421acb32f52f839ce5cda
BLAKE2b-256 52f522143baa41329f59f87ddc4831c04c0a28151d7a4f69f11233021af4916f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64e32e0b782064c083ff9f98b42b503dbc89ca70a687951e760ff138adb4b37b
MD5 a7eff0a770b376beec972c0abbcc5576
BLAKE2b-256 e1194164d48933e5476f57a9b5c836ba93b26f2f2f04e29efd1f597ea24d3326

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 cd0cfd6b2d7eb8d6ad70f45c5d01819b279a3d4bda186b8698622d2de44c5f96
MD5 8c896c616fc008f6b78e578e6d580746
BLAKE2b-256 f2feefcd84e6f650377326c501b0f90d32a87acae2754b8a33b4cbeece2a9b9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 a439d2849a8a6492932f76863163ca017d609d78e42768a7358fa70c29d9fde3
MD5 004e2734604c42469361385cfdbc3d14
BLAKE2b-256 01d20361057caa74d6b96b9ef57574cb987e1e14b4f67044b5d641df6af7953b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1053b28216e124e6c377b6e998bb804bc599721a04f1f894060b45418fbf9b1e
MD5 e25883d4257bf010b12d1ca11b7df924
BLAKE2b-256 129553aac2d9d223d8172a1f004bf482fea962c21ce7baa9ec40eb21507d5031

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b3283d9be2b9051c92a8d875f087d87eb50a62b809feed5079857e2ef727ccb6
MD5 f68c50fdca063131dcd71b2ea7333f15
BLAKE2b-256 e7a29de79f0994b361fcabfca27e1a7e733899796cfab4f681c2ff94b51d1026

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.74-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 473.7 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.74-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 bf16acd9e3f2dc9a824446e1101b613321c0735fb5ea8f19bf4e11f76cb4d97c
MD5 c2bdc4db7204575c7785fd40ad254c2c
BLAKE2b-256 dd254c9c769336f1c7483d542c4f95436720d7a36ab32d5e71fa8a32d855f424

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mirascript-0.1.74-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 501.1 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.74-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d363bd8aae091b042844f77be72b05f68f3b352a13061676af5e9ecaee1f2388
MD5 8e2d9d61199535b2b652f80a68178725
BLAKE2b-256 55c261243b5e5416a04f43e445d51011e01fa43f721a6138dd30ec42e30d30e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 58b84f630f5c6ff188eab197a88cf2189a0d97643363c15fdc1e8d19cf663cfe
MD5 9e3a5f2d715d765659474700e013ac0d
BLAKE2b-256 47481f3525147150478c242bbea197aadbfdb5f8c2d292652872ddc36b3cbccd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d1c06e777e6375a97b8352a588c3097bbba39f34cd82267018d72836462d0251
MD5 59d3fd47f5cf1492fb96859cfa6f58c7
BLAKE2b-256 7ce200dbd6fdcf3e5e74f918619448760ed512e762c2e04aace4058e9021ea8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2dbdbc593d18a17415ff00c74391bf80defe54ab6f8911b09768047a2a4bde41
MD5 d8f44014b4e346f74eddeb553510ea98
BLAKE2b-256 5958d50551c962b9e9c83713de36176208cc51973ee1ed6a32dc4d32b6257433

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89d5beb0b5fdb80f435a54a26731435d71ac33e87c1caac4de2415f989788c85
MD5 61d081072cdb5417aa00aabf7b048548
BLAKE2b-256 dcc2d59da879bea838be31c3f321d2e4b3c82074938c42d84383482c1ca9ff14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19964cd9279da14c2c9be7b107fa9ce8f70868b7b5d80ba07fbec9840b6cb0a3
MD5 ff76d9bd74ef83d778451b2bc101afae
BLAKE2b-256 e5d8cebbd8f80faa75144f779bbf91315ef371c8257d6cce927b4f0030cb0ed1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mirascript-0.1.74-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0373ffd638c2e4005ca9e75348ed7418afcff39ed1b1ef7158b681173f8b79d6
MD5 2ba30f1a9d8ae23dc80e163b2e8e3814
BLAKE2b-256 48a8463caf7316542b1678b65bbaf4e79ea9b546da42951c7e4d54f5dbdb37cc

See more details on using hashes here.

Provenance

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

This release

0.1.74 This release

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