Repository navigation
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_addresstakes a free-text address string, e.g.'Москва, ул Красного Маяка, д 22, к 2, кв 187', and returns up to 100 objects, including near matches.AddressWrapperwas removed.macro_regions,macro_regions_to_regions,get_region_typesandget_objects_by_rightwere removed; lk.rosreestr.ru has no equivalent.get_objectmoved toNSPDAPIClient.
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_coordinatesand the newget_objectreturn nspd's GeoJSON, with geometry in EPSG:3857.- The
toleranceargument was removed, and the cadastral id lookups no longer takelimit. - 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 emptyfeatureslist.
Python 3.7 is no longer supported (requests>=2.32.3 requires 3.8+).
Other changes
- The wheel no longer installs a top-level
testspackage. - The licence file is now included in the source distribution.
fake-useragentis no longer pinned to 1.5.0.- The README is shown on PyPI.
Full changelog: v1.0.0...v2.0.0