Skip to main content

PVOutput.org interface

Project description

pvoutput

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

Get your API key from https://pvoutput.org/account.jsp

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvoutput-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 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.1.tar.gz
Algorithm Hash digest
SHA256 497e4e2f137dc64e41603437142f53f3a2226e3a44d2e1b8e7b39481015e5913
MD5 0a5d74a31458a1b0bb0a95cc1aff0d87
BLAKE2b-256 ccb1be8456b348785b2e34509e26b8d23aa9c3bb81c07d9ec210a47357e50e2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvoutput-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bdc817404c0f9930e403e1abd6608dfe6e2f9db0c814a309f08aca6f1ee8f44
MD5 e83f026fde9e4b86b22f161aac11b869
BLAKE2b-256 540449e73ca3df5731e34f72977d491bf205d945e7a3cf97e842e046f47c5484

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