Client who serves routes from the Barcelona Rainfall API.
Project description
bcn-rainfall-api-client
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bcn_rainfall_api_client-1.0.0.tar.gz.
File metadata
- Download URL: bcn_rainfall_api_client-1.0.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98df7ecdf6fbd12352227ad6d689275d3d31a008910eb3c8ffb86e1d32a730fe
|
|
| MD5 |
5b26f7fd91a29908f6c9d860f24c3818
|
|
| BLAKE2b-256 |
6ea0f277d842d06aeadc872ed85ffc93747b657a3f943426820483ea44921fca
|
File details
Details for the file bcn_rainfall_api_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bcn_rainfall_api_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c03b7a04fa65f22ae08138b492144759ea20918458261d8ae244f49140afc3c7
|
|
| MD5 |
384dae1ed6110133075fd5120c3512be
|
|
| BLAKE2b-256 |
e80b522faf636320b10167ba8e72a2307b932f1f2089754348f106497cf91f81
|