Skip to main content

Django package that handles exporting of data

Project description

Validator is a library that provides an improved handling of validation.

The following parts of validation are handled;

  • state

  • transistion

Installation

pip install etools-validator

Setup

Add validator to INSTALLED_APPS in settings.py .. code-block:: python

INSTALLED_APPS = (

… ‘etools_validator’,

)

Usage

Use validator in views

from validator.mixins import ValidatorViewMixin

class ExampleView(ValidatorViewMixin, ListCreateAPIView):
    ...

Contributing

Environment Setup

To install the necessary libraries

$ pip install -r requirements/dev.txt

Coding Standards

See PEP 8 Style Guide for Python Code for complete details on the coding standards.

To run checks on the code to ensure code is in compliance

$ flake8 .

Testing

Testing is important and tests are located in tests/ directory and can be run with;

$ coverage run manage.py test

Coverage report is viewable in build/coverage directory, and can be generated with;

$ coverage html

Compatibility Matrix

https://travis-matrix-badges.herokuapp.com/repos/unicef/etools-validator/branches/develop

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

etools-validator-0.5.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

etools_validator-0.5-py2.py3-none-any.whl (11.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file etools-validator-0.5.tar.gz.

File metadata

  • Download URL: etools-validator-0.5.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for etools-validator-0.5.tar.gz
Algorithm Hash digest
SHA256 34f1e4179464ffa6e580a190750cf784bad42d8cbbb271410817b488dd26e2e1
MD5 b3eddc6bfb01b6a196ca5a755df44290
BLAKE2b-256 f83b0d48e1170dbe7977082b9027f87c9949bbeafaa6955e138ebfb997245135

See more details on using hashes here.

File details

Details for the file etools_validator-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: etools_validator-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for etools_validator-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5363a245b638454b21c6fe7aa9dd086e69f48970bc9e2de67e5ae40c3ecc0105
MD5 95ed345cb5ef14d39f18228cb5024e95
BLAKE2b-256 f5f8140763b14b381eb7e257c8a938caa67eb0932503b7af08d2b9c61cf292a1

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