Ontology as Files,
Shipped by Your CI.
px pull writes an ontology to plain files: Vadalog, SQL, Python, YAML and Markdown. Keep them in Git, test them on your runner, apply them to any environment with px apply. Nothing you build is locked inside Prometheux.
Out as Files.
Back Through CI.
Pull
px pull lists the ontologies you can see, then writes one to ontologies/<slug>/: concepts, data sources, schema and apps. Add --with-files to download uploaded files too.
Change
Edit in any editor; the files carry JSON Schema references, so YAML autocompletes as you type. Commit, branch and review with the Git flow you already have.
Test
px validate checks the files offline. px test runs the programs and compares the rows with expected CSVs. Both return a non-zero exit code on failure, so CI can block the merge.
Apply
px plan is a dry run. px apply writes the files to the environment your token points at. Run it again and an in-sync ontology reports no changes.
Export, Check,
Import
Three commands cover the move. The pipeline runs the same ones a person runs, with the prompt skipped.
- Export:
px pull <id>writes the ontology.--with-filesincludes uploads, so the folder can be applied somewhere else. - Check before merge:
px validate --strictneeds no platform.px testneeds a running machine and can write JUnit XML. - Import:
px apply -yagainstJARVISPY_URLandPMTX_TOKEN. Point those at dev or production.
px pull # list ontologies px pull 1d22942b9a0 # write ontologies/<slug>/ px pull 1d22942b9a0 --with-files --out /tmp/copy
ontologies/credit-risk/
prometheux.yaml # id used by the next apply
concepts/
customers.vadalog # the rule
customers.meta.yaml # binds, output, fields
revenue.sql
enrich.py
datasources/
snowflake_prod.yaml # password: ${SNOWFLAKE_PASSWORD}
apps/
credit_risk.app.yaml
name: Prometheux
on:
pull_request:
push:
branches: [main]
jobs:
ontology:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install prometheux
- run: px validate --strict
- name: Test
run: px test tests/ --junit-xml reports/px.xml
env:
JARVISPY_URL: ${{ secrets.JARVISPY_URL }}
PMTX_TOKEN: ${{ secrets.PMTX_TOKEN }}
- name: Apply on main
if: github.ref == 'refs/heads/main'
run: px plan && px apply -y
env:
JARVISPY_URL: ${{ secrets.JARVISPY_URL }}
PMTX_TOKEN: ${{ secrets.PMTX_TOKEN }}
# same folder, other environment: change the URL and the token
JARVISPY_URL=$DEV_URL PMTX_TOKEN=$DEV_TOKEN px apply -y
JARVISPY_URL=$PROD_URL PMTX_TOKEN=$PROD_TOKEN px apply -y
tests/
supplier_risk.vadalog
supplier_risk.test.yaml
expected/
supplier_risk.csv
px test tests/ --junit-xml reports/px-test.xml
uv tool install prometheux # or: pipx install prometheux # or: pip install prometheux
Everything Leaves
as Plain Files
What you build in Prometheux is yours to take. The export is readable text in open formats, the tool that writes it is open source, and the same folder applies to a cloud workspace or a host you run yourself.
Open formats
Concepts are .vadalog, .sql and .py files; manifests are YAML; context notes are Markdown. Readable without Prometheux, diffable in any Git host.
The whole ontology
px pull writes concepts, data sources, schema and apps. --with-files adds uploaded data, so the folder alone can recreate the ontology elsewhere.
Open-source tool
px is Apache-2.0 on GitHub. The export format is not a trade secret, and the tool that reads it does not depend on us staying around.
Any destination
px apply targets whatever JARVISPY_URL points at: Prometheux cloud, another workspace, or a Prometheux you run in your own cloud or on-premises.
The dry run is `px plan`. It lists creates, updates and the concepts that will run again before anything changes.
Ready for
Automation
Every command runs without a prompt, exits with a code your runner can gate on, and behaves the same on a laptop, a GitHub runner or a locked-down corporate agent.
No prompts
JARVISPY_URL and PMTX_TOKEN in the job, and -y on apply. Any Git host, any runner that can install a Python package.
A failed check fails the job
validate, test and apply exit non-zero when something is wrong. px test --junit-xml publishes the cases to the CI report.
Safe to run twice
Apply is idempotent. A concept is not deleted because its file disappeared unless you pass --prune. An in-sync folder plans as no changes.
Lineage events for your catalogue
px run emits OpenLineage start, complete and fail events, and can POST them to a collector such as Marquez that you already run.
Corporate runners: px honours HTTPS_PROXY, NO_PROXY and a custom CA bundle, and installs from an internal package mirror.
Jobs Teams
Hand to px
Block a bad change
On every pull request, px validate --strict checks the files and px test compares program output with expected CSVs. The JUnit report is attached to the job.
Promote dev to production
Apply the same folder twice, with the dev token and then the production token. Uploaded files go with --with-files.
Take an ontology out
Someone built it in the browser. px pull writes it as files you can read, archive, review, or apply somewhere else. No export ticket, no proprietary bundle.
Bring existing docs in
A *.context.md manifest points at Markdown you already have. px context apply creates or updates those notes.
Questions,
Answered
If we leave Prometheux, what do we keep?
The files. px pull --with-files writes every concept, data source, schema, app and uploaded file in open text formats. The CLI is Apache-2.0, so the tool that reads them is yours as well.
Can it run on a locked-down runner?
Yes. px honours HTTPS_PROXY, NO_PROXY, PIP_INDEX_URL, REQUESTS_CA_BUNDLE and SSL_CERT_FILE. Install the wheel from an internal package mirror if the runner cannot reach PyPI.
Is it safe to rerun the deploy job?
Yes. Apply compares the files with the live ontology and does nothing when they match. Commit prometheux.yaml so the next run targets the same ontology. Deletions require --prune.
Does the test need a running machine?
px validate is offline. px test runs the programs on the engine, so it needs a token and a machine that is up; start one in the job with px compute start and stop it in a final step.
Where do secrets go?
Data source credentials are written as ${ENV_VAR} and read from the environment at apply time. They are not stored in the files.
Do we have to use GitHub?
No. The ontology is a folder. Any Git host works, and so does a runner that never uses Git, as long as it can install px and run the commands.
More Ways to Build
Pull an Ontology
and Put It in CI
Install px, export an ontology you already have, and read the files.