Skip to main content

Client who serves routes from the Barcelona Rainfall API.

Project description

bcn-rainfall-api-client

License: MIT Ruff uv mypy

Client who serves routes from the Barcelona Rainfall API; it is recommended to use it to retrieve rainfall data instead of directly calling the API code.

Usage

from client import APIClient
from client.utils import APIClientSettings

# With configuration in `config.yml`
api_clt = APIClient.from_config()

# With your own configuration
api_clt_with_cfg = APIClient.from_config(
    config_=APIClientSettings(host="localhost", port=8080, root_path="/api")
)

# Have fun with client!
data = api_clt.get_rainfall_average(time_mode="yearly", begin_year=1991, end_year=2020)
print(data)
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bcn_rainfall_api_client-1.0.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bcn_rainfall_api_client-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file bcn_rainfall_api_client-1.0.0.tar.gz.

File metadata

File hashes

Hashes for bcn_rainfall_api_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 98df7ecdf6fbd12352227ad6d689275d3d31a008910eb3c8ffb86e1d32a730fe
MD5 5b26f7fd91a29908f6c9d860f24c3818
BLAKE2b-256 6ea0f277d842d06aeadc872ed85ffc93747b657a3f943426820483ea44921fca

See more details on using hashes here.

File details

Details for the file bcn_rainfall_api_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bcn_rainfall_api_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c03b7a04fa65f22ae08138b492144759ea20918458261d8ae244f49140afc3c7
MD5 384dae1ed6110133075fd5120c3512be
BLAKE2b-256 e80b522faf636320b10167ba8e72a2307b932f1f2089754348f106497cf91f81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page