Skip to main content

Spora Python SDK

Official Python client for the Spora agronomic intelligence API.

Installation

pip install spora-sdk

Quick start

from spora import Spora

client = Spora(api_key="spk_live_your_key_here")

# Search species
species = client.search_species("Rosa", limit=5)

# Get crop requirements
crop = client.get_crop("solanum_lycopersicum")
print(crop["temp_optimal_min"], crop["temp_optimal_max"])

# AI question (paid key)
answer = client.ask(
    "When should I irrigate my tomatoes?",
    crop="solanum_lycopersicum",
    lat=45.4, lon=11.0,
    tone="concise",
)
print(answer["response"])

# Batch
results = client.batch([
    ("weather",      {"lat": 45.4, "lon": 11.0, "days": 3}),
    ("should_water", {"lat": 45.4, "lon": 11.0, "crop": "vitis_vinifera"}),
])

Error handling

from spora import Spora, SporaError

client = Spora(api_key="spk_live_your_key_here")

try:
    result = client.ask("Best cover crop for clay soil?")
except SporaError as e:
    print(e.status, e.error)

print(client.rate_limit.remaining, "/", client.rate_limit.limit)

Metadata

Release files for spora-sdk 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spora-sdk 2.0.0
File Size Uploaded Provenance Actions
spora_sdk-2.0.0.tar.gz 4.8 kB Without provenance Details for spora_sdk-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spora-sdk 2.0.0
File Interpreter ABI Platform Actions
spora_sdk-2.0.0-py3-none-any.whl Python 3 none any Details for spora_sdk-2.0.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / spora_sdk-2.0.0.tar.gz

Download URL spora_sdk-2.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0dfcc498d4bccbd8c8060170f23fb5a533c1dbe9a2798c6c0005280294a74686
BLAKE2b-256 checksum
How to use checksums
e8761979d455e54edbeafcd8099abe4011d857a49a6ca76cb091c33ed3a3e492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / spora_sdk-2.0.0-py3-none-any.whl

Download URL spora_sdk-2.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
582eb8263095d50051e620b2665e315285f094bac3318ccb1c3cbd927c61395f
BLAKE2b-256 checksum
How to use checksums
055b65a67e11a78e85deb6a5a72d2759b36b04a9c36704c555c0750d905e5117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for spora-sdk 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page