Skip to main content

MiraScript

MiraScript 是 CloudPSS 维护的表达式优先脚本语言项目。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

Metadata

Release files for mirascript 0.1.90

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mirascript 0.1.90
File Size Uploaded
mirascript-0.1.90.tar.gz 207.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mirascript 0.1.90
File
mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ x86-64 Details
mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3, abi3t Linux musl 1.2+ ARM64 Details
mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl CPython 3.15 abi3, abi3t Linux glibc 2.28+ ARM64 Details
mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 abi3, abi3t Linux glibc 2.17+ x86-64 Details
mirascript-0.1.90-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details
mirascript-0.1.90-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
mirascript-0.1.90-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
mirascript-0.1.90-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
mirascript-0.1.90-cp38-abi3-win_arm64.whl CPython 3.8 abi3 Windows ARM64 Details
mirascript-0.1.90-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
mirascript-0.1.90-cp38-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.8 abi3 PyEmscripten 2026.0+ WebAssembly Details
mirascript-0.1.90-cp38-abi3-musllinux_1_2_x86_64.whl CPython 3.8 abi3 Linux musl 1.2+ x86-64 Details
mirascript-0.1.90-cp38-abi3-musllinux_1_2_aarch64.whl CPython 3.8 abi3 Linux musl 1.2+ ARM64 Details
mirascript-0.1.90-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
mirascript-0.1.90-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details
mirascript-0.1.90-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details
mirascript-0.1.90-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details

Total release size: 9.8 MB

Release files / mirascript-0.1.90.tar.gz

Download URL mirascript-0.1.90.tar.gz
Size 207.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6d61a41ffd75448439b1d00077e1a35a9a912ff251e25ccf74cd7e26a8e78cb4
BLAKE2b-256 checksum
How to use checksums
c87bf789cf7bf28e8fcf2876ce5e131e408303131f42ad4f2add41b703b1298c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl

Download URL mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Size 770.4 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
6db2bf505b151d3accd4515790a74b634e67cd8e54169be1ecd7b4630aa27525
BLAKE2b-256 checksum
How to use checksums
9dcf3c748227c8e43032aed5f56497328bbde646731dcb5baa363f029a984ecc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl

Download URL mirascript-0.1.90-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Size 729.3 kB
Tags CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
8a867dfab0a3f6e420dafe2f2b403d9bbdfd9b924db67ffd9d60dce4d5721858
BLAKE2b-256 checksum
How to use checksums
8109e59952369206ceb86039b4d3ae9abd467952b5670a0f5945129e994fa36e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl

Download URL mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Size 542.8 kB
Tags CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
5d985a6493c75c36149a11b9749d1aa888fb3763143161b2b03f2c0a6d28ee7a
BLAKE2b-256 checksum
How to use checksums
04fec996c3ba8736bb9ce88867c8cc119e50cda71aaad5ed4a826771dff37281
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mirascript-0.1.90-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 558.1 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
f9ae51b56be3caa4d4f5150849aa3ba44f0b97762d87d0c495a3c0f5539d4be3
BLAKE2b-256 checksum
How to use checksums
a8f6ff3c4581760a38e9891bdee8dff6d6d8dc7e2fddb962b4b77cf5838c10fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp314-cp314t-win_arm64.whl

Download URL mirascript-0.1.90-cp314-cp314t-win_arm64.whl
Size 474.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
b2feb0ff586ad8a38c860dd43919c5ea1e1d5d94e34a7b806c32cf975d625e60
BLAKE2b-256 checksum
How to use checksums
01ca63730fcb83a302fe8d0cf0c7a397f069c3bc16c88ae23385b5d28b092590
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp314-cp314t-win_amd64.whl

Download URL mirascript-0.1.90-cp314-cp314t-win_amd64.whl
Size 505.6 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
ab49d86556f3907d944d34e0a3c7786fc15d8abe5721f1a4f0cc896fa3cb4cc5
BLAKE2b-256 checksum
How to use checksums
30510950e6d89a4950df488c4e81cb4e6591e6411a7ac26fad456c3efc5ee78d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp314-cp314t-macosx_11_0_arm64.whl

Download URL mirascript-0.1.90-cp314-cp314t-macosx_11_0_arm64.whl
Size 511.6 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9cad77a29b8d83a9451aa026ffa48c46240e45ac351114814c22c575ab83b310
BLAKE2b-256 checksum
How to use checksums
6a129327463a80c073d8e842cce86f24e2aa154545223bc88ec0a3cf3c953389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL mirascript-0.1.90-cp314-cp314t-macosx_10_12_x86_64.whl
Size 534.9 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
bc687f4e77765add3f9e650b1a251fbe97fc4f1cc6407a1a5f9c04c41c912106
BLAKE2b-256 checksum
How to use checksums
11178bafc8a14944feab2eb9f978ff995320e0d614102fbf45712d153957d403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-win_arm64.whl

Download URL mirascript-0.1.90-cp38-abi3-win_arm64.whl
Size 483.2 kB
Tags CPython 3.8 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
3bdfdef9468699b4b192a01a583423733d25e0c4e4bec1eebef098f914ac5480
BLAKE2b-256 checksum
How to use checksums
2f3f1674823733997a21c2d6fd453b30b47195360f927e705277ab2158c6e8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-win_amd64.whl

Download URL mirascript-0.1.90-cp38-abi3-win_amd64.whl
Size 514.2 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5a3cf134eac6ebf178a2fc9d37004bcda92151e714881db2bd9408b55a9dfd7f
BLAKE2b-256 checksum
How to use checksums
a41ed7fd1946916ad9788c5bd166b0fefdef52dcce8d7af76fb5340472bec5ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-pyemscripten_2026_0_wasm32.whl

Download URL mirascript-0.1.90-cp38-abi3-pyemscripten_2026_0_wasm32.whl
Size 256.0 kB
Tags CPython 3.8 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
5056a8533b38eddfc81a71e632e6d59afe8f0d02ee0bc34fee0c0b5653b2fba2
BLAKE2b-256 checksum
How to use checksums
7469179af835362c03961c776b0c0fcebced91ee4436008fc2aabaeb5423bba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-musllinux_1_2_x86_64.whl

Download URL mirascript-0.1.90-cp38-abi3-musllinux_1_2_x86_64.whl
Size 777.2 kB
Tags CPython 3.8 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
cd10bcdb46570fe40792aaf5d87d188303a0057ea5581757300fe18ee8730dc4
BLAKE2b-256 checksum
How to use checksums
9da1ce2c4b5ec21fe6b6e1f197de6ff67277e2d77f09432c0a2d7f65de38a73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-musllinux_1_2_aarch64.whl

Download URL mirascript-0.1.90-cp38-abi3-musllinux_1_2_aarch64.whl
Size 737.1 kB
Tags CPython 3.8 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
44c998eeb5c212c65ebfc7e31dc19dd6f412771c43eaf39897e7fbbf7c37385b
BLAKE2b-256 checksum
How to use checksums
cfd4487c64d54cc3744aa707c7f0ec303418182bb0ed2c37739613ec2d9b101f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL mirascript-0.1.90-cp38-abi3-manylinux_2_28_aarch64.whl
Size 550.0 kB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
01e392ff864cbc458b991f70991c9e2a407a8ac2884d84a84c8abc9ab781fbb0
BLAKE2b-256 checksum
How to use checksums
d498d589dbb8bfeb8a3082ece4d288739cb358380cb36c448a80834ae5ba56b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mirascript-0.1.90-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 564.7 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
409115d3761a00ad5c40d0205c1ca14f0fcd2fcde0de42705c31bdc2f337ca7d
BLAKE2b-256 checksum
How to use checksums
80af149fdbdf7c3621679ab63121ff3309f791254fbea513fbd8305565991407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-macosx_11_0_arm64.whl

Download URL mirascript-0.1.90-cp38-abi3-macosx_11_0_arm64.whl
Size 522.9 kB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
53b45fb7f132cece91b4683a6932f018bacb331a2ac3f8ad66aa9c5d1fdb50ee
BLAKE2b-256 checksum
How to use checksums
fdd30aaf14d94b2cd3a269a545598caab34e06c1616160be70bbd20f728e70e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log

Release files / mirascript-0.1.90-cp38-abi3-macosx_10_12_x86_64.whl

Download URL mirascript-0.1.90-cp38-abi3-macosx_10_12_x86_64.whl
Size 541.3 kB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c4b030e1947501b865b18d3a6ead1309f43cb5496dc5dc6dc235f69963acb23a
BLAKE2b-256 checksum
How to use checksums
73d8843af3bddcd11ff8f776511acef60453d6492afa2865fe8b73719b1fb544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page