summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/contourusb.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update typing to PEP 585 style.Diego Elio Pettenò2023-08-031-2/+3
| | | | | This replaces the usage of generics from `typing` with built-in or from `collections.abc` since Python 3.9 is the minimum supported version.
* Add missing SPDX-FileCopyrightText throughout the project.Diego Elio Pettenò2020-03-271-0/+1
| | | | This is following the advice provided in https://matija.suklje.name/how-and-why-to-properly-write-copyright-statements-in-your-code
* The big typing cleanup.Diego Elio Pettenò2020-03-271-10/+11
| | | | | | | | Now that Python 3.7 is the minimum Python version, typing can be done inline, which makes it easier for mypy to know the files to check. Indeed, all the files are now typechecked, which uncovered a few minor bugs and mistakes here and there.
* Make HID support a "session" class rather than a base class.Diego Elio Pettenò2020-03-221-4/+4
| | | | | | This in turn allows wrapping the FreeStyle access in its own session class, which the freestyle_hid_console can use without dirty tricks, and without triggering the now-abstract class.
* format code with blackBen2020-03-081-19/+20
|
* factor out common driver methodsBen2020-02-181-8/+11
|
* Add driver implementation for Ascensia ContourUSB.Arvanitis Christos2019-09-251-0/+81
Implemented based on the protocol documentation provide by Ascensia, with portions from glucodump by @sm6xmm (relicensed by the author under MIT license.) Squashed from pull request #62. Signed-off-by: Anders Hammarquist <iko@iko.pp.se> Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>