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.1.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file vali-0.0.1.tar.gz.

File metadata

  • Download URL: vali-0.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vali-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ae1a2506c0039eaf4a283af8d8bfd0925459a6e8eef2eaf8ee9d36c12d88c568
MD5 3bcd402e9d6a6bf28f38e944097834e6
BLAKE2b-256 8145a5be27833fa86f9a336ebc162857b16bec71ded461d9878b9fd846924628

See more details on using hashes here.

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