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

This package provide system level forecast for NEISO

Project description

This package allows you to create System Level Forecast for NEISO.

It automatically creates all the required tables in the database. This class constructor takes following parameters:

start_date: The start date and time for the API. String format %Y/%m/%dT%H:%M

end_date: The end date and time for the API. String format %Y/%m/%dT%H:%M

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.

csv_dir: The directory path where the csv files should be stored

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
Config.CASSANDRA

Default value is Config.MYSQL

To execute the system you can call execute method of the same class.

EXAMPLE

import logging import os from datetime import datetime, timedelta

from NYISOGetDataSystemLevelForecastActualData import NYISOSystemLevelForecast from utilsInnowatts import Config, Logging

log = Logging(print_on_console=True, level=logging.INFO) config = Config() config.setup_mysql_configuration(host=os.environ['MYSQL_HOST'], port=os.environ['MYSQL_PORT'], user=os.environ['MYSQL_USER'], password=os.environ['MYSQL_PASSWORD'], database=os.environ['MYSQL_DATABASE'], )

csv_dir = "csv_neiso" end_date = datetime.now() start_date = end_date - timedelta(days=0)

neiso = NEISOSystemLevelForecast(start_date=start_date, end_date=end_date, log=log, config=config, csv_dir=csv_dir, database_system=Config.MYSQL) neiso.execute()

Project details


Download files

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

Files for NEISOGetDataSystemLevelForecastActualData, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size NEISOGetDataSystemLevelForecastActualData-1.0.2.tar.gz (4.6 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