Skip to content

freeman-lab/checkist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkist

Minimal module for argument checking

install

pip install checkist

usage

let's say you have a list of valid arugments

valid = ['elf', 'mage', 'knight']

you can check against it like this

checkist.opts('elf', valid)
checkist.opts('mage', valid)
checkist.opts('archer', valid)
>> ValueError: Option must be one of 'elf', 'mage', 'knight', got 'archer'

About

Minimal module for argument checking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages