Skip to main content

Python OpenQuake Gem Taxonomy

python package with GEM Building Taxonomy related class and shell commands.

Python Code

This package provide one class: GemTaxonomy

with public methods:

validate(tax_string): validate a taxonomy string and return it in a couple of useful structures

explain(tax_string, format): explain (or translate) to different formats a taxonomy string

Below a small usage example:

from openquake.gem_taxonomy import GemTaxonomy

gt = GemTaxonomy()


def validate_gem_taxonomy(value):
    try:
        gt.validate(value)
    except ValueError as e:
        print(f"Error: {e}")
        return f'{value}: {e}'


def extract_attributes(value):
        # Function to extract attributes
        attr_dict = gt.split_by_attributes(value, '|', 0, 'others')
        return attr_dict

scripts.py is another good entry-point to understand how to use GemTaxonomy class.

Console Commands

The package includes several command line tools using the python class to perform different tasks.

gem-taxonomy-validate: validate taxonomy string passed as parameter

gem-taxonomy-csv-validate: validate taxonomy strings from a csv file (or a list of them) with a lot options to replace values if needed, it is used extensively for CI pipelines

gem-taxonomy-explain: explain (or convert) taxonomy strings to different formats

gem-taxonomy-info: retrieves information about the taxonomy package and related packages

gem-taxonomy-specs2graph: create a .dot file that explains relations between atoms groups and attributes.

Release files for openquake.gem-taxonomy 1.13.0

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

Source distribution (sdist)

Source distribution for openquake.gem-taxonomy 1.13.0
File Size Uploaded
openquake_gem_taxonomy-1.13.0.tar.gz 37.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openquake.gem-taxonomy 1.13.0
File Interpreter ABI Platform
openquake_gem_taxonomy-1.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.6 kB

Release files / openquake_gem_taxonomy-1.13.0.tar.gz

Download URL openquake_gem_taxonomy-1.13.0.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
da01b536ebfb931f9cb20a198477f2de92fcdc7cd519b9a5624eebc806ef49bb
BLAKE2b-256 checksum
How to use checksums
43cdea5c6f2f750c897467320ae492b275314cec913680f67313593509dba0cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 15, 2026.

Transparency log

Release files / openquake_gem_taxonomy-1.13.0-py3-none-any.whl

Download URL openquake_gem_taxonomy-1.13.0-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9604b09c49eb16bf61ddfa6dfa4065ce39cd7fdb5198a6cdd2c704f76b3097cf
BLAKE2b-256 checksum
How to use checksums
290b144d6c596cece0f01d0b00839c93ad510c0c411ae0fdeb52089cc7a9e025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 15, 2026.

Transparency log

Release history Release notifications | RSS feed

1.13.1

2 release files

This release

1.13.0 This release

2 release files

1.12.1

2 release files

1.11.3

2 release files

1.11.2

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