Releases: smarie/python-vtypes
Releases · smarie/python-vtypes
0.5.1 - packaging improvements
- packaging improvements: set the "universal wheel" flag to 1, and cleaned up the
setup.py
. In particular removed dependency tosix
for setup and addedpy.typed
file, as well as set thezip_safe
flag to False. Removed tests folder from package. Fixes #1
See documentation page for details.
0.5.0 - First public version
- Validate both type and value with
isinstance
, thanks to easy-to-write "validating types" has_valid_type
andhas_valid_value
methods provided for easy auditing, as well asis_vtype
- Validation syntax fully compliant with
valid8
. Compliant error message available through avalidate()
method - v-types are composable so that creating a library of reusable elements is straightforward (note: should we provide one in this library based on
valid8
library ?) - Two styles:
vtype(...)
constructor method, as well as an alternateclass ...(VType)
style to perform composition using inheritance, and write docstrings more easily.
See documentation page for details.