Repository navigation
v0.3.0
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
localdataprovider (지방행정인허가, 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).sgisprovider for administrative boundary GeoJSON:sgis.boundary.sido,sgis.boundary.sigunguandsgis.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 defaultClient()until 0.6.0 (#332), so in this release you register it yourself withclient.register_provider(...).seoulprovider for Seoul Open Data Plaza:seoul.subway_realtime_arrivalandseoul.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, andlist()on it raisesInvalidRequestError(#133).- Six more datago datasets: four TourAPI 4 datasets (
tour_kor_area,tour_kor_festival,tour_kor_keyword,tour_kor_location) plusmetro_fareandmetro_path(#134). kpubdatacommand-line interface:datasets list,datasets show,fetch(with--alland--output) andraw(#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_arrivalmoved to the v2 endpoint and understands itsmsgHeader/msgBodyenvelope (#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