{ "info": { "author": "Miguel Paolino", "author_email": "mpaolino@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP" ], "description": "pypvwatts\n=========\n\n[![Build Status](https://travis-ci.org/mpaolino/pypvwatts.svg?branch=master)](https://travis-ci.org/mpaolino/pypvwatts)\n\nA NREL PVWAtts API v5 thin Python wrapper built around requests library.\n\nDeveloped by .\n\nGithub repository: \n\n\nPVWatts API v5 Documentation: \n\nPython requests library: \n\nSupports\n--------\n\nPython 2 & Python 3\n\nInstalling\n----------\n\npypvwatts can be installed using distutils/setuptools, either using the setup.py included or directly over PyPi package repository:\n\n\nUsing PyPi\n\n\n $ pip install pypvwatts\n\n\nDownload the tarball, unpack and then run setup.py\n\n\n $ python setup.py install\n\n\nUsage - with class methods\n--------------------------\n\n\n >>> from pypvwatts import PVWatts\n >>> PVWatts.api_key = 'myapikey'\n >>> result = PVWatts.request(\n system_capacity=4, module_type=1, array_type=1,\n azimuth=190, tilt=30, dataset='tmy2',\n losses=13, lat=40, lon=-105)\n >>> result.ac_annual\n 6683.64501953125\n\nUsage - with instance methods\n-----------------------------\n\n\n >>> from pypvwatts import PVWatts\n >>> p = PVWatts(api_key='myapikey')\n >>> result = p.request(\n system_capacity=4, module_type=1, array_type=1,\n azimuth=190, tilt=30, dataset='tmy2',\n losses=13, lat=40, lon=-105)\n >>> result.ac_annual\n 6683.64501953125\n\n\nRequest parameters and responses\n--------------------------------\n\nAll request parameters correspond to NREL PVWatts API parameters.\n\nThis library provides shortcuts for all response output fields, all can be\naccessed as a result property.\n\nPlease refer to NREL PVWatts documentation for further details.\n\nhttp://developer.nrel.gov/docs/solar/pvwatts-v5/\n\nRaw data\n--------\n\nRaw result data can be queried using the result.raw attribute.\n\n\n >>> from pypvwatts import PVWatts\n >>> result = PVWatts.request(\n system_capacity=4, module_type=1, array_type=1,\n azimuth=190, tilt=30, dataset='tmy2',\n losses=13, lat=40, lon=-105)\n >>> result.raw\n {u'errors': [u'You have exceeded your rate limit. Try again later or contact us at http://developer.nrel.gov/contact for assistance']}\n\n\nErrors\n------\n\nAll API errors are reported via JSON response, using the errors attribute.\n\n\n >>> from pypvwatts import PVWatts\n >>> result = PVWatts.request(\n system_capacity=4, module_type=1, array_type=1,\n azimuth=190, tilt=30, dataset='tmy2',\n losses=13, lat=40, lon=-105)\n >>> result.errors\n [u'You have exceeded your rate limit. Try again later or contact us at http://developer.nrel.gov/contact for assistance']\n\n\nAll parameters feeded to make the request are validated, all validations follow the restrictions documented in NREL v5 API docs at . All validation errors will be raised with *pypvwatts.pvwattserror.PVWattsValidationError* exception.\n\npypvwatts does not try to hide the fact is a thin wrapper around requests library so all other service errors such as connectivity or timeouts are raised as requests library exceptions .\n\n\nTests\n-----\n\nSimple tests are provided in test.py. Run them with:\n\n $ python -m unittest pypvwatts.test\n\nOr the preferred way, testing Python 2.7 and Python 3.6 together using tox (you need to install it):\n \n $ tox\n\nChangelog\n---------\n\n2.1.0 - Add Python 3 support while maintaining Python 2 backwards compatibility\n\n2.0.3 - Fix pip install under OSX\n\n2.0.2 - Make all requests using HTTPS\n\n2.0.1 - Minor updates to README\n\n2.0.0 - Version is now compatible with PVWatts v5. 2.0.0 is not backwards compatible with 1.2.0. Attributes of the API have changed.\n\n1.2.0 - Fixed proxy handling, now using proxies parameter.\n\n1.1.1 - Updated copyright notice\n\n1.1.0 - Minor import fix and README update\n\n1.0.0 - First release\n\nAuthor: Miguel Paolino , Hannes Hapke - Copyright \n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/mpaolino/pypvwatts/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mpaolino/pypvwatts", "keywords": "nrel pvwatts pypvwatts", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypvwatts", "package_url": "https://pypi.org/project/pypvwatts/", "platform": "", "project_url": "https://pypi.org/project/pypvwatts/", "project_urls": { "Download": "https://github.com/mpaolino/pypvwatts/archive/master.zip", "Homepage": "https://github.com/mpaolino/pypvwatts" }, "release_url": "https://pypi.org/project/pypvwatts/2.1.0/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for NREL PVWatts's API.", "version": "2.1.0" }, "last_serial": 3610753, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "34c449639dc81a754cb4d0a04546bc04", "sha256": "a658c0767d849ebf29ce4b0a4fd50549c5ad42c559163c871bb159286babec18" }, "downloads": -1, "filename": "pypvwatts-1.0.0.tar.gz", "has_sig": false, "md5_digest": "34c449639dc81a754cb4d0a04546bc04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6162, "upload_time": "2014-01-31T14:28:36", "url": "https://files.pythonhosted.org/packages/cb/b1/64a9cb74f21c46b4dbe248c35201d6b323a7a2ca2047eaa4c0d3086cf4b5/pypvwatts-1.0.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "033f40f5a7ba774c4137b35648e04d3e", "sha256": "1445152d081e5edfa18870cfeebe491bf060fa26c2ad28982dc691123dc3efe6" }, "downloads": -1, "filename": "pypvwatts-1.1.1.tar.gz", "has_sig": false, "md5_digest": "033f40f5a7ba774c4137b35648e04d3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6453, "upload_time": "2014-05-23T14:24:31", "url": "https://files.pythonhosted.org/packages/4b/7a/45b1d03c2a71d75e928a0e1dfb338b66449b6608c3bb9ce2f086afcce21f/pypvwatts-1.1.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "801371ece3a243086a525ba711ecff85", "sha256": "699b688c00a30953407f6850acbada17adb6fde3909941fadd2b700024273e82" }, "downloads": -1, "filename": "pypvwatts-2.0.0.tar.gz", "has_sig": false, "md5_digest": "801371ece3a243086a525ba711ecff85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7583, "upload_time": "2015-01-11T17:37:19", "url": "https://files.pythonhosted.org/packages/35/c3/0a47093acef14318f44dd667480eff7a69eeccae22be1202596ee7528f11/pypvwatts-2.0.0.tar.gz" } ], "2.0.1": [], "2.0.2": [ { "comment_text": "", "digests": { "md5": "c4fa4d831abe4dfdad02a029c9fb058f", "sha256": "9443d76454ac2af940a044c47452ad10bb5a14572de0aff804802b1e7833e3b7" }, "downloads": -1, "filename": "pypvwatts-2.0.2.tar.gz", "has_sig": false, "md5_digest": "c4fa4d831abe4dfdad02a029c9fb058f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6821, "upload_time": "2017-05-23T21:37:55", "url": "https://files.pythonhosted.org/packages/80/22/1102f0863ebe2e3d14d8fe2c2499b7df940549537755b7514995e95ee5df/pypvwatts-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "aa638b924446979cefc04e72ab787f57", "sha256": "3ca4cc3593ad120bd6a2c006e10d0bacbbb570c96c10548b083830c61dae8b29" }, "downloads": -1, "filename": "pypvwatts-2.0.3.tar.gz", "has_sig": false, "md5_digest": "aa638b924446979cefc04e72ab787f57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6834, "upload_time": "2017-08-30T13:15:15", "url": "https://files.pythonhosted.org/packages/c0/c6/210099db7779edcf329cc3993ab17f6ee154813e92430c7202d4e48bda63/pypvwatts-2.0.3.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "f3827b1de494bb0a54ec3ca0197852f2", "sha256": "fa6e683cb4a842e78f3c1bf4071acb158add8ad32d5f7064df585d72c99aa689" }, "downloads": -1, "filename": "pypvwatts-2.1.0.tar.gz", "has_sig": false, "md5_digest": "f3827b1de494bb0a54ec3ca0197852f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6983, "upload_time": "2018-02-23T23:06:55", "url": "https://files.pythonhosted.org/packages/59/cc/ad4c2ac0344e5b2c5d454c406eb96bc1da382ce3ba5062a783cf66e6fece/pypvwatts-2.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f3827b1de494bb0a54ec3ca0197852f2", "sha256": "fa6e683cb4a842e78f3c1bf4071acb158add8ad32d5f7064df585d72c99aa689" }, "downloads": -1, "filename": "pypvwatts-2.1.0.tar.gz", "has_sig": false, "md5_digest": "f3827b1de494bb0a54ec3ca0197852f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6983, "upload_time": "2018-02-23T23:06:55", "url": "https://files.pythonhosted.org/packages/59/cc/ad4c2ac0344e5b2c5d454c406eb96bc1da382ce3ba5062a783cf66e6fece/pypvwatts-2.1.0.tar.gz" } ] }