{ "info": { "author": "Scott Stoltzman", "author_email": "scott@stoltzmanconsulting.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# WattTime API v2 - Easy to Use Model\nCreating an easier way to interact with WattTime API v2 (api2.watttime.org) The API documentation is at: and the Watttime organization is really cool, so check them out at .\n\nWritten in Python 3.7, should work with 3.6+\n\nOn PyPI\n`pip install watttime`\n\n## To use: \n\nIf you already have a username and password registered with the API v2, then no need to register again. If you do not, follow these steps:\n\n\n```\nfrom watttime.api import WattTime\n\nw = WattTime(username=, password=)\nw.register(email=, organization=)\n``` \n\nconsole output: \n```\nRegistering...\n{'user': '', 'ok': 'User created'}\n```\n\n\nIf you need to reset your password: \n```\nw.reset_password()\n```\n\nconsole output:\n```\n{'ok': 'Please check your email for the password reset link'}\n```\n\n\nBefore you do any work, you must request a token: \n```\nw.get_token()\n```\n\nconsole output:\n```\n{'token': 'crazy_hash'}\nToken received, setting headers: crazy_hash\n```\n\nNow you're ready to get your realtime emissions!!!\n\nIf you want to use latitude and longitude, pass them into your function explicitly\n```\ndata = w.get_realtime_emissions(latitude=37.871667, longitude=-122.272778)\n```\n\nconsole output:\n```\nNo balancing authority passed, getting data for\n latitude=37.871667\n longitude=-122.272778\n{'id': 137, 'abbrev': 'CAISO_NP15', 'name': 'CAISO NP15 Trading Hub'}\nSetting balancing_authority: CAISO_NP15\nGetting data for balancing authority: CAISO_NP15\nURL requested = https://api2.watttime.org/v2/index/?ba=CAISO_NP15&style=all\n{'validUntil': '2019-10-02T21:45:00Z', 'pointTime': '2019-10-02T21:40:00Z', 'freq': '300', 'market': 'RTM', 'ba': 'CAISO_NP15', 'rating': '4', 'switch': '0', 'percent': '64', 'point_time': '2019-10-02T21:40:00Z', 'validFor': 175}\n```\n\nyour `data` variable output in console:\n```\n{'validUntil': '2019-10-02T21:45:00Z',\n 'pointTime': '2019-10-02T21:40:00Z',\n 'freq': '300',\n 'market': 'RTM',\n 'ba': 'CAISO_NP15',\n 'rating': '4',\n 'switch': '0',\n 'percent': '64',\n 'point_time': '2019-10-02T21:40:00Z',\n 'validFor': 175}\n```\n\nIf you prefer to pass in a balancing authority, you may do so explicitly as well. *Note*: anything you pass as `ba` will overwrite and set your instance `balancing_authority` to whatever you pass and that will be used by default until you change it. \n```\nw.get_realtime_emissions(ba='')\n```\n\nIf you need to find a balancing authority (because you can't overwrite by using `latitude` and `longitude` alone, use the `get_balancing_authority` function in order to override it.\n\n```\nw.get_balancing_authority(latitude=37.871667, longitude=-122.272778)\n```\n\nThen you may proceed as normal!\n\n\nTo run tests, in console run: \n```\npytest\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stoltzmaniac/WattTime", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "watttime", "package_url": "https://pypi.org/project/watttime/", "platform": "", "project_url": "https://pypi.org/project/watttime/", "project_urls": { "Homepage": "https://github.com/stoltzmaniac/WattTime" }, "release_url": "https://pypi.org/project/watttime/0.0.5/", "requires_dist": [ "requests" ], "requires_python": ">=3.6", "summary": "A package to access the WattTime API v2", "version": "0.0.5" }, "last_serial": 5941748, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f334dc96c2ad178a6369d4997a9e305f", "sha256": "581e9137d0df189273de3d4741986353ab10769a16145ffab4e4d03bbf7eb2e9" }, "downloads": -1, "filename": "watttime-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f334dc96c2ad178a6369d4997a9e305f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 16036, "upload_time": "2019-10-03T20:14:42", "url": "https://files.pythonhosted.org/packages/d7/b0/837fe2504dc6e3d7a74bb7f6ef245aeb56d965b98262de295c7186fcb468/watttime-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a381d34b9f96decac97a2e76b7fa9ec5", "sha256": "c06d2fac3060910e53fd11fed8339c415bd4227f1770c6cd88cc154859ec3c5a" }, "downloads": -1, "filename": "watttime-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a381d34b9f96decac97a2e76b7fa9ec5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3415, "upload_time": "2019-10-03T20:14:45", "url": "https://files.pythonhosted.org/packages/81/51/c0f9d6107df9ea51ead4a7ea7fabb65f17c177022a4c9b228cdd5890201b/watttime-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9b2361a247ace5e2c3f57d429aaad8e4", "sha256": "a9da02f0d5df3c8e2adf190e12b7f50a8ebdbae3cd5f3634eeb5aebeab42ac97" }, "downloads": -1, "filename": "watttime-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9b2361a247ace5e2c3f57d429aaad8e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 16058, "upload_time": "2019-10-03T20:26:05", "url": "https://files.pythonhosted.org/packages/f2/cc/8ce501888a94e796fda63ef174dca41ebffd9f6ca2765e495fdb4e25a5e8/watttime-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f26af9efe7bb1143081d75ee72445242", "sha256": "c81ea666c009aad9866d7985a8bea0ef7afcb03d6c8ea9c5b067a97e219488c1" }, "downloads": -1, "filename": "watttime-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f26af9efe7bb1143081d75ee72445242", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3453, "upload_time": "2019-10-03T20:26:07", "url": "https://files.pythonhosted.org/packages/c7/b6/c323bda0bef35d25712ce314a7e913ba0a34577b955651605571ba76a9e3/watttime-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a8e8ca989e53268a24a58fcc8e0972e3", "sha256": "57c430c6e2faeed58fc174d6800bf338963c7067b208226ccd4947b7897aabb5" }, "downloads": -1, "filename": "watttime-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a8e8ca989e53268a24a58fcc8e0972e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 16046, "upload_time": "2019-10-03T21:56:42", "url": "https://files.pythonhosted.org/packages/67/72/6887ba94bc72496948649cf58ff03533e24015c409205b8ab350f262e383/watttime-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8247bfade2702173d1088a6df5f4858d", "sha256": "90cf48e856f98d24bec5921b354f969fd8267685507550e4b4b9f39fc65337c3" }, "downloads": -1, "filename": "watttime-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8247bfade2702173d1088a6df5f4858d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3452, "upload_time": "2019-10-03T21:56:44", "url": "https://files.pythonhosted.org/packages/f4/75/3c4599c53409bade4e24d122aad3fdcbd3fde264ad253b8a39ec0e776a46/watttime-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "c33ce30b32ad9c0d26257227075382a2", "sha256": "2eafdd55e7ffd35b8da34e4bcf884659e29747f5c7b1e81d770b8072f27a31dc" }, "downloads": -1, "filename": "watttime-0.0.4.macosx-10.14-x86_64.tar.gz", "has_sig": false, "md5_digest": "c33ce30b32ad9c0d26257227075382a2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8860, "upload_time": "2019-10-07T22:02:42", "url": "https://files.pythonhosted.org/packages/bb/74/c7aa667d10b28f9fdec30c3f7d6e9e6849992d3f11007bb3a8f7ea51074b/watttime-0.0.4.macosx-10.14-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "a9716eb369084bf3f8b5d845d149bb5e", "sha256": "30231000f34fbbdd2c34cdb26a7115d5e9e24f1b6a170974995f67aa317413c4" }, "downloads": -1, "filename": "watttime-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "a9716eb369084bf3f8b5d845d149bb5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18943, "upload_time": "2019-10-07T22:02:40", "url": "https://files.pythonhosted.org/packages/65/2c/82deb50744ce386b148727d8c85b055995fe63e263f8c6cb0c5ecfa55bbd/watttime-0.0.4-py3-none-any.whl" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "877fe4047400972cb5c0c3677996d8cf", "sha256": "a12d0ef4f5305b5d3038a93f5c88fe0cae23d1b8fd839a0f3a6329fe7f85b3d3" }, "downloads": -1, "filename": "watttime-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "877fe4047400972cb5c0c3677996d8cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18944, "upload_time": "2019-10-07T22:03:46", "url": "https://files.pythonhosted.org/packages/67/c8/c42f8fb2c574676cac8bd8eaa7eebf313ee733732d4f1edda6b191e2308f/watttime-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3674641b355561a44821adcaa3fb5757", "sha256": "1fd89cfb1a4f16f30fc2679f8af39cac2579b0cd88d1faff5cbd5ebf36e1618e" }, "downloads": -1, "filename": "watttime-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3674641b355561a44821adcaa3fb5757", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5038, "upload_time": "2019-10-07T22:03:48", "url": "https://files.pythonhosted.org/packages/d9/bc/4b60a804b7fc4506aae8630f543671da9a876710bf34eb410af329e5db4f/watttime-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "877fe4047400972cb5c0c3677996d8cf", "sha256": "a12d0ef4f5305b5d3038a93f5c88fe0cae23d1b8fd839a0f3a6329fe7f85b3d3" }, "downloads": -1, "filename": "watttime-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "877fe4047400972cb5c0c3677996d8cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18944, "upload_time": "2019-10-07T22:03:46", "url": "https://files.pythonhosted.org/packages/67/c8/c42f8fb2c574676cac8bd8eaa7eebf313ee733732d4f1edda6b191e2308f/watttime-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3674641b355561a44821adcaa3fb5757", "sha256": "1fd89cfb1a4f16f30fc2679f8af39cac2579b0cd88d1faff5cbd5ebf36e1618e" }, "downloads": -1, "filename": "watttime-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3674641b355561a44821adcaa3fb5757", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5038, "upload_time": "2019-10-07T22:03:48", "url": "https://files.pythonhosted.org/packages/d9/bc/4b60a804b7fc4506aae8630f543671da9a876710bf34eb410af329e5db4f/watttime-0.0.5.tar.gz" } ] }