eolas-data 1.6.0__tar.gz → 1.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eolas-data
3
- Version: 1.6.0
3
+ Version: 1.7.0
4
4
  Summary: Python client for the eolas.fyi statistical data API (NZ, Australia, OECD)
5
5
  Project-URL: Homepage, https://eolas.fyi
6
6
  Project-URL: Documentation, https://docs.eolas.fyi/
@@ -3,7 +3,7 @@ from .client import Client
3
3
  from .dataset import Dataset
4
4
  from .exceptions import APIError, AuthenticationError, EolasError, NotFoundError, RateLimitError
5
5
 
6
- __version__ = "1.6.0"
6
+ __version__ = "1.7.0"
7
7
 
8
8
  __all__ = [
9
9
  "Client",
@@ -242,6 +242,23 @@ class Client:
242
242
  """
243
243
  return self._get_source(name, "Manaaki Whenua / LRIS", **kwargs)
244
244
 
245
+ def doc(self, name, **kwargs) -> Dataset:
246
+ """Fetch a DOC (Department of Conservation) dataset.
247
+
248
+ Examples::
249
+
250
+ client.doc("doc_public_conservation_land") # ~11k polygons of NZ public conservation land
251
+ client.doc("doc_huts") # 1,429 DOC huts (Point geometry)
252
+ client.doc("doc_tracks") # 3,248 DOC tracks (Polyline)
253
+
254
+ Notes:
255
+ Refreshed weekly from DOC's ArcGIS hub. Operational alert streams
256
+ (track closures, hazard notices) are wired but currently blocked on
257
+ an API key issue; they will appear automatically once resolved.
258
+ CC-BY 4.0 International (Crown / Department of Conservation).
259
+ """
260
+ return self._get_source(name, "DOC", **kwargs)
261
+
245
262
  def _get_source(self, name, source: str, **kwargs) -> Dataset:
246
263
  df = self.get(name, **kwargs)
247
264
  df.eolas_source = source
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "eolas-data"
7
- version = "1.6.0"
7
+ version = "1.7.0"
8
8
  description = "Python client for the eolas.fyi statistical data API (NZ, Australia, OECD)"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
File without changes
File without changes
File without changes
File without changes