Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Utility package for all the common methods used for Innowatts project.

Project description

This InnoUtils package contains following files

Config.py

This file is used to setup all the configuration values for different files. This has following methods

def setup_mysql_configuration(self, host, port, user, database, password="") def setup_postgresql_configuration(self, host, port, user, database, password="") def setup_cassandra_configuration(self, host, port, keyspace)

DatabaseConnection.py

This file manages all the database related operations. This class constructor takes following parameters.

log: The Logging class object

config: The Config class object. Before passing this object make sure all the database

credentials are already setup using config class object.

database_system: The database system to be used (e.g MySql). The value must be from Config class
supported values are
Config.MYSQL
Config.POSTGRESQL

Default value is Config.MYSQL

DataFormat.py

This file is used to convert the data into different type.

Logging.py

This file manages all the logs and its configuration. This class constructor takes following parameters

log_file: Path to the log file

level: The logging level, can be anyone from in-build logging class

print_on_console: Set this to true if you want the logging output on console too

log_format: The format used by the logger

date_format: The date format that you want to specify

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for utilsInnowatts, version 1.0.10
Filename, size File type Python version Upload date Hashes
Filename, size utilsInnowatts-1.0.10.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page