Skip to main content

EXPYVALIDATIONS

Pypi License Python Downloads Downloads

Description

ExpyValitations python library is used to validate data in excel files. It is possible to validate the type of data, if it is required, if it is unique, perform custom validations and more!

Installation

pip install expyvalidations

Usage

# Import the ExpyValidations class
from expyvalidations import ExpyValidations

# Create a new instance of ExpyValidations
ev = ExpyValidations(path_file='path/to/file.xlsx'

# add columns to validate
ev.add_column(key="descricao", name="nome", required=True)
ev.add_column(key="value", name="valor", type="float")

# perform all validations in the file
ev.check_all()

# check if there are errors
if ev.has_errors():
    # get the errors
    print(ev.get_errors())
    """
    [
        {
            "type": "Error",
            "column": "descricao",
            "row": 2,
            "message": "Campo obrigatório"
        },
        {
            "type": "Error",
            "column": "value",
            "row": 3,
            "message": "Value is not a valid number"
        }
    ]
    """
else:
    # get the result
    ev.get_result()
    """
    [
        {
            "descricao": "Produto 1",
            "value": 10.0
        },
        {
            "descricao": "Produto 2",
            "value": 20.0
        }
    ]
    """

License

Licence MIT

Documentation

Click here to see the documentation.

Author

Ezequiel Abreu (Exebixel)

Release files for expyvalidations 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for expyvalidations 0.0.4
File Size Uploaded
expyvalidations-0.0.4.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for expyvalidations 0.0.4
File Interpreter ABI Platform
expyvalidations-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / expyvalidations-0.0.4.tar.gz

Download URL expyvalidations-0.0.4.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c02d533cbe2beafa3b1ad796b0c56d61ac3fbc5c39bd3eef2fb1ff864891d1ee
BLAKE2b-256 checksum
How to use checksums
f4017c28f5d8933b6e425dc169f6ab54060a3ab28e9527f7f19e38350853b623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / expyvalidations-0.0.4-py3-none-any.whl

Download URL expyvalidations-0.0.4-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40054de2160df760b52876b0662c379d0b4f86526e3f6b454e9d3027865e2b44
BLAKE2b-256 checksum
How to use checksums
57f13ab610a66f2dfef6cc76bbfc8de1196afd36312a19692108f99412bc76b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.2

2 release files

0.0.1

2 release 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