Releases: robberwick/pylibrelinkup
v0.7.0
What's Changed
- Update request headers to match upstream requirements by @robberwick in #49
- amend version to
4.12.0
- add
patient-id
header
- amend version to
Full Changelog: v0.6.3...v0.7.0
v0.6.3
What's Changed
- fix: fix mis-indented model definitions by @robberwick in #47
Full Changelog: v0.6.2...v0.6.3
v0.6.2
What's Changed
- Add defaults for pydantic fields by @robberwick in #46
Full Changelog: v0.6.1...v0.6.2
v0.6.1
What's Changed
- chore: Add pre-commit to dev dependencies by @robberwick in #39
- docs: Add read the docs config file by @robberwick in #40
- docs: add sphinx doc configuration file by @robberwick in #41
- Update readthedocs config by @robberwick in #42
- docs: add RTD docs link to readme by @robberwick in #43
- docs: add documentation link to pyproject.toml by @robberwick in #44
Full Changelog: v0.6.0...v0.6.1
v0.6.0
What's Changed
- Add support for logbook endpoint by @robberwick in #35
- ci: Add black linting by @robberwick in #36
- Refactor test fixtures to reduce repetition by @robberwick in #37
- Add Isort to dev dependencies by @robberwick in #38
New Features
- Introduced
graph
,logbook
, andlatest
methods to retrieve patient data, replacing the deprecatedread
method. - Added
authenticated
decorator to ensure methods requiring authentication are properly secured.
Deprecations
- The
read
method has been deprecated and will be removed in a future release. Please seegraph
andlatest
methods for alternatives.
Improvements
- Updated
README.md
to provide detailed instructions on using the new methods for retrieving patient data. - Enhanced development dependencies with
isort
for sorting imports. - Improved code style with the addition of
black
configuration inpyproject.toml
.
Bug Fixes
- Fixed import issues in
__init__.py
andmodels/config.py
. - Corrected issues in
models/connection.py
by updating the response models and fixing import statements.
Testing
- Refactored tests to use a single
get_response_json
fixture for loading JSON test data. - Added new tests for
graph
,latest
, andlogbook
methods to ensure proper functionality.
Full Changelog: v0.5.1...v0.6.0
v0.5.1
What's Changed
- Handle missing
c
property inalarmRules
when reading patient data by @robberwick in #33
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
- Handle the case where the user's email requires verification by @robberwick in #29
- Relax login response validation by @robberwick in #30
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- Fix
ValueError
being thrown when authentication receives a redirect response by @robberwick in #26 - Handle Privacy Policy acceptance response when authenticating by @robberwick in #27
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Breaking Changes:
This release includes a breaking change to the API, in both naming and import behaviour. The Client
class has been
renamed and refactored to PyLibreLinkUp
. All instances of Client
in existing code must be replaced with
PyLibreLinkUp
, and imports should be updated accordingly.
Old way
from pylibrelinkup.client import Client, AuthenticationError
from pylibrelinkup.api_url import APIUrl
from pylibrelinkup.exceptions import TermsOfUseError
New way
from pylibrelinkup import PyLibreLinkUp, APIUrl, AuthenticationError, TermsOfUseError
You can also use wildcard imports to bring in commonly used symbols:
from pylibrelinkup import *
This change was made to simplify the API and make it easier to use. The old way of importing components from submodules
is still supported, but it is recommended to use the new way for better readability and maintainability.
What's Changed
- Refactor API Client Implementation by @robberwick in #19
It is now possible to import the most commonly used symbols directly from the top-level package. You no longer need to
import individual components from submodules. - Update patient model string representation by @robberwick in #21
ThePatient
model now has a more informative string representation that includes the patient's name and UUID. - Add all known region api urls by @robberwick in #23
This change adds all known region API URLs to theAPIUrl
class. You can now access the API URL for all supported regions.
Full Changelog: v0.2.1...v0.3.0
v0.2.1
What's Changed
- docs: Updated README by @robberwick in #17
- pylibrelinkup-16-data.connection.alarmrules.std-can-be-an-empty-dict by @robberwick in #18
Full Changelog: v0.2.0...v0.2.1