Registry / ai-ml / diastatic-malt

diastatic-malt

JSON →
library2.15.3pypypi✓ verified 82d ago

Diastatic Malt (pypi-slug: `diastatic-malt`) is a Python library (current version 2.15.3) designed for source-to-source transformations and operator overloading, including the ability to overload built-in Python keywords. It allows for transforming regular Python code into a new form suitable for specific purposes, such as program capture. The library's core functionalities are adapted from TensorFlow's AutoGraph module, aiming to provide similar capabilities without a direct TensorFlow dependency. Releases are infrequent and tied to internal needs, with minor versions released as changes are integrated.

pip install diastatic-malt
INSTALL
IMPORT
SIG · DIASTATIC-MALT
D
diastatic-malt
ai-mlpythonv2.15.3
Install
1.6s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.15.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 1.6s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AutoGraphError
from malt import AutoGraphError
import diastatic_malt
convert
from malt import convert
import diastatic_malt
to_graph
from malt import to_graph
import diastatic_malt

Diastatic Malt's quickstart revolves around its core capability: source-to-source transformations and operator overloading. Due to its nature as a foundational tool (derived from TensorFlow's AutoGraph), a simple, universally applicable 'hello world' style code snippet is not readily available or indicative of its true usage. The typical flow involves importing the library and then applying its transformation mechanisms to user-defined Python code or functions to alter their runtime behavior or enable specific operator overloads. Users are expected to interact with its API to define and apply these transformations.

import diastatic_malt # Diastatic Malt is a tool for source-to-source transformations and operator overloading. # Its primary use case is within contexts requiring Python code transformation, # similar to TensorFlow's AutoGraph. # As such, a direct, simple 'quickstart' involves understanding its application # for modifying Python's AST or operator behavior, rather than a standalone function call. # Actual usage would depend on the specific transformation or overloading task. # For example, to enable specific operator overloading for a function: # def my_function(x, y): # return x + y # transformed_function = diastatic_malt.transform(my_function) # (Note: 'transform' is a hypothetical example as specific API calls are not publicly documented.) print("Diastatic Malt is installed and available for code transformation tasks.")
Debug
Known issues
breakingThe `gast` dependency has been removed and replaced with the standard library `ast` module.
fix
If your project implicitly or explicitly relied on `gast` being a transitive dependency of `diastatic-malt`, you will need to update your imports or direct dependencies to use Python's built-in `ast` module or explicitly include `gast` in your project's dependencies if still required for other reasons. The change aims for better compatibility and reduced dependencies.
affects: >=2.15.3
gotchaDiastatic Malt (the Python library) is frequently confused with 'diastatic malt powder', a culinary ingredient. This can lead to misleading search results or incorrect assumptions about the library's purpose.
fix
Always qualify searches with 'python library' or refer to the PyPI/GitHub project directly to ensure you are consulting information relevant to the software package.
affects: All versions
Upgrade
Version history
2.15.3latest on PyPI · released Mar 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
diastatic-malt — pip install diastatic-malt · libregistry