Skip to main content

Module for handling models used across multiple MFDs (mostly Pydantic)

Project description

[!IMPORTANT]
This project is under development. All source code and features on the main branch are for the purpose of testing or evaluation and not production ready.

MFD Model

Module for handling Pydantic models used across multiple MFDs stored in subpackages. The library utilizes the [project.optional-dependencies] section in pyproject.toml to specify optional dependencies for each subpackage

Subpackages

Every subpackage can be installed separately by specifying the package name in square brackets after the main package name. Structure:

├───<subpackage_name>
│   │   models.py
│   │   __init__.py
│   │   __version__.py

config (used in pytest-mfd-config)

This subpackage contains models for configuration files. They are used in pytest-mfd-config to define configuration files and their structure.

nvm

This subpackage contains models related with NVMs like EETrack, Release, ...
They are used to handle upload / download / search of NVMs stored in NVMManager.

artifacts_manager

This subpackage contains models for tested artifacts.

Installation

To install 'config' models only use:

pip install mfd-model[config]

How to add another subpackage?

  1. Create a new subpackage directory with the name of the subpackage.
  2. Add models.py file with models definitions.
  3. Add __init__.py file.
  4. Add __version__.py file with version definition.
  5. Update pyproject.toml:
    • add the requirements in [project.optional-dependencies] section, e.g.:
        data_processor = ["pydantic >= 2.0, < 3", "numpy >= 1.21.0"]  # Example dependencies
    

OS supported:

  • OS Independent

Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mfd_model-0.10.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file mfd_model-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: mfd_model-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mfd_model-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ff24cbd2781575ae25904aa558084ba9612e0ad7a1325b0b24477fdf438fe0
MD5 adf0eca6a90967b325f846d6d0944cc4
BLAKE2b-256 93d269c8f3650d426332f4304271cc4171a49029e031c46dfc1d55be73e56cb1

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