Skip to main content

Pedantic Validator Tool

Unittests status badge Coverage status badge Linting status badge Black status badge PyPI

This package contains the validation logic to validate the data of the BO4E migration model ibims. It uses the pedantic-validator-framework to create ValidationManagers for each data set in ibims. (Currently supported are only Customer, Network and Resource.)

This package is designed to be used together with bomf. Although, it only uses the MigrationConfig to use the migration_key_date which is necessary for some validations.

Usage

Install it from pypi:

pip install pvtool

To use the validation logic you just need to bind the preconfigured modules of this package to ValidationManager of your Injector. Alternatively, you could execute the provider-method of the module on your own by supplying a MigrationConfig instance.

from injector import Injector
from pvtool import ValidationManagerProviderCustomer
from pvframework import ValidationManager
from bomf.config import MigrationConfig
from datetime import datetime, UTC

customer_injector = Injector([
    ValidationManagerProviderCustomer,
    lambda binder: binder.bind(MigrationConfig, MigrationConfig(migration_key_date=datetime(2021, 1, 1, tzinfo=UTC))),
])

customer_validation_manager = customer_injector.get(ValidationManager)

How to use this Repository on Your Machine

Follow the instructions in our Python template repository.

Contribute

You are very welcome to contribute to this repository by opening a pull request against the main branch.

Download files

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

Source Distribution

pvtool-0.3.4.tar.gz (54.7 kB view details)

Uploaded Source

Built Distribution

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

pvtool-0.3.4-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pvtool-0.3.4.tar.gz.

File metadata

  • Download URL: pvtool-0.3.4.tar.gz
  • Upload date:
  • Size: 54.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pvtool-0.3.4.tar.gz
Algorithm Hash digest
SHA256 65f39ffb5b760335cb990e4234ce4a014f1cbaeee5800775e5cbd38c24909003
MD5 b051530bcdcacd779a0efb53a0124154
BLAKE2b-256 934cc6c02c13ec9c5dfae53faeb2b885076688b1430ec38e64087fa90c55c896

See more details on using hashes here.

File details

Details for the file pvtool-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: pvtool-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pvtool-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e49cb56633c290729e7bdbf21f514fbff1d28d4532f92b507a2c533d9b11ead
MD5 140cd5f8950d0600d0fcd6eab20283a3
BLAKE2b-256 0f94a45750de7eff3ed53e107105a37b0dd5a3add3a92fced76e3e3e461f2f85

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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