Skip to main content

No project description provided

Project description

MLC-Python

🛠️ MLC is a Python-first toolkit for building ML compilers, runtimes, and compound AI systems. It enables you to define nested data structures (like compiler IRs) as roundtrippable text formats in Python syntax, with structural comparison for unit-testing and zero-copy C++ interop when needed.

🔑 Key features

🐍 mlc.ast: Text formats in Python Syntax

TBD

🏗️ mlc.dataclasses: Cross-Language Dataclasses

TBD

mlc.Func: Zero-Copy Cross-Language Function Calling

TBD

🎯 Structural Testing for Nested Dataclasses

TBD

📥 Installation

📦 Install From PyPI

pip install -U mlc-python

⚙️ Build from Source

python -m venv .venv
source .venv/bin/activate
python -m pip install --verbose --editable ".[dev]"
pre-commit install

🎡 Create MLC-Python Wheels

This project uses cibuildwheel to build cross-platform wheels. See .github/workflows/wheels.ym for more details.

export CIBW_BUILD_VERBOSITY=3
export CIBW_BUILD="cp3*-manylinux_x86_64"
python -m pip install pipx
pipx run cibuildwheel==2.20.0 --output-dir wheelhouse

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mlc_python-0.0.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

mlc_python-0.0.8-cp313-cp313-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

mlc_python-0.0.8-cp313-cp313-macosx_10_13_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

mlc_python-0.0.8-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

mlc_python-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mlc_python-0.0.8-cp312-cp312-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

mlc_python-0.0.8-cp312-cp312-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

mlc_python-0.0.8-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

mlc_python-0.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mlc_python-0.0.8-cp311-cp311-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

mlc_python-0.0.8-cp311-cp311-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mlc_python-0.0.8-cp310-cp310-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

mlc_python-0.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mlc_python-0.0.8-cp310-cp310-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

mlc_python-0.0.8-cp310-cp310-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

mlc_python-0.0.8-cp39-cp39-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

mlc_python-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

mlc_python-0.0.8-cp39-cp39-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

mlc_python-0.0.8-cp39-cp39-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file mlc_python-0.0.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad90693493f8d7c3009d1cf7ab10c32a74a2da208649cfad9c4a533bd0101b0d
MD5 8a21f8a1a0cf71f9750b9181ca298564
BLAKE2b-256 b1ccdc8c216d37926d3ea476c9aa5593425d1c02ba476af47c281751f6d29397

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6856e32d9ad3e8a09a553bfadb7148c6c9485f6c28d2980e64394de3fb69c91a
MD5 5f229b824679650bd79a9be9a0790c9d
BLAKE2b-256 2d28a9dad1776c685cba0cd7b5229a73e8b6f5432497cba43d029906be76ef23

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 38256f79aea5647b4597574c4f9ae07381ff6d990b0b98db95d0b391b42f13c2
MD5 ce15c4bc8ce98891a413fdbeb7e1fb31
BLAKE2b-256 f0ad1ba9fcd61cec504f56b86123b07b7ad34e7b02df655e345d21b8c201e510

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a4a4d2ad23944f1eba50a1d7a4a770759c0d4271c27dae5fc036c878491a484d
MD5 29afb9137fb1b4a19bc54ae7791f31fc
BLAKE2b-256 342398faf6c9dfa4dc1f5d268611efc6e52eaf4b7fb418237db17f0d9e8a2d1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp312-cp312-win_amd64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce05b2f511dcf57be8b51a7b4ac9be826bdf1ca2d7741e27949e5edf1398a52b
MD5 234d735386e96c45e97923fcb08fffba
BLAKE2b-256 3a2759d6be2d56c9d909b757f80fd4cbe4fce2d6f6554795664229827213955b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7d5b7ad9b358e1eab76efd2b384a4fdb0938a405c1922d9f5feae87b79fcde8
MD5 991fd02099dd5d710d296e9e66dbf6dd
BLAKE2b-256 52c35752eb5fa37c098c2222b9dedb755478949ad1f9614cf87d488ddfc6a07e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5dba624b80be121c12d8179044cb16e97cfdee451e4c7b5bfdfb255f7f607b91
MD5 51042199504a59b6e4466ab074d86eca
BLAKE2b-256 873878c30d99c09e2e84311ddc30c6e6a764b61b9dd1fef9c7ce73f1300e5a20

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7752027002b5737c40fd1d4c17a9ca71310a65207ce6551bd9dcbe320845ac41
MD5 56b5c3d712ded9f2d191dfff92bba023
BLAKE2b-256 37e66af9b728a3e047f1a7865f7ef62c4473dea056fdf02802a347238837a7ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp311-cp311-win_amd64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 082fdf72e4ff847b1bd549669c932c3e35e2b4bb5c1af4b5c35ff148dd0f6684
MD5 199372ef8c09702117087f2d2f1408c5
BLAKE2b-256 9c67e8196f2a76545deb366a1aa7d9112846097e5c7f8006b8599112ab8338b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ee106822fea17a42013e43d8f981d6da5dc9f15ba3b8a07df8a06626d77e9f9
MD5 6dab323f2b095205b4ae781802c5b5f2
BLAKE2b-256 1a45ec748415ec30d9620f4b443687dd3ca465cea2f31bea90c486f09bc3d079

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 23d43a067520d229f818fceffa010a79865cff876f4129664b6859d1068f7397
MD5 921e8b5416e178ee2a635b2d4bc6abbe
BLAKE2b-256 e5dddcab3d2bee275f90407cf1d2a3220d8a571d691d566a2a7a6cc0f059b63e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c0243132483a2c047bd4f2d0ea57af7435f3b70dce06b96283d82ede2e3a0f3
MD5 7754cdc83ced50dfac84506a0e2ee5e0
BLAKE2b-256 01125056fe77d6f2662d3e8370406da6338dd8b7fc0cba8072cebd6c0c9ec015

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp310-cp310-win_amd64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51e840f5780382bb75d7bc20c90885306c709736b8a6e200f1bce1aa91f779c9
MD5 d1c21ae37192db557fc6ebce737e9292
BLAKE2b-256 37dfb4962d083746f478ea4500289dde7bbf456ba49c88287d936621997f34e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 546d8f3549106e2986a55bf698c634c578badb9e7e8342ee80bfebd617cd8762
MD5 bb751e5b8975551c88332cf2b8284716
BLAKE2b-256 dad686f5977fce62d2edcfaaac23e1e91c3329dad5004df954f1874c1552d224

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 998cff36cb17ebc2bd8e0b9402f1c6a997704df17df8cc799c00ff0aff3c1a57
MD5 f46447dbdba14230f83f6efaca098fbd
BLAKE2b-256 3fb8710c58f436605b696388c1e47ef78f20ec9bf4783b7120ecc2fef025bfb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f30790719746d5fad4dd2d14ace09ab7fd136e7eef04a4941a9aacb3e19264e5
MD5 1df64f6f213207f6662636de84c2b85e
BLAKE2b-256 ee084d54459c141ddaf31179f01e55d1ad00bfb330bf679725c5bb4fd821271b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp39-cp39-win_amd64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d0455d0d40e1c4f6fad4965f6bcf3c48f61217c92177d2cf94b2755e9072758
MD5 f645a69e543048a7708231a0b93d08ff
BLAKE2b-256 be4183948bb7f7c23163c1bafb19303251e8ed4dcf3cfa0a9763fcc25becdb1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03d2275d5929d268aa22d85b728cb463d08725bf01d5f66fbdfac26be4426f7e
MD5 058411ea116a6d9dcea9d277962199b3
BLAKE2b-256 7755bafefa4e505f38eb22cbe6d61735b1d27a0e20c2f8b001e3a70450b21225

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

File details

Details for the file mlc_python-0.0.8-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mlc_python-0.0.8-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ea73b0532c87d9dcd63293f37368c4c4582812a95189e410cb330a3110fe2384
MD5 e39fcade82a1d7f1981ef55799f5f2ab
BLAKE2b-256 d2e0eae7830688701ba0a2aab10e94f1e3d39db3879c6ff3534370cb1ff5ef11

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlc_python-0.0.8-cp39-cp39-macosx_10_9_x86_64.whl:

Publisher: release.yml on mlc-ai/mlc-python

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page