Open Plantbook SDK for Python
This is an SDK to integrate with Open Plantbook API.
More information about Open Plantbook and documentation can be found here. It requires registration and API credentials which can be generated on Open Plantbook website.
See API documentation for details about returned values by the SDK. Discord for support and questions
Installation
pip install openplantbook-sdk
Import or require module
from openplantbook_sdk import OpenPlantBookApi
Usage
Quick example (async):
import asyncio
from openplantbook_sdk import OpenPlantBookApi
async def main():
api = OpenPlantBookApi("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET")
# Retrieve plant details with optional ISO 639-1 language code
details = await api.async_plant_detail_get("abelia chinensis", lang="de")
print(details["display_pid"])
# Search plants
results = await api.async_plant_search("abelia")
print(results["count"])
asyncio.run(main())
- The
langparameter is optional; pass an ISO 639-1 code like "en", "de", "es" to localize fields when supported by the API.
See demo.py for a more complete walkthrough.
License
MIT
Release files for openplantbook-sdk 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openplantbook_sdk-0.6.1.tar.gz | 22.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openplantbook_sdk-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / openplantbook_sdk-0.6.1.tar.gz
| Download URL | openplantbook_sdk-0.6.1.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
388f18f75480de420e267a9d462eed294802d139d6e165101920232fd26406de
|
|
BLAKE2b-256 checksum How to use checksums |
3a22a730a564286075ec622c95091118a7c71edbc77efe3599a7087218c8be90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / openplantbook_sdk-0.6.1-py3-none-any.whl
| Download URL | openplantbook_sdk-0.6.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
584c3c80d87251f2b25b233c6339c1f0afb5f42f80576e971ac4352cc9ddcf31
|
|
BLAKE2b-256 checksum How to use checksums |
a87dab72439d60fb05d673ef02f4a976bcea1d45ad10d18538a2223d8a4a28df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|