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 details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for vali-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ed0368f5f4b3867530cadad8236bdb9ba6fd9cb9cb81f017f6c9d927cdade5e
MD5 983b71ef4b26baf3df88d84267f6247c
BLAKE2b-256 b42d3bbd8cceb8ea3db55f0b93b79e34751bea22ea7400d3ff29a7be0984fcf7

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