OpenPlantbook provides access to the OpenPlantbook API
Project description
OpenPlantbook
Open Plantbook is a free service to access plant data. Anyone can use information from the database for any purpose without limitations.
Requrements
In order to use this API you need to login to Open Plantbook web UI at https://open.plantbook.io and generate API credentials. The credentials are client_id and client_secret. API authentication implements OAuth2 standard Client Credentials Grant flow.
Usage
The library is written with async functions.
import asyncio
from pyopenplantbook import OpenPlantBookApi
client_id = "xxxx"
secret = "yyyy"
api = OpenPlantBookApi(client_id=client_id, secret=secret)
async def get_plant(species):
plant = await api.get_plantbook_data(species=species)
return plant
def main():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
result = loop.run_until_complete(get_plant("coleus 'marble'"))
print(result)
main()
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 pyopenplantbook-0.0.4.tar.gz.
File metadata
- Download URL: pyopenplantbook-0.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25182959a0566ca3e2528802b8e8ca09e652de7de46c15206b4e8510a16cde57
|
|
| MD5 |
f31334d8c08c02caf698b14665fe32ec
|
|
| BLAKE2b-256 |
80eb5436f5851f9153558c0bbbf0e882d0eebdfb21035e62447d808a24f94a16
|
File details
Details for the file pyopenplantbook-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pyopenplantbook-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca54a6dce151567afa95164464f68e73cd0c84c09f57bd9e1ffa9fe356eb151c
|
|
| MD5 |
d4d7bede0a52b8dd07fde9555b0f8930
|
|
| BLAKE2b-256 |
50f5ff6eaff7ee2d4b4f2d4b8de952a5bc2b59877b2eb5be7a4d9f249cc98b62
|