{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# This package allows you to create System Level Forecast for NYISO\n\nIt automatically creates all the required tables in the database.\nThis class constructor takes following parameters:\n \n start_date: The start date and time for the API. Example 20190207T07:00\n\n end_date: The end date and time for the API. Example 20190207T09:00\n \n log: The Logging class object\n\n config: The Config class object. Before passing this object make sure all the database\n\n credentials are already setup using config class object.\n \n csv_dir: The directory path where the csv files should be stored\n \n database_system: The database system to be used (e.g MySql). The value must be from Config class\n supported values are\n Config.MYSQL\n Config.POSTGRESQL\n \n Default value is Config.MYSQL\n \n\nTo execute the system you can call execute method of the same class.\n\n# EXAMPLE\n```\nimport logging\nimport os\nfrom datetime import datetime, timedelta\n\nfrom NYISOGetDataSystemLevelForecastActualData import NYISOSystemLevelForecast\nfrom utilsInnowatts import Config, Logging\n\nlog = Logging(print_on_console=True, level=logging.INFO)\nconfig = Config()\nconfig.setup_mysql_configuration(host=os.environ['MYSQL_HOST'],\n port=os.environ['MYSQL_PORT'],\n user=os.environ['MYSQL_USER'],\n password=os.environ['MYSQL_PASSWORD'],\n database=os.environ['MYSQL_DATABASE'],\n )\n# Un comment below line if you want to write to mysql on local docker mysql image\n# config.setup_mysql_configuration(\"mysql-db\", 3306, \"root\", \"data_lake\", \"password\")\n\n# config.setup_postgresql_configuration(host=os.environ['POSTGRESQL_HOST'],\n# port=os.environ['POSTGRESQL_PORT'],\n# user=os.environ['POSTGRESQL_USER'],\n# password=os.environ['POSTGRESQL_PASSWORD'],\n# database=os.environ['POSTGRESQL_DATABASE'],\n# )\n#\n# un commnet below line if you want to write to cassandra-db\n# config.setup_cassandra_configuration(host=os.environ['CASSANDRA_HOST'],\n# port=os.environ['CASSANDRA_PORT'],\n# keyspace=os.environ['CASSANDRA_KEYSPACE'])\n\ncsv_dir = \"csv_nyiso\"\nend_date = datetime.now()\nstart_date = end_date - timedelta(days=0) # To get 1 day data start date and end date must be same\nformat_string = \"%Y%m%dT%H:%M\"\nnyiso = NYISOSystemLevelForecast(start_date=start_date.strftime(format_string),\n end_date=end_date.strftime(format_string), log=log,\n config=config, csv_dir=csv_dir, database_system=Config.MYSQL)\nnyiso.execute()\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "NYISOGetDataSystemLevelForecastActualData", "package_url": "https://pypi.org/project/NYISOGetDataSystemLevelForecastActualData/", "platform": "", "project_url": "https://pypi.org/project/NYISOGetDataSystemLevelForecastActualData/", "project_urls": null, "release_url": "https://pypi.org/project/NYISOGetDataSystemLevelForecastActualData/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "This package provide system level forecast for CAISO", "version": "1.0.1" }, "last_serial": 5937285, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "213e6b0c185cb774be255b5efd2b5a72", "sha256": "d2b7869ce64b983f69fe52f668df00c74f61de0c0e26a284f0b8d1369f069d7d" }, "downloads": -1, "filename": "NYISOGetDataSystemLevelForecastActualData-1.0.1.tar.gz", "has_sig": false, "md5_digest": "213e6b0c185cb774be255b5efd2b5a72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4668, "upload_time": "2019-10-07T06:34:20", "url": "https://files.pythonhosted.org/packages/36/c7/dead35b159417909ec8f5ffdbdf8645541315ad6b49891362938f011f8bb/NYISOGetDataSystemLevelForecastActualData-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "213e6b0c185cb774be255b5efd2b5a72", "sha256": "d2b7869ce64b983f69fe52f668df00c74f61de0c0e26a284f0b8d1369f069d7d" }, "downloads": -1, "filename": "NYISOGetDataSystemLevelForecastActualData-1.0.1.tar.gz", "has_sig": false, "md5_digest": "213e6b0c185cb774be255b5efd2b5a72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4668, "upload_time": "2019-10-07T06:34:20", "url": "https://files.pythonhosted.org/packages/36/c7/dead35b159417909ec8f5ffdbdf8645541315ad6b49891362938f011f8bb/NYISOGetDataSystemLevelForecastActualData-1.0.1.tar.gz" } ] }