-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
3,623 additions
and
271 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Welcome to Simple Validator's documentation! | ||
============================================= | ||
|
||
What is Simple Validator(SV)? | ||
================================= | ||
Simple Validator is №1 validator in the world. This tool can validate and dates and emails. | ||
|
||
It is written in Python. | ||
|
||
What can SV do? | ||
================================= | ||
|
||
* Validate dates and times | ||
* Validate EMails addresses | ||
* Chain validation (date+email) | ||
|
||
DateTimeValidator | ||
----------------- | ||
**DateTimeValidator** takes a string and date formats(*@not required*). | ||
|
||
Returns *True* if string is validated or *False* if it isn't. | ||
|
||
Usage | ||
~~~~~ | ||
|
||
First you need to create **DateTimeValidator**:: | ||
|
||
d = DateTimeValidator() | ||
Then use **validate** method to check validation:: | ||
|
||
d.validate('Cow') | ||
>> False | ||
d.validate('2019-04-22') | ||
>> True | ||
|
||
d.validate('05/04 20:22', date_formats=['%d/%m %H:%M']) | ||
>> True | ||
|
||
|
||
EMailValidator | ||
----------------- | ||
**EMailValidator** takes a string. | ||
|
||
Returns *True* if string is validated or *False* if it isn't. | ||
|
||
Usage | ||
~~~~~ | ||
|
||
First you need to create **EMailValidator**:: | ||
|
||
e = EMailValidator() | ||
Then use **validate** method to check validation:: | ||
|
||
e.validate('dambul') | ||
>> False | ||
e.validate('example@instigate.com') | ||
>> True | ||
|
||
|
||
ChainValidator | ||
----------------- | ||
**ChainValidator** takes a string and date formats(*@not required*). | ||
|
||
Returns *True* if string is validated or *False* if it isn't. | ||
|
||
Usage | ||
~~~~~ | ||
|
||
First you need to create **ChainValidator**:: | ||
|
||
c = ChainValidator() | ||
Then use **validate** method to check validation:: | ||
|
||
c.validate('05/04 20:22', date_formats=['%d/%m %H:%M']) | ||
>> False | ||
c.validate('05/04 20:22 name@instigate.com', date_formats=['%d/%m %H:%M']) | ||
>> True | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+189 KB
Documentation/docs/build/html/_static/fonts/Lato/lato-bolditalic.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+77.7 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot
Binary file not shown.
Binary file added
BIN
+167 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf
Binary file not shown.
Binary file added
BIN
+85.6 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff
Binary file not shown.
Binary file added
BIN
+65.7 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2
Binary file not shown.
Binary file added
BIN
+76.5 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot
Binary file not shown.
Binary file added
BIN
+165 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf
Binary file not shown.
Binary file added
BIN
+84.3 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff
Binary file not shown.
Binary file added
BIN
+64.9 KB
Documentation/docs/build/html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2
Binary file not shown.
Binary file not shown.
Oops, something went wrong.