dcase_util.containers.FileMixin

class dcase_util.containers.FileMixin(*args, **kwargs)[source]

File mixin to give class methods to load and store content.

__init__(*args, **kwargs)[source]

Methods

__init__(*args, **kwargs)

delimiter([exclude_delimiters])

Use csv.sniffer to guess delimiter for CSV file

detect_file_format([filename])

Detect file format from extension

empty()

Check if file is empty

exists()

Checks that file exists

get_file_information()

Get file information, filename

is_package([filename])

Determine if the file is compressed package.

validate_format()

Validate file format

Attributes

bytes

File size in bytes

logger

md5

Checksum for file.