ndtypes is a package for typing raw memory blocks using a close variant of the datashape type language.
C library.
Python bindings for libndtypes.
Type grammar.