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
Hashes for etools_validator-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f6722cd1ed7c82b4a7249d9c1f9e9d390656f77920c168169ae761ce3dee705 |
|
MD5 | fc897afbf3e1f7df1792fdc3657a5674 |
|
BLAKE2b-256 | 0339c1df02081d342e351329bb589c59f37de0e615ea0c89fcf07cebc51bc920 |