Official Python bindings for Mace
Project description
mace-python
Official Python bindings for Mace.
Status
This package currently wraps the mace CLI from this repository.
It provides a Python-native API while the language implementation remains in Go.
Development
This package is managed with uv.
cd bindings/python
python -m uv sync
python -m uv build
Usage
from mace_python import json, import_json
output = json("./config.mace")
source = import_json('{"name": "Ada"}')
API
json(path, inject=None, mace_path="mace", cwd=None)json_text(path, inject=None, mace_path="mace", cwd=None)source(path, mace_path="mace", cwd=None)nodes(path, mace_path="mace", cwd=None)import_json(input_text, mace_path="mace", cwd=None)import_yaml(input_text, mace_path="mace", cwd=None)import_toml(input_text, mace_path="mace", cwd=None)import_file(path, mace_path="mace", cwd=None)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mace_python-0.1.0.tar.gz
(1.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mace_python-0.1.0.tar.gz.
File metadata
- Download URL: mace_python-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bb0fc37d53e6a66ba5f8a02000e935d82a97736b8322cd4a37341ddf621acee
|
|
| MD5 |
c998b8ece36b3e28f186aa90b3513318
|
|
| BLAKE2b-256 |
c85eb21063e9c7197bad93b92dc32cfc14719654840b9a9c33ab55cf045bcdb7
|
File details
Details for the file mace_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mace_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60941e82e2959e45c42a061488ce29cf31c28209ba00de51a084aaaa3888a607
|
|
| MD5 |
55134b720861d5197a643cf8a732a38c
|
|
| BLAKE2b-256 |
9a7403ac444547a746028a204c9e782a94420fa26f43a7de8262b0b1a25647e2
|