Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Validation for nested data structures
pip install valida
from valida import Data, Value, Rule
# Define some data that we want to validate:
my_data = Data({'A': 1, 'B': [1, 2, 3], 'C': {'c1': 8.2, 'c2': 'hello'}})
# Define a rule as a path within the data and a condition at that path:
rule = Rule(
path=('C', 'c2'),
condition=Value.dtype.equal_to(str),
)
# Test the rule
rule.test(my_data).is_valid # `True` => The rule tested successfully
Valida was developed using funding from the LightForm EPSRC programme grant (EP/R001715/1)
FAQs
Comprehensive validation library for nested data structures.
We found that valida demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.