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.
Format seconds (number of seconds) as a string representation. When short is False (the default) the format is:
HH:MM:SS.
1w 3d 2d 4h 1h 5m 1m 4s
15s
If total is not None it will also be formatted and appended to the result seperated by ‘ / ‘.
Number of bytes per KB (2^10)
Number of bytes per MB (2^20)
Number of bytes per GB (2^30)
Kilobytes abbreviation
Megabytes abbreviation
Gigabytes abbreviation
Format size (nuber of bytes) into string format doing KB, MB, or GB conversion where necessary.
When short is False (the default) the format is smallest unit of bytes and largest gigabytes; ‘234 GB’. The short version is 2-4 characters long and of the form
256b 64k 1.1G
Copy src_fp to dest_fp in chunk_sz byte increments.
Bases: argparse.ArgumentParser
Subclass of argparse.ArgumentParser that adds version and log level options.
Bases: argparse._AppendAction
This function returns a date of some sort, amongst all the possible dates (members called release_date, original_release_date, and recording_date of type eyed3.core.Date).
The order of preference is: 1) date of original release 2) date of this versions release 3) the recording date.
Unless prefer_recording_date is True in which case the order is 3, 1, 2.
None will be returned if no dates are available.
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.