This tool contains validation logic for the BO4E migration data model (ibims). It uses the pvframework.
Project description
Pedantic Validator Tool
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pvtool-0.3.3.tar.gz.
File metadata
- Download URL: pvtool-0.3.3.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c14ab31c6ee48993d84fb0d8855a344c915bf9310fef9cf93f7c9f2726fcdea
|
|
| MD5 |
65f69957f9001e9e41bcde2b495048a2
|
|
| BLAKE2b-256 |
dec5096863259e725912e3a198da7a5efd70ca79b91d08d7367cd42dac735b07
|
File details
Details for the file pvtool-0.3.3-py3-none-any.whl.
File metadata
- Download URL: pvtool-0.3.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8a9fe705e893fd870b9632cbcec967d246097a3e6e58bcbef5492b6559ec684
|
|
| MD5 |
890343f82097278b33c5ca7ccba7d541
|
|
| BLAKE2b-256 |
3320a562fb7428cd79189fc45471cdb99bd92186bb75f8c251692dc1af56d814
|