Hydra-Ext
Extension coders for Hydra: schema languages and data formats outside the
core hydra-pg / hydra-rdf set. This package holds DSL sources only — generated
output lands under dist/<lang>/hydra-ext/ for each target language that the
package supports.
Hydra is a functional programming language based on the LambdaGraph data model. See the main Hydra README for project overview and use cases.
What's in this package
Coders, syntax models, and language metadata for:
- Schema languages and IDLs — Avro, Protobuf, GraphQL, Pegasus/PDL, JSON Schema, YAML, SQL (ANSI), Datalog, Kusto KQL.
- Generation targets — C++, C# (Csharp), Rust.
- Domain models — Workflow, Atlas, Azure DTDL, GeoJSON, IANA Relations, OSV (Open Source Vulnerability), STAC Items, Parquet/Delta Parquet.
The full list is maintained in
src/main/haskell/Hydra/Sources/Ext/Manifest.hs.
Not in this package
A few originally-Ext members have moved out into their own packages as they matured into proper coders:
- Go →
packages/hydra-go/(issue #289). - TypeScript →
packages/hydra-typescript/(issue #126).
Sync scope
hydra-ext is not part of the default bin/sync.sh host × target matrix.
Most modules here are experimental schema and syntax models rather than full
cross-language coders. The package's package.json declares:
"targetLanguages": ["python"]
which scopes regeneration to Python-side artifacts under dist/python/hydra-ext/.
To regenerate, run from a worktree root:
bin/sync.sh --hosts haskell --targets python # via the kernel manifest
The Haskell-side DSL sources are processed in Phase 1 of every bin/sync.sh
invocation; the result lands in dist/json/hydra-ext/. Target-language emission
beyond Python is currently opt-in and limited.
Demos using hydra-ext
Several demos exercise extension coders:
- Avro demo — bidirectional Avro schema reading and writing.
- GenPG demo — CSV → property graph (uses Avro for schemas).
- GraphQL JSON demo — GraphQL schema inference and JSON validation.
- SHACL demo — uses several ext models.
Adding a coder
For a new schema language or generation target:
- Add the DSL source modules under
src/main/haskell/Hydra/Sources/<Lang>/(Coder.hs, Language.hs, Serde.hs, Syntax.hs at minimum). - Register them in
src/main/haskell/Hydra/Sources/Ext/Manifest.hs'smainModuleslist. - Run
heads/haskell/bin/sync-haskell.shto regenerate the JSON kernel and validate that the new sources type-check against the rest ofhydra-ext.
For the broader process, see
Creating a new Hydra implementation
(for full host languages) or
Adding new primitives
(for new functions in hydra.lib.*).
See also
- Concepts — the LambdaGraph data model.
hydra-kernelREADME — the core types, terms, and primitives every extension coder builds on.- Implementation overview — the coder framework and how it's organized.
Metadata
Release files for hydra-ext 0.17.7
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 | Actions |
|---|---|---|---|---|
| hydra_ext-0.17.7.tar.gz | 475.5 kB | Without provenance | Details for hydra_ext-0.17.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hydra_ext-0.17.7-py3-none-any.whl | Python 3 | none | any | Details for hydra_ext-0.17.7-py3-none-any.whl |
Total release size: 977.5 kB
Release files / hydra_ext-0.17.7.tar.gz
| Download URL | hydra_ext-0.17.7.tar.gz |
|---|---|
| Size | 475.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d81b28cca3bc4ba723c39f1f2a6c16e114fa3ace4ae704dbb1b35e7b00c567a
|
|
BLAKE2b-256 checksum How to use checksums |
3dac2a6f7ed2dda1e41e14ee30799e63165e211e7d3c0f801cdbccda0b1d0593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Release files / hydra_ext-0.17.7-py3-none-any.whl
| Download URL | hydra_ext-0.17.7-py3-none-any.whl |
|---|---|
| Size | 502.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15e10f15f29ed9fb139acb298b3e3c1c3f2686057f8be8497ed3019f83cf9342
|
|
BLAKE2b-256 checksum How to use checksums |
840769cfa808747e477aded86df3d5457236f174c17603e309a0bdb173d827be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Security for hydra-ext 0.17.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.