Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mace_python-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for mace_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9bb0fc37d53e6a66ba5f8a02000e935d82a97736b8322cd4a37341ddf621acee
MD5 c998b8ece36b3e28f186aa90b3513318
BLAKE2b-256 c85eb21063e9c7197bad93b92dc32cfc14719654840b9a9c33ab55cf045bcdb7

See more details on using hashes here.

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

Hashes for mace_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60941e82e2959e45c42a061488ce29cf31c28209ba00de51a084aaaa3888a607
MD5 55134b720861d5197a643cf8a732a38c
BLAKE2b-256 9a7403ac444547a746028a204c9e782a94420fa26f43a7de8262b0b1a25647e2

See more details on using hashes here.

Supported by

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