File: external_resources.rst

package info (click to toggle)
python-cerberus 1.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,532 kB
  • sloc: python: 5,239; makefile: 130
file content (50 lines) | stat: -rw-r--r-- 2,025 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
External resources
==================

Here are some recommended resources that deal with Cerberus.
If you find something interesting on the web, please amend it to this document
and open a pull request (see :doc:`contribute`).

Community forums
----------------

There's a `cerberus tag <https://stackoverflow.com/questions/tagged/cerberus>`_
on the Question & Answers platform *Stackoverflow*. The
`Google Group <https://groups.google.com/forum/?hl=en#!forum/python-eve>`_
regarding the mother project *Eve* may also a spot to seek these.

7 Best Python Libraries For Validating Data (February 2018)
-----------------------------------------------------------

`Clickbait <https://www.yeahhub.com/7-best-python-libraries-validating-data/>`_
that mentions Cerberus. It's a starting point to compare libraries with a
similar scope though.

Nicola Iarocci: Cerberus, or Data Validation for Humans (November 2017)
-----------------------------------------------------------------------

Get fastened for the full tour on Cerberus that Nicola gave in a
`talk <https://www.youtube.com/watch?v=vlHAjIPvoT4>`_ at PiterPy 2017.
No bit is missed, so don't miss it!
The talk also includes a sample of the actual pronunciation of Iarocci as
extra takeaway.

Henry Ölsner: Validate JSON data using cerberus (March 2016)
------------------------------------------------------------

In this `blog post <https://codingnetworker.com/2016/03/validate-json-data-using-cerberus/>`_
the author describes how to validate network configurations with a schema noted
in YAML. The article that doesn't spare on code snippets develops the
resulting schema by gradually increasing its complexity. A custom type check is
also implemented, but be aware that version *0.9.2* is used. With 1.0 and later
the implementation should look like this:

.. code-block:: python

    def _validate_type_ipv4address(self, value):
        try:
            ipaddress.IPv4Address(value)
        except:
            return False
        else:
            return True