Skip to main content

udi-grammar-py

Python code for generating Universal Discovery Interface (UDI) specifications.

Quick Start Guid

pip install udi-grammar-py

from udi_grammar_py import Chart, Op
spec = (Chart()
    .source("samples", "./data/example_samples.csv")
    .groupby(["organ", "organ_condition"])
    .rollup({"count": Op.count()})
    .mark("bar")
    .x(field="count", type="nominal")
    .y(field="ogan", type="quantitative")
    .color(field="organ_condition", type="quantitative")
    .to_json(pretty=True)
)
print(spec)

Result:

{
  "source": {
    "name": "samples",
    "source": "./data/example_samples.csv"
  },
  "transformation": [
    {
      "groupby": [
        "organ",
        "organ_condition"
      ]
    },
    {
      "rollup": {
        "count": {
          "op": "count"
        }
      }
    }
  ],
  "representation": {
    "mark": "bar",
    "mapping": [
      {
        "encoding": "x",
        "field": "count",
        "type": "quantitative"
      },
      {
        "encoding": "y",
        "field": "organ",
        "type": "nominal"
      },
      {
        "encoding": "color",
        "field": "organ_condition",
        "type": "nominal"
      }
    ]
  }
}

Metadata

Release files for udi-grammar-py 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for udi-grammar-py 0.3.1
File Size Uploaded
udi_grammar_py-0.3.1.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for udi-grammar-py 0.3.1
File Interpreter ABI Platform
udi_grammar_py-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / udi_grammar_py-0.3.1.tar.gz

Download URL udi_grammar_py-0.3.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
20886e65bf765ddd24445225d2b74ef70e86d1e42749ab3b251ff7b5e032b055
BLAKE2b-256 checksum
How to use checksums
96a9af735b762d9129d63613e1bb2edfd10838f1ae3c5e89f0f92a92826e2cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release files / udi_grammar_py-0.3.1-py3-none-any.whl

Download URL udi_grammar_py-0.3.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e458d4b30d649fcbacc3b51da861ca9297c1245554266c752a5238bff36a6722
BLAKE2b-256 checksum
How to use checksums
ec5fdbd24e52380d5b6d27502b3934f7aa2ab8697e50ef782d5b47e07f98e7c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release 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