Data Science

Voluptuous – Python data validation library

Voluptuous is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc.

It has three goals: Simplicity, support for complex data structures, and provide useful error messages.

Voluptuous is free and open source software. It supports Python 3.6.

Key Features

  • Validators are simple callables: No need to subclass anything, just use a function.
  • Errors are simple exceptions: A validator can just raise Invalid(msg) and expect the user to get useful messages.
  • Schemas are basic Python data structures: Should your data be a dictionary of integer keys to strings? {int: str} does what you expect. List of integers, floats or strings? [int, float, str].
  • Designed from the ground up for validating more than just forms: Nested data structures are treated in the same way as any other type. Need a list of dictionaries? [{}]
  • Consistency: Types in the schema are checked as types. Values are compared as values. Callables are called to validate. Simple.

Website: alecthomas.github.io/voluptuous
Support: GitHub Code Repository
Developer: Alec Thomas
License: BSD 3-Clause “New” or “Revised” License

Voluptuous is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Python Data Validation
PydanticData validation using Python type hints
panderaFramework for precision data testing
jsonschema
Implementation of JSON Schema for Python
CerberusLightweight and extensible data validation library
schemaLibrary for validating Python data structures
GXValidating, documenting, and profiling data
marshmallowORM/ODM/framework-agnostic library
VoluptuousPython data validation library
SchematicsCombine types into structures, validate , and transform the shapes of data
ColanderSerialization / deserialization / validation library
ValideerLightweight data validation and adaptation Python library
OpenRefineDesktop program for data cleanup and transformation
Soda CoreData quality and data contract verification engine
OpenMetadataUnified metadata platform
Elementary OSS dbt-native data observability command-line tool

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted