Skip to main content

Django package that handles exporting of data

Project description

Validator
#########

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

The following parts of validation are handled;

- state
- transistion


Installation
============

.. code-block:: bash
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

.. code-block:: python
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 <https://www.python.org/dev/peps/pep-0008/>`_ 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


Links
-----

+--------------------+----------------+--------------+--------------------+
| Stable | | |master-cov| | |
+--------------------+----------------+--------------+--------------------+
| Development | | |dev-cov| | |
+--------------------+----------------+--------------+--------------------+
| Source Code |https://github.com/unicef/etools-validator |
+--------------------+----------------+-----------------------------------+
| Issue tracker |https://github.com/unicef/etools-validator/issues |
+--------------------+----------------+-----------------------------------+


.. |master-cov| image:: https://circleci.com/gh/unicef/etools-validator/tree/master.svg?style=svg
:target: https://circleci.com/gh/unicef/etools-validator/tree/master


.. |dev-cov| image:: https://circleci.com/gh/unicef/etools-validator/tree/develop.svg?style=svg
:target: https://circleci.com/gh/unicef/etools-validator/tree/develop


Compatibility Matrix
--------------------

.. image:: 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.3.2.tar.gz (16.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: etools-validator-0.3.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for etools-validator-0.3.2.tar.gz
Algorithm Hash digest
SHA256 057ae0fbd8405efe6ca1240c8ce60b5bff654525a39cb2f8234d5a560277db15
MD5 4fd2a582e189719ffe1884aafdfebdf3
BLAKE2b-256 8e61c99601eb1b7f3bec014429ad8d0ace7562020738a281afc6a9192b6e5703

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