Skip to main content

PVOutput.org API interface

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

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.

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.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pvoutput-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvoutput-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pvoutput-0.0.2.tar.gz
Algorithm Hash digest
SHA256 72409a1d7402e07bc97ab53349eb9ec6dbc64ffc7377cccb75f1d1c824ac388e
MD5 d42dcf1a3a7fb46d8d30d1fab853873b
BLAKE2b-256 ca7a929983428b3a6df52845784fe0cf4d65030839f0a7ceafa74f99d68898d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvoutput-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pvoutput-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 abf60c0f55065d8a81c20f206ef0cb09d88eca627550f814f2751f89865b0fa1
MD5 be48066afebe37aa760c8cc0cd8e0822
BLAKE2b-256 6a7b9000ba4e19cc3b76241dbc9ba0573ea128727f8fa79b424fed2eb2340270

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