Skip to main content

A package for evaluating values for terms in a controlled vocabulary.

Project description

Controlled Vocabulary Utils

A package for evaluating values for terms in a controlled vocabulary.

Usage

from controlled_vocabulary_utils import Manager as ValidationManager

config_file = "conf/controlled_vocabulary.yaml"

vm = ValidationManager(
    config_file=config_file,
    verbose=verbose,
)

term = "zygosity"
val = "mosaic"
if vm.is_valid(term, val):
    print(f"'{val}' is a valid value for term '{term}'")
else:
    print(f"'{val}' is NOT a valid value for term '{term}'")

History

0.1.0 (2025-02-22)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

controlled_vocabulary_utils-0.1.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

controlled_vocabulary_utils-0.1.0-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file controlled_vocabulary_utils-0.1.0.tar.gz.

File metadata

File hashes

Hashes for controlled_vocabulary_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8da9c40c0f20812ef75e98919a81e87ad5a10fb2aa868858bfb7f48fd11901eb
MD5 d6357de07eafb2893d9bb493b389d18b
BLAKE2b-256 ca51c3c6dbc694db43909c9aa6ef1a8e6764e0943b3b10e51a10cf9e85f436e1

See more details on using hashes here.

File details

Details for the file controlled_vocabulary_utils-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for controlled_vocabulary_utils-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f6d92d785cededbab28f92bf257ea345131b6cb8730f8df83de72f6da2e208f3
MD5 b6a0720a24c6df6c553bb9be60814819
BLAKE2b-256 e80c36f7943cdb1e185e3c29eae10778d8e6a8520b0619044053db843115351a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page