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.txtorpip install -r requirements.txt
Dev
Either:
pipenv install -r requirements-dev.txtorpip 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pvoutput-0.0.3.tar.gz.
File metadata
- Download URL: pvoutput-0.0.3.tar.gz
- Upload date:
- Size: 5.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def7cbd3c107764958f071662f0018bdf949a90573769797575bd5b64fc7cc52
|
|
| MD5 |
59232942d003801249453b27956c42c2
|
|
| BLAKE2b-256 |
1fffafc0560a052df02af2ccea3ab1091e32b79259bedc2ba495520813ad67fa
|
File details
Details for the file pvoutput-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pvoutput-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58075e39c2ec3a43f254a149f46dd3e81377cae6df8d4752c672ff077f84901d
|
|
| MD5 |
1689f3fe5619b29f69606cd3c8fae0d4
|
|
| BLAKE2b-256 |
7f6e037621219a7a83f32046e388dd614ef907a904b21a6a4532a565b8c7a9f8
|