
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
This package was build for my own use, please feel free to use it but it may have bugs
This package loads data from the UK Hydrology API. The API provides:
This package currently only provides access to the River Level, Flow, and Rainfall. Data is returned as a polars DataFrame. After the first request of a given dataset, the data is cached for up to a week.
>>> from hydrology import HydrologyApi, Measure
>>> from datetime import datetime
>>> api = HydrologyApi()
>>>
>>> # Get all stations that record the water level along the River Wear in Durham
>>> stations = api.get_stations(Measure.MeasureType.LEVEL, river="River Wear")
>>>
>>> df = api.get_measures(
>>> [
>>> Measure(station_id, Measure.MeasureType.LEVEL) for station_id in stations["station_id"]
>>> ],
>>> stations,
>>> start_date=datetime(2020, 1, 1),
>>> )
>>>
>>> df.head()
shape: (5, 6)
┌────────────────┬────────────────┬────────────────┬───────────────┬───────────────┬───────────────┐
│ timestamp ┆ Durham New ┆ Sunderland ┆ Chester Le ┆ Witton Park ┆ Stanhope │
│ --- ┆ Elvet Bridge ┆ Bridge ┆ Street ┆ level-i-900-m ┆ level-i-900-m │
│ datetime[μs] ┆ level-… ┆ level-i-900-… ┆ level-i-900-… ┆ --- ┆ --- │
│ ┆ --- ┆ --- ┆ --- ┆ f32 ┆ f32 │
│ ┆ f32 ┆ f32 ┆ f32 ┆ ┆ │
╞════════════════╪════════════════╪════════════════╪═══════════════╪═══════════════╪═══════════════╡
│ 2020-01-01 ┆ 0.372 ┆ 0.417 ┆ 0.465 ┆ 0.465 ┆ 0.344 │
│ 00:00:00 ┆ ┆ ┆ ┆ ┆ │
│ 2020-01-01 ┆ 0.379 ┆ 0.418 ┆ 0.465 ┆ 0.465 ┆ 0.344 │
│ 00:15:00 ┆ ┆ ┆ ┆ ┆ │
│ 2020-01-01 ┆ 0.378 ┆ 0.417 ┆ 0.464 ┆ 0.465 ┆ 0.344 │
│ 00:30:00 ┆ ┆ ┆ ┆ ┆ │
│ 2020-01-01 ┆ 0.371 ┆ 0.417 ┆ 0.464 ┆ 0.465 ┆ 0.344 │
│ 00:45:00 ┆ ┆ ┆ ┆ ┆ │
│ 2020-01-01 ┆ 0.367 ┆ 0.417 ┆ 0.467 ┆ 0.465 ┆ 0.344 │
│ 01:00:00 ┆ ┆ ┆ ┆ ┆ │
└────────────────┴────────────────┴────────────────┴───────────────┴───────────────┴───────────────┘
FAQs
Load data from the UK Hydology API
We found that hydrology demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.