Return the mime-type for filename. If available python-magic is used to provide better type detection.
A wrapper around os.walk which handles exclusion patterns and unicode conversion.
Bases: object
A handler interface for eyed3.utils.walk() callbacks.
Called for each file walked. The file f is the full path and the return value is ignored. If the walk should abort the method should raise a StopIteration exception.
Function decorator to enforce unicode argument types. None is a valid argument value, in all cases, regardless of not being unicode. *args Positional arguments may be numeric argument index values (requireUnicode(1, 3) - requires argument 1 and 3 are unicode) or keyword argument names (requireUnicode(“title”)) or a combination thereof.
Accepts a string of bytes (chars) and returns an array of bits representing the bytes in big endian byte order. An optional max sz for each byte (default 8 bits/byte) which can be used to mask out higher bits.
Convert x, an array of “bits” (MSB first), to it’s decimal value.
Convert a decimal value n to an array of bits (MSB first). Optionally, pad the overall size to p bits.
Bases: argparse.ArgumentParser
Subclass of argparse.ArgumentParser that adds version and log level options.
Bases: argparse._AppendAction