Skip to content

v2.0.0

Latest

Choose a tag to compare

@GregEremeev GregEremeev released this 23 Oct 17:35
ee1113c

rosreestr.ru/api and pkk.rosreestr.ru were shut down, so this release moves the library to their replacements: lk.rosreestr.ru and nspd.gov.ru (#8). The public API changed, hence the major version bump.

Breaking changes

RosreestrAPIClient now uses lk.rosreestr.ru:

  • get_objects_by_address takes a free-text address string, e.g. 'Москва, ул Красного Маяка, д 22, к 2, кв 187', and returns up to 100 objects, including near matches. AddressWrapper was removed.
  • macro_regions, macro_regions_to_regions, get_region_types and get_objects_by_right were removed; lk.rosreestr.ru has no equivalent.
  • get_object moved to NSPDAPIClient.

PKKRosreestrAPIClient was renamed to NSPDAPIClient and now uses nspd.gov.ru:

  • get_parcel_by_cadastral_id, get_building_by_cadastral_id, get_parcel_by_coordinates, get_building_by_coordinates and the new get_object return nspd's GeoJSON, with geometry in EPSG:3857.
  • The tolerance argument was removed, and the cadastral id lookups no longer take limit.
  • Failed requests raise requests.HTTPError, including a cadastral id that isn't found (status 404). Before, the error body was returned. A coordinates lookup with nothing there returns an empty features list.

Python 3.7 is no longer supported (requests>=2.32.3 requires 3.8+).

Other changes

  • The wheel no longer installs a top-level tests package.
  • The licence file is now included in the source distribution.
  • fake-useragent is no longer pinned to 1.5.0.
  • The README is shown on PyPI.

Full changelog: v1.0.0...v2.0.0