src.core package

Submodules

src.core.datareader module

class src.core.datareader.DataReader[source]

Bases: object

Class responsible for reading the extracted data and returning it in chosen format.

fetch_as_dataframe(results)[source]

Method to fetch data as Pandas dataframe.

fetch_as_dicts(results)[source]

Method to fetch data as dictionaries.

src.core.firestoreconnection module

class src.core.firestoreconnection.FirestoreConnection(path, collection_name)[source]

Bases: object

Class that handles firestore connection.

certificate_credentials()[source]

Method for getting the firestore connection credentials.

db_client()[source]

Method for getting the firestore database client.

get_collection_name()[source]

Method for getting the collection name.

get_credentials()[source]

Method for getting the credentials of firestore connection.

get_db()[source]

Method for getting the database of firestore connection.

get_path()[source]

Method for getting the path of firestore connection.

get_results()[source]

Method for getting the results of firestore connection.

initialize_firestore(cred)[source]

Method for initializing firestore connection.

save_collection()[source]

Method for getting the firestore collection.

set_collection_name(collection_name)[source]

Method for setting the collection name.

set_credentials(cred)[source]

Method for setting the credentials of firestore connection.

set_db(db)[source]

Method for setting the database of firestore connection.

set_path(path)[source]

Method for setting the path of firestore connection.

set_results(results)[source]

Method for setting the results of firestore connection.

src.core.log module

class src.core.log.Log(path: str = 'log/logs.log')[source]

Bases: object

Logging wrapper around Python logging module.

debug(message: str)[source]

Method logs debug message.

error(message: str)[source]

Method logs error message.

info(message: str)[source]

Method logs information message.

warning(message: str)[source]

Method logs warning message.

Module contents