Skip to content

Releases: crdbrd/python-brreg

v1.1.0

18 Aug 09:33
Compare
Choose a tag to compare

Changes

  • Add python-brreg to User-Agent header. (Fixes: #21, PR: #59)
  • Test on Python 3.13 release candidate. No changes were required, so earlier versions should also work on Python 3.13. (#60)
  • Upgrade development dependencies.

v1.0.0

29 Jan 22:29
Compare
Choose a tag to compare

With this release, all the features listed as "planned" in the readme have been implemented and the roughest corners of the API have been made more ergonomic.

If you need any of the other APIs available from Brønnøysundregistrene, please create an issue and explain your use case.

Breaking changes

  • Client.search_enhet() and Client.search_underenhet() now return a Cursor object to help iterate over a paginated search result. (#16)

Features

  • Search results are now a lot easier to iterate over. See the quickstart guide for examples. (#16)

Changes

  • Upgrade development dependencies (#17)
  • Increase test coverage to 100% (#18)

v1.0.0b3

11 Jan 10:01
Compare
Choose a tag to compare

Fixes

  • Strip spaces from organisasjonsnummer before sending the request to Brreg.

v1.0.0b2

24 Dec 13:06
Compare
Choose a tag to compare

Fixes

  • Fix validation error on empty search response

v1.0.0b1

21 Dec 14:36
Compare
Choose a tag to compare

With this beta release, all the features listed as "planned" in the readme have been implemented. The API is quite low-level but functional. In future releases, more ergonomic APIs might be added on top of this foundation.

If you have a need for any of the other APIs available from Brønnøysundregistrene, please create an issue and explain your use case.

Features

  • Get the roles for a given "enhet". (#15)

v1.0.0a4

14 Dec 01:20
Compare
Choose a tag to compare

Fixes

  • Allow page number in search query to be 0.

v1.0.0a3

14 Dec 01:02
Compare
Choose a tag to compare

Breaking changes

  • Renamed InstitusjonellSektorkode model to InstitusjonellSektor.
  • Renamed Naeringskode model to Naering.

Features

  • Search for "enhet" and "underenhet" by any parameter supported by the API. (#14)

v1.0.0a2

16 Nov 02:06
Compare
Choose a tag to compare

This project was originally developed in 2019 while I worked at Otovo. Eventually, it was never used there. More than four years later, I once again have the project under my control and have started improving the library with a goal of getting a v1.0 release out soon.

However, I will not attempt to make the project cover all parts of Brønnøysundregisterene's API. I am open to requests, so that time is spent on the parts of the API that there is an actual demand for.

Breaking changes

  • Switch HTTP library from requests to httpx (#8)
  • Switch data model library from attrs to pydantic (#9)
  • Switch Brreg's API from v1 to v2 (#10)

Features

  • Add lookup of "underenhet" by organization number (#11)

Changes

  • Modernized project tooling (#5)

v1.0.0a1 (2019-01-07)

15 Nov 22:44
Compare
Choose a tag to compare

Initial alpha release. No guarantees about backwards compatibility.

Supports lookup of organizations ("enheter") by organization number from Enhetsregisteret.