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.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai4_metadata-2.0.1.tar.gz
  • Upload date:
  • Size: 10.6 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.1.tar.gz
Algorithm Hash digest
SHA256 e29a10a13c3c28d7208b575b90c41f111de8db58a4c2b92c1644c1d326446a5b
MD5 ae8fcee17a8d2cfcebefa0eaa56af17b
BLAKE2b-256 7f07dc51a0e7dd1e3841ba477b74921585d8a865cac7222c415ecaa4a7ab4b4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai4_metadata-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a92f4b67ea0d4a0a4fb7dcadc76df027b64d0cb301206dbcf331530359f4bb15
MD5 1da384032dac97099dc2f75a1fbea2b9
BLAKE2b-256 f99db6f6905034c11451b0a41261b9e437800f8fa3538c7ee9215d6d6720a832

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