Skip to main content

Easy Type Checking

Project description

# Vali
## Easy type checking
```python
from vali import validate

foo = 'string'
bar = 16
baz = ('string', 3)

results = validate(dict(
'str': foo,
'int': bar,
'tuple': baz
))

if not results:
print("Ahhh")
```

It can also throw an exception if you want:
```python
from vali import validate

foo = 'string'
bar = 16
baz = ('string', 3)

results = validate(dict(
'tuple': foo, # This will throw an exception
'int': bar,
'tuple': baz
), return_type='Exception')
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vali-0.0.2.tar.gz (1.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page