Skip to content

v0.3.0

Choose a tag to compare

@yeongseon yeongseon released this 22 Apr 15:29
· 566 commits to main since this release
b82e7ba

kpubdata 0.3.0 adds three providers (localdata, sgis and seoul), an escape hatch for data.go.kr APIs that are not in the catalogue, a command-line interface and an opt-in response cache. The catalogue grows from 21 datasets to 228.

pip install "kpubdata==0.3.0"

Added

  • localdata provider (지방행정인허가, local business permits) with 195 permit datasets (#136, #138, #155). It reads its own key, KPUBDATA_LOCALDATA_API_KEY (0.4.0 moved it to the shared datago key).
  • sgis provider for administrative boundary GeoJSON: sgis.boundary.sido, sgis.boundary.sigungu and sgis.boundary.emd. It handles SGIS's access-token flow (consumer_key + consumer_secret), caches the token in memory and refreshes it on an auth failure (#150, #151). Note: sgis was not registered in the default Client() until 0.6.0 (#332), so in this release you register it yourself with client.register_provider(...).
  • seoul provider for Seoul Open Data Plaza: seoul.subway_realtime_arrival and seoul.bike_rent_month (#149).
  • datago.generic, a raw escape hatch for data.go.kr APIs that are not in the catalogue. It returns the decoded response as-is, with no normalisation, pagination or schema, and list() on it raises InvalidRequestError (#133).
  • Six more datago datasets: four TourAPI 4 datasets (tour_kor_area, tour_kor_festival, tour_kor_keyword, tour_kor_location) plus metro_fare and metro_path (#134).
  • kpubdata command-line interface: datasets list, datasets show, fetch (with --all and --output) and raw (#145).
  • Opt-in disk response cache: Client(cache=True, cache_ttl_seconds=...). It is off by default, and the TTL defaults to 24 hours (#144).
  • Structured logging across modules, including debug logs on adapter and transport failure paths (#131, #142).

Fixed

  • datago.bus_arrival moved to the v2 endpoint and understands its msgHeader/msgBody envelope (#146, #147).

For contributors

Live integration tests no longer break when their hard-coded dates expire, and SUPPORTED_DATA.md marks more datago datasets as live-verified (#141, #143, #148).

Full changelog: v0.2.3...v0.3.0