Skip to main content

PVOutput.org API interface

Reason this release was yanked:

should have been 0.0.6

Project description

pvoutput

PVOutput.org python API module. Works with the R2 API version spec here.

Get your API key from the account page on PVOutput

travis-ci build status

Example usage

> from pvoutput import PVOutput
> import json
> apikey = 'aaaaaabbbbbbccccccddddddeeeeeeffffffgggg'
> systemid = 12345
> pvo = PVOutput(apikey=apikey, systemid=systemid)
> print(json.dumps(pvo.check_rate_limit(), indent=2))
{
"X-Rate-Limit-Remaining": "271",
"X-Rate-Limit-Limit": "300",
"X-Rate-Limit-Reset": "1570597200"
}

Installing

Prod-ish usage

Eventually, pip install pvoutput should do it. In the interim, for prod just grab the pvoutput directory and include it.

  • pipenv install -r requirements.txt or
  • pip install -r requirements.txt

Dev

Either:

  • pipenv install -r requirements-dev.txt or
  • pip install -r requirements-dev.txt

Testing

I'm using pytest as best I can. pipenv install --dev; pipenv run pytest should do it.

License

MIT License (see LICENSE), don't use this for anything you care about - I don't provide a warranty at all, and it'll likely steal your socks and underfeed your dog.

Changelog

  • 0.0.1 Initial version
  • 0.0.2 2019-10-12 Fixed some bugs
  • 0.0.3 2019-10-13 Added PVOutput.getstatus() which returns the current status as a dict
  • 0.0.4 2019-11-05 Code cleanup using sonarqube, added an error check for registernotification

Project details


Download files

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

Source Distribution

pvoutput-0.0.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

pvoutput-0.0.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pvoutput-0.0.5.tar.gz.

File metadata

  • Download URL: pvoutput-0.0.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pvoutput-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f6b5686eef78870475567c75b47a422b053bac00f8bbbc87a64e58a90c569e84
MD5 06fb01b28f30f1d910d0fa75223cb9de
BLAKE2b-256 db81bb6489863791b70e09d68689d191f31ac95496a48312ba79d2e967087d2f

See more details on using hashes here.

File details

Details for the file pvoutput-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pvoutput-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pvoutput-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3d19a546c517d3b226d598b5185b56ee5ef24d968a5fca8504d70d95fa8c755b
MD5 0b7dd95cd49c317fd68437d38b740ffe
BLAKE2b-256 a654a9611ef3bc876d19a6f4881b2a2cde0ef910502f626347d848c49d4c1f38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page