hexDAG Plugins
This directory contains plugins that extend hexDAG's functionality.
Available Plugins
| Plugin | Description | Port / Role |
|---|---|---|
mysql_adapter |
Production MySQL adapter with JSON support | database |
langfuse |
Langfuse LLM observability (traces, spans, generations) | observer |
Simple Plugin Workflow
Each plugin is a standalone Python package. Just use standard Python tools:
Install & Test
# Install a plugin
uv pip install -e hexdag_plugins/mysql_adapter/
# Run tests
uv run pytest hexdag_plugins/mysql_adapter/tests/
# Format code (uses settings from plugin's pyproject.toml)
cd hexdag_plugins/mysql_adapter
uv run ruff format .
uv run ruff check --fix .
Pre-commit Integration
Plugin files are automatically handled by the main pre-commit configuration. When you commit:
- Plugin files (
hexdag_plugins/) use plugin-specific hooks with relaxed rules - Main code (
hexdag/) uses strict project hooks
This happens automatically - just commit normally and the right hooks run!
Plugin Structure
hexdag_plugins/
└── my_plugin/
├── pyproject.toml # Plugin configuration & dependencies
├── __init__.py
├── my_plugin.py # Implementation
└── tests/
└── test_my_plugin.py
Creating a New Plugin
- Copy an existing plugin directory as a template
- Update
pyproject.tomlwith your plugin details - Implement the required port interface
- Write tests
The pyproject.toml contains all configuration:
- Dependencies
- Tool settings (ruff, mypy, pytest)
- Plugin metadata for hexDAG
Using Plugins
Plugins are used by referencing their full module path in YAML:
spec:
ports:
database:
adapter: hexdag_plugins.mysql_adapter.MySQLAdapter
Or import directly in Python:
from hexdag_plugins.mysql_adapter import MySQLAdapter
adapter = MySQLAdapter(host="localhost", database="mydb")
That's it! No complex scripts or build tools needed.
Metadata
Release files for hexdag-plugins 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hexdag_plugins-0.2.0.tar.gz | 72.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hexdag_plugins-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 174.9 kB
Release files / hexdag_plugins-0.2.0.tar.gz
| Download URL | hexdag_plugins-0.2.0.tar.gz |
|---|---|
| Size | 72.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64db0c1aacb27ddfd1940b3388610723ddf05bc493d47419a57d5c7eb719ab86
|
|
BLAKE2b-256 checksum How to use checksums |
b2555f40aff9a4f1f833ad14024e5304f969091cbfb68f46bb52f59a46aaddcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logRelease files / hexdag_plugins-0.2.0-py3-none-any.whl
| Download URL | hexdag_plugins-0.2.0-py3-none-any.whl |
|---|---|
| Size | 102.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f01f0cd8d8506b7a0409b2e07f2a4d7fc1f617d52301d3ef8cb91c52e02f18f
|
|
BLAKE2b-256 checksum How to use checksums |
f9a4a6b779a62d9629b6061086aae850cdeecd134dabaab93e32352de27f5aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logSecurity for hexdag-plugins 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hexdag_plugins-0.2.0.tar.gz
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 Jun 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.