af.utils package

Submodules

af.utils.FileUtils module

class af.utils.FileUtils.FileUtils[source]
static get_file_directory(file_path)[source]
static get_file_name(file_path)[source]

af.utils.automatic_dimensions module

class af.utils.automatic_dimensions.AutomaticDimension(list_of_values)[source]

Bases: object

Class to create automatic dimensions for the hierarchies

create_dimensions(dimensions_queue=None)[source]
class af.utils.automatic_dimensions.DatePartialSupressionDDMMYYYY(list_of_values)[source]

Bases: af.utils.automatic_dimensions.DatePartialSupressionYYYYMMDD

get_parent(value)[source]
class af.utils.automatic_dimensions.DatePartialSupressionYYYYMMDD(list_of_values)[source]

Bases: af.utils.automatic_dimensions.AutomaticDimension

get_parent(value)[source]
class af.utils.automatic_dimensions.IntPartialSupressionLeftToRight(list_of_values, amount_to_supress=2)[source]

Bases: af.utils.automatic_dimensions.AutomaticDimension

get_parent(value)[source]
class af.utils.automatic_dimensions.IntPartialSupressionRightToLeft(list_of_values, amount_to_supress=2)[source]

Bases: af.utils.automatic_dimensions.IntPartialSupressionLeftToRight

get_parent(value)[source]
class af.utils.automatic_dimensions.IntRange(list_of_values, amount_range=10)[source]

Bases: af.utils.automatic_dimensions.AutomaticDimension

get_parent(value)[source]

af.utils.create_full_data_config module

af.utils.create_sickness_db module

class af.utils.create_sickness_db.RandomRecord[source]
static get_random_birth()[source]
static get_random_city()[source]
static get_random_gender()[source]
static get_random_problem()[source]
static get_random_profession()[source]
static get_random_race()[source]
static get_random_record()[source]
af.utils.create_sickness_db.create_db(directory, db_name, number_of_records=100)[source]
af.utils.create_sickness_db.get_directory_and_db_name()[source]

Module contents

af.utils.create_db(db_name)[source]
af.utils.get_anonymization_db_location(db_name='anonymizationDB.db', create_if_not_exists=True)[source]
af.utils.get_json_representation(data_dict)[source]
af.utils.json_loads_byteified(json_text)[source]
af.utils.load_json(json_string)[source]
af.utils.load_json_file(json_file)[source]
af.utils.mapping_types(str_type)[source]
af.utils.timeit_decorator(method)[source]