namefiles

Module Attributes

JsonschemaValidator

A Validator implementing the jsonschema.IValidator interface.

Functions

construct_filename([filename_template, …])

Constructs a filename using a filename convention.

construct_filepath([filename_template, …])

Constructs a filepath using a file naming convention.

disassemble_filename(target_path[, …])

Disassembles a file’s name into the parts defined by a file naming convention.

extract_filename_parts(potential_filename_parts)

Extracts filename parts from a dictionary based by a file naming convention.

get_filename_convention([convention_name])

Gets the currently defined file naming convention.

get_filename_validator([convention_name])

Returns a filename validator for applying the file naming convention.

is_a_filename_part(part_name[, …])

Returns if the part name is within the file naming convention.

register_filename_validator(filename_validator)

Registers file naming convention.

Classes

ANameGiver(**filename_parts)

A Name Giver is the abstract base class, which can be used to define a custom file naming convention.

ExtractsFilenamePart()

FilenameParts(identifier, sub_id, source_id, …)

The filename parts implements the current standard file naming convention.

NameGiver(identifier, sub_id, source_id, …)

The Name Giver implements the current standard file naming convention.