Skip to content

Commit 1dfa064

Browse files
committed
Wrap paragraphs to 80 chars
1 parent 8456c09 commit 1dfa064

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

‎README.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ validators
33

44
Python data validation for Humans.
55

6-
7-
Python has all kinds of data validation tools, but every one of them seems to require defining a schema / form. I wanted to create a simple validation library where validating a simple value does not require defining a form or a schema.
6+
Python has all kinds of data validation tools, but every one of them seems to
7+
require defining a schema / form. I wanted to create a simple validation library
8+
where validating a simple value does not require defining a form or a schema.
89

910

1011
::

‎docs/index.rst‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ Python Data Validation for Humans™.
77
Why?
88
====
99

10-
Python has all kinds of validation tools, but every one of them requires defining a schema. I wanted to create a simple validation library where validating a simple value does not require defining a form or a schema. Apparently some other guys have felt the same way: http://opensourcehacker.com/2011/07/07/generic-python-validation-frameworks/
10+
Python has all kinds of validation tools, but every one of them requires
11+
defining a schema. I wanted to create a simple validation library where
12+
validating a simple value does not require defining a form or a schema.
13+
Apparently some other guys have felt the same way:
14+
http://opensourcehacker.com/2011/07/07/generic-python-validation-frameworks/
1115

12-
Often I've had for example a case where I just wanted to check if given string is an email. With `validators` this use case becomes as easy as:
16+
Often I've had for example a case where I just wanted to check if given string
17+
is an email. With `validators` this use case becomes as easy as:
1318

1419
::
1520

@@ -36,9 +41,13 @@ Currently validators supports python versions 2.6, 2.7 and 3.3.
3641
Basic validators
3742
================
3843

39-
Each validator in `validators` is a simple function that takes the value to validate and possibly some additional key-value arguments. Each function returns `True` when validation succeeds and ValidationFailure object when validation fails.
44+
Each validator in `validators` is a simple function that takes the value to
45+
validate and possibly some additional key-value arguments. Each function returns
46+
`True` when validation succeeds and ValidationFailure object when validation
47+
fails.
4048

41-
ValidationFailure class implements __bool__ method so you can easily check if validation failed:
49+
ValidationFailure class implements __bool__ method so you can easily check if
50+
validation failed:
4251

4352
::
4453

@@ -48,7 +57,8 @@ ValidationFailure class implements __bool__ method so you can easily check if va
4857
pass
4958

5059

51-
ValidationFailure object also holds all the arguments passed to original function:
60+
ValidationFailure object also holds all the arguments passed to original
61+
function:
5262

5363
::
5464

0 commit comments

Comments
 (0)