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()
Metadata
Release files for pyopenplantbook 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyopenplantbook-0.0.4.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyopenplantbook-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / pyopenplantbook-0.0.4.tar.gz
| Download URL | pyopenplantbook-0.0.4.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25182959a0566ca3e2528802b8e8ca09e652de7de46c15206b4e8510a16cde57
|
|
BLAKE2b-256 checksum How to use checksums |
80eb5436f5851f9153558c0bbbf0e882d0eebdfb21035e62447d808a24f94a16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyopenplantbook-0.0.4-py3-none-any.whl
| Download URL | pyopenplantbook-0.0.4-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca54a6dce151567afa95164464f68e73cd0c84c09f57bd9e1ffa9fe356eb151c
|
|
BLAKE2b-256 checksum How to use checksums |
50f5ff6eaff7ee2d4b4f2d4b8de952a5bc2b59877b2eb5be7a4d9f249cc98b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|