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.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 openquake.gem-taxonomy 1.13.1
File Size Uploaded
openquake_gem_taxonomy-1.13.1.tar.gz 37.9 kB Details

Built distribution (wheel)

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

Total release size: 76.6 kB

Release files / openquake_gem_taxonomy-1.13.1.tar.gz

Download URL openquake_gem_taxonomy-1.13.1.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
68dd5af1e38b53c1b3e2a897a0005368474366d77c853ad5c3ade2163c7b2ab3
BLAKE2b-256 checksum
How to use checksums
d5e015a2bdba3f560c1b59f739ee95d5db9ae228d5a45e41817d2b4d3ef3a6e3
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.1-py3-none-any.whl

Download URL openquake_gem_taxonomy-1.13.1-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99aa4c3946b0081e09070cdc20920ea4349e82c6e51f065c7f4fde8320aab111
BLAKE2b-256 checksum
How to use checksums
8f71e3d91d292cb332740d6cf6b73e6e4d49d0d24ee3abbf8bf7685f0cd23e5d
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

This release

1.13.1 This release

2 release files

1.13.0

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