atmospore — async Python client
Async client for the Atmospore pollen forecast API. Species-level pollen forecasts for any point on Earth.
pip install atmospore
Usage
Get a free API key at atmospore.com/account (100 calls/day, no credit card required).
import asyncio
from atmospore import AtmosporeClient
async def main():
async with AtmosporeClient(api_key="ak_...") as client:
# Point forecast
days = await client.pollen(lat=59.91, lon=10.75, forecast_days=7)
for day in days:
print(day.date, day.overall_risk)
# Top contributing species today
top = await client.pollen_top(lat=59.91, lon=10.75, limit=5)
for s in top:
print(s.species, s.max_value, s.units, s.risk_level)
# Area aggregate (avg/min/max over a radius)
area = await client.pollen_area(
lat=59.91, lon=10.75, radius_km=25, forecast_days=7,
species=["tree_tot", "grass_tot", "weed_tot"],
)
# Species metadata (no auth required)
species = await client.species()
asyncio.run(main())
API surface
| Method | Endpoint | Returns |
|---|---|---|
client.pollen(lat, lon, dt?, forecast_days=1) |
/v1/pollen |
list[DailyPollen] |
client.pollen_top(lat, lon, dt?, forecast_days=1, limit?) |
/v1/pollen-top |
list[TopSpecies] |
client.pollen_area(lat, lon, radius_km=25, dt?, forecast_days=1, species?) |
/v1/pollen-area |
list[DailyPollen] |
client.species() |
/v1/species |
list[SpeciesMetadata] (no auth) |
Errors
from atmospore import (
AuthenticationError, # 401/403 — bad / missing / revoked key
RateLimitError, # 429 — daily quota exceeded
APIError, # other 4xx / 5xx with status + body
AtmosporeError, # base class
)
RateLimitError carries .limit, .used, .resets_at for graceful backoff.
Behaviour
- Async-first via
aiohttp. Use asasync with AtmosporeClient(...)or callawait client.close(). - Retries on 5xx with exponential backoff (3 retries by default).
- Risk levels normalised to Title Case (
'Low','Moderate','High','Very High') regardless of how the API serialises them. - Pydantic models for typed access to response data.
Development
git clone https://github.com/atmospore/atmospore-python
cd atmospore-python
pip install -e ".[test]"
pytest
Related
- atmospore-mcp — MCP server for Claude and other AI assistants, built on this client.
- atmospore.com — the hosted forecast and developer dashboard.
License
MIT.
Metadata
Release files for atmospore 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atmospore-0.1.0.tar.gz | 9.7 kB | With provenance | Details for atmospore-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atmospore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for atmospore-0.1.0-py3-none-any.whl |
Total release size: 18.0 kB
Release files / atmospore-0.1.0.tar.gz
| Download URL | atmospore-0.1.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
197f3c8f7381ebee6784bf5021c93d576f97bf64d537d5a30832e20e542777c2
|
|
BLAKE2b-256 checksum How to use checksums |
3819757b6b68f1053ba0b7cfecadfa1471e327b97d5907fb874f47a21d673231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logRelease files / atmospore-0.1.0-py3-none-any.whl
| Download URL | atmospore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8602840bc0d81a58e772ed7cf72329eb0b2ec1c80ddc1c14f162661c14f2c69d
|
|
BLAKE2b-256 checksum How to use checksums |
e331cd4fbb257446d930f9d00fb82b29702b5fe9b019b4a7a81a05f8010c6927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logSecurity for atmospore 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for atmospore-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logA 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.