Skip to main content

Validation tools for the yaml template used by DIALS Inference Service Manager.

Project description

Build Status Coverage Latest Release

dism-core

DIALS Inference Service Manager Core or simply dism-core is a python package that provides core functionality for validating custom YAML templates used to manage custom InferenceService resources in KServe managed by DIALS. It leverages the pydantic library to ensure that the YAML templates conform to the required schema.

[!WARNING] This package is not intended to be installed or used directly. Instead, it serves as a foundational library for other packages that require YAML validation for KServe custom InferenceService deployments.

Development

Install the dependencies and the package using uv:

uv sync --all-groups
uv run pre-commit install
uv pip install -e .

Running tests

Run tests with pytest:

uv run pytest tests

Tox

You may also want to run the tests with tox to test against multiple python versions:

uv run tox

asdf users

tox requires multiple versions of Python to be installed. Using asdf, you have multiple versions installed, but they aren’t normally exposed to the current shell. You can use the following command to expose multiple versions of Python in the current directory:

asdf set python 3.12.9 3.11.10 3.10.13

This will use 3.12.9 by default (if you just run python), but it will also put python3.11 and python3.10 symlinks in your PATH so you can run those too (which is exactly what tox is looking for).

Releasing the package on PyPI

The package is available in PyPI at cmsdials, under the cmsdqm organization. You'll need at leat Mantainer rights to be able to push new versions. This package is not meant to be deployed in PyPI, since it is simply a foundational library for dials-service and dism-cli.

CI

The GitLab CI is configured to automatically publish the release notes in GitLab whever a tag is pushed to the repo.

[!NOTE] For this to work the CI/CD variables named UV_PUBLISH_TOKEN and GITLAB_TOKEN should be registered in gitlab. The GITLAB_TOKEN is a Project Access Token with api read/write rights, which is needed to read merge requests using the glab-cli. https://gitlab.cern.ch/cms-dqmdc/libraries/dism-core/-/settings/access_tokens

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

dism_core-1.2.1.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

dism_core-1.2.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file dism_core-1.2.1.tar.gz.

File metadata

  • Download URL: dism_core-1.2.1.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for dism_core-1.2.1.tar.gz
Algorithm Hash digest
SHA256 663573d9585489fb5d8cf86c40e40db42d2cadd8817c7cad1f7bed8fae557490
MD5 553c60f755a1141e5602e1762eaeca4c
BLAKE2b-256 1adab018938d6ae9f3152a73e8ae7abd66e6a578087d60214105b0a1723ad544

See more details on using hashes here.

File details

Details for the file dism_core-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: dism_core-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for dism_core-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c0f2adf72d70c3f1b3f38674e996017a9c32c62317f1d3704e240ac955b959
MD5 e66a1f07d9e6c30f115168d0773b78f6
BLAKE2b-256 fa085b73a159b794c5bd4d4ca8e31a8c44c3e1e946aa36767c7490d1fd6ad79a

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