Skip to main content

Validation of data table columns

Project description

minimonolith-schema

minimonolith-schema is a Python package that provides functionality for validating the columns of data tables.

Installation

Install the package via pip:

pip install minimonolith-schema

Usage

Here's a simple example on how to use minimonolith-schema:

import pandas_schema as pds
from minimonolith_schema import validators

schema = pds.Schema([
  pds.Column('Código Antiguo ', [pds.validation.CustomElementValidation(
    lambda x: validators.match_code_or_null(x,
      [r"^\d\d-\d\d\d$", r"^\d\d\d\d\d\d$"], ['No Aplica']), 'NOT_IN_PATTERNS')]),

  pds.Column('Código Vigente', [pds.validation.CustomElementValidation(
    lambda x: validators.in_int_interval(x, 100000, 300000), 'NOT_IN_PATTERNS')]),

  pds.Column('Nivel de Atención', [pds.validation.CustomElementValidation(
    lambda x: validators.in_category_or_null(x, ['Primario', 'Terciario', 'Secundario', 'terciario', 'Primario '],
    ['No Aplica', 'Pendiente']), 'NOT_IN_CATEGORY')]),
]);

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

minimonolith-schema-0.2.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

minimonolith_schema-0.2.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file minimonolith-schema-0.2.1.tar.gz.

File metadata

  • Download URL: minimonolith-schema-0.2.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for minimonolith-schema-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0e557037fe7c9e016c1d967f53f0a4647e33847b461750ed206473148f859496
MD5 cc5af7d3519a654fb7f14c4105b4fe91
BLAKE2b-256 a4e9d6cbe77aecde71043ccbe919fb86c995286a0305bc8e0da2ef7afd12aa49

See more details on using hashes here.

File details

Details for the file minimonolith_schema-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for minimonolith_schema-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5af19cef24ce76ab1297d288b898abbc9681fc1ed0a77226d9d96ac70e1db516
MD5 36e3b324c4d419d439d3581ba4c4bdbb
BLAKE2b-256 c71f940ddb0bb8c01b26528320b28d66acb5830e629a17d5fbac380d96a95075

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