Skip to main content

Hubeau client to collect data from the different APIs

Project description

cl-hubeau

Simple hub'eau client for python

This package is currently under active development. Every API on Hub'eau will be covered by this package in due time.

Basic examples

Piezometry

3 high level functions are available (and one class for more low level operations).

from cl_hubeau.piezometry import get_all_stations, get_chronicles, get_realtime_chronicles, PiezometrySession


# Get all piezometers (uses a 30 days caching)

gdf = get_all_stations()

# Get chronicles for the first 100 piezometers (uses a 30 days caching)

df = get_chronicles(gdf["code_bss"].head(100).tolist())

# Get realtime data for the first 100 piezometers (no cache stored)

df = get_realtime_chronicles(gdf["code_bss"].head(100).tolist())

# Low level class to perform the same tasks:
# (note that the API is currently forbidding results > 20k rows and you may need inner loops)

with PiezometrySession() as session:
    df = session.get_chronicles(code_bss="07548X0009/F")
    df = session.get_stations(code_departement=['02', '59', '60', '62', '80'], format="geojson")
    df = session.get_chronicles_real_time(code_bss="07548X0009/F")

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

cl_hubeau-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

cl_hubeau-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file cl_hubeau-0.1.1.tar.gz.

File metadata

  • Download URL: cl_hubeau-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1024-azure

File hashes

Hashes for cl_hubeau-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1846907b781804318c8623d18fc5bb88095fadb9d59635303247ce6bebe6c76a
MD5 21e81fc1cfc5a65c128b31efec71a383
BLAKE2b-256 220d29e528589e2d11206b236f06e517d1b095e6fdb6cd93ca1c2122a1daedbd

See more details on using hashes here.

File details

Details for the file cl_hubeau-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cl_hubeau-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1024-azure

File hashes

Hashes for cl_hubeau-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85ecb38e651e29880483152b9019c53d68e664cf821dc32ddaf8fde9b12457e4
MD5 bc53c3bf895e3298449902d64f254c68
BLAKE2b-256 868703758d0f1bc949f777b6ff79bda16cc9093ec5983fbc9103bc4c00d6a326

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