Skip to main content

AI4OS Hub applications metadata utilities

Project description

AI4 Metadata utilities

Metadata utilities for the AI4OS hub data science applications.

The AI4OS hub data science applications use metadata to describe the data sources, models, and other resources. The metadata is used to validate the resources and to provide information to the users.

Installation

The metadata utilities can be installed using pip:

$ pip install ai4-metadata

Usage

Metadata validation

The metadata utilities provide a command-line interface (CLI) tool ai4-metadata-validate that can be used to validate the metadata files. The CLI tool accepts the metadata files as input parameters.

$ ai4-metadata-validate instances/sample-v2.mods.json

Different metadata versions can be specified, either by using the --metadata-version or by providing the metadata schema file.

$ ai4-metadata-validate --metadata-version 2.0.0 instances/sample-v2.mods.json
$ ai4-metadata-validate --schema schemata/ai4-apps-v2.0.0.json instances/sample-v2.mods.json

Metadata migration

The metadata utilities provide a command-line interface (CLI) tool ai4-metadata-migrate that can be used to migrate the metadata files from V1 to latest V2.

$ ai4-metadata-migrate instances/sample-v1.mods.json

To save the output, use the --output option.

$ ai4-metadata-migrate --output sample-v2.mods.json instances/sample-v1.mods.json

Please review the changes, as the metadata migration is not complete, and manual steps are needed.

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

ai4_metadata-2.0.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

ai4_metadata-2.0.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file ai4_metadata-2.0.2.tar.gz.

File metadata

  • Download URL: ai4_metadata-2.0.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure

File hashes

Hashes for ai4_metadata-2.0.2.tar.gz
Algorithm Hash digest
SHA256 f75d62701882b61d73971d2c8b6ddf021c932d95af2f895954deb5654f75e3e5
MD5 319a8776aa43153a864b6b8061904600
BLAKE2b-256 336740eff8b5a373da0f7f8439fc41c0d9aa07a1aa7077346a2bb5f8fcbbddd5

See more details on using hashes here.

File details

Details for the file ai4_metadata-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: ai4_metadata-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure

File hashes

Hashes for ai4_metadata-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a40a0d78e0e0d4d528f13f25dfae12cce88e7fb0e2d30cac4ed7e98b94c970
MD5 546d2f5b6475e5940ce27537faa42626
BLAKE2b-256 1a91da57d81976a392cdb4eccbfaf9887310df47f764604ccfc6e08b88a04fb4

See more details on using hashes here.

Supported by

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