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
Links
Stable |
|||
Development |
|||
Source Code |
|||
Issue tracker |
Compatibility Matrix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file etools-validator-0.3.4.tar.gz
.
File metadata
- Download URL: etools-validator-0.3.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea79fb86d5ccc46866800bde72aaa52aeb9411916d7168fb50982b70b7763cd |
|
MD5 | a0121114fc79e448b08b24606c7a5322 |
|
BLAKE2b-256 | 34c9cf82ed9265386c7338e8cc23a9a03b9f3b667f7e0adfad9da556813f8650 |
File details
Details for the file etools_validator-0.3.4-py2.py3-none-any.whl
.
File metadata
- Download URL: etools_validator-0.3.4-py2.py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51e3d27ce87c8924ba42078cda34a54c920e4161eda34b9c3fea04dc693107b |
|
MD5 | cf3f08bdd59330c546c324cd52674bd6 |
|
BLAKE2b-256 | af07b5d2c5a239e9f7ceb724da72aa8666a99120f4d995138124471189d2b79a |