Cerberus
Lightweight, extensible data validation library for Python (by pyeve)
schema
Schema validation just got Pythonic (by keleshev)
Our great sponsors
Cerberus | schema | |
---|---|---|
3 | 3 | |
3,106 | 2,830 | |
0.5% | - | |
7.4 | 7.0 | |
6 months ago | 24 days ago | |
Python | Python | |
ISC License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Cerberus
Posts with mentions or reviews of Cerberus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-29.
-
Show HN: Config-file-validator – CLI tool to validate all your config files
I was expecting this to validate the configuration files are also valid for their use cases, not just valid JSON, TOML, etc.
If you're looking for that and Python is your jam, the library cerberus[0] is very good at it.
-
Do you think we need an open-source web scraping monitoring tool?
I wrote scrapy-test as a proof of concept for validating live pages for scrapy spiders if you're looking for some reference but if you're not using scrapy I'd recommend just adding validation tests using data validation tools like cerberus which is super underrated. I cover popular data validation techniques on this short blog I wrote if you want to learn more.
-
Can you suggest something more to grow in scraping?
Other than that, have you looked into testing scrapers? Since scrapers are working with highly dynamic data writing good tests is quite a challange. For example, for parser monitoring using cerberus is a very cool tool which allows you to define loose requirements like "phone number should always be 9 numbers" etc.
schema
Posts with mentions or reviews of schema.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-20.
-
Python: Data validation
Validation using Schema
- tqdm (Python)
-
How can I Unit Test on a text file?
I generally use the https://github.com/keleshev/schema to validate data. You can have a script running that monitors for updated files, then sounds up a new process to actually validate the file.
What are some alternatives?
When comparing Cerberus and schema you can also consider the following projects:
jsonschema - An implementation of the JSON Schema specification for Python
pydantic - Data validation using Python type hints
voluptuous - CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
Schematics - Python Data Structures for Humans™.
colander - A serialization/deserialization/validation library for strings, mappings and lists.
valideer - Lightweight data validation and adaptation Python library.
python-codicefiscale - :it: :credit_card: italian fiscal codes encoding, decoding and validation - codifica, decodifica e validazione del Codice Fiscale italiano.