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"
      }
    ]
  }
}

Release files for udi-grammar-py 0.2.9

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.2.9
File Size Uploaded
udi_grammar_py-0.2.9.tar.gz 9.0 kB Details

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / udi_grammar_py-0.2.9.tar.gz

Download URL udi_grammar_py-0.2.9.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37d3efb2d21ea5be1a6b6815bb1b2203cc8ebe47a4ef878b58e3510e3fed35e2
BLAKE2b-256 checksum
How to use checksums
d6572a7fa998bb8c116104dad812ba18cfbb4962742b4e353288be8f717d669c
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 Aug 25, 2026.

Transparency log

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

Download URL udi_grammar_py-0.2.9-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c1bad0899c07b5e973496900eb9683b665e6ea38e7ef54bcd7c6d05090d721e
BLAKE2b-256 checksum
How to use checksums
24fcc31bc01026d0f3eb60993f4b1756b36f068c28dab88c2b80a2e130d42468
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 Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.9 This release

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