Skip to main content

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:

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:

  1. Add the DSL source modules under src/main/haskell/Hydra/Sources/<Lang>/ (Coder.hs, Language.hs, Serde.hs, Syntax.hs at minimum).
  2. Register them in src/main/haskell/Hydra/Sources/Ext/Manifest.hs's mainModules list.
  3. Run heads/haskell/bin/sync-haskell.sh to regenerate the JSON kernel and validate that the new sources type-check against the rest of hydra-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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydra_ext-0.17.5.tar.gz (475.2 kB view details)

Uploaded Source

Built Distribution

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

hydra_ext-0.17.5-py3-none-any.whl (501.9 kB view details)

Uploaded Python 3

File details

Details for the file hydra_ext-0.17.5.tar.gz.

File metadata

  • Download URL: hydra_ext-0.17.5.tar.gz
  • Upload date:
  • Size: 475.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.8

File hashes

Hashes for hydra_ext-0.17.5.tar.gz
Algorithm Hash digest
SHA256 6907e23e664826d4d7bc4d27cc69a126c9af89014f6d1396169cfa562b8901fd
MD5 db982a7cf86c48b7ab7da36a60d2a079
BLAKE2b-256 c7b1bd31f508683d7d910cabdc69ba9726287601f21f6039f53abc3cdbb33e30

See more details on using hashes here.

File details

Details for the file hydra_ext-0.17.5-py3-none-any.whl.

File metadata

  • Download URL: hydra_ext-0.17.5-py3-none-any.whl
  • Upload date:
  • Size: 501.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.8

File hashes

Hashes for hydra_ext-0.17.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4938b0261db9fcab25075e4d19a5d1a00e38c6e2c73e8513baf754e96e6cb122
MD5 a66632a0c9e5958b40d935618a008811
BLAKE2b-256 2054d3104ff747f4e13753fa495f8f73e6d54f2a2b92896e1db50a6e5d6dd0a4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.17.6

2 files

This release

0.17.5 This release

2 files

0.17.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page