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.3.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

minimonolith_schema-0.3.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minimonolith-schema-0.3.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for minimonolith-schema-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c0cc9a51227c8bdb930122ad035386ccacdf08d7d33a3c3642f867b494b0bb37
MD5 6be44353816ffc197fda11cccec8fb33
BLAKE2b-256 3c47e757c7c091218a118659450e4a2a86a82f163d0413bbe981c7169035c548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for minimonolith_schema-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2affa65159cfc3f353eb799215ce1732b50d025354c3b674ed2c227b178d8177
MD5 195084b28e7d02b6439bef2501627b2a
BLAKE2b-256 9bfe7e1718491181ee90ce04014d8b16c459a8cce85a79ea202f0639d9ebcc82

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