summaryrefslogtreecommitdiffstats
path: root/glucometerutils/glucometer.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When no action is provided by user, print the help output instead.Diego Elio Pettenò2020-04-091-3/+4
| | | | This makes it friendlier to the user who's not sure how to use it.
* Move driver loading to glucometerutils.driver.Diego Elio Pettenò2020-04-091-6/+4
| | | | This allows wrapping around some of the interfaces, and make typing more strict.
* 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
* Bring up command line error as we only support Python 3.7+ now.Diego Elio Pettenò2020-03-271-2/+2
|
* Combine a strangely-separated string.Diego Elio Pettenò2020-03-271-1/+1
|
* Fix errors identified by flake8.Diego Elio Pettenò2020-03-261-1/+1
|
* Now that Python 3.6 is the minimum supported version, use f-strings.Diego Elio Pettenò2020-03-141-8/+4
| | | | | | | | | | | The f-strings formatted strings are generally simpler to write, read and debug, with a few exceptions. Keep the logging strings lazy, keep the CSV-building with %-formatting, as it makes it more readable. In fsoptium, keep `'$%s\r\n'` as a %-format, to avoid making it `f'${command}\r\n'` that would make it easy to mistake for a Shell variable.
* format code with blackBen2020-03-081-61/+97
|
* Drop support for Python 3.4.Diego Elio Pettenò2019-09-021-2/+2
| | | | | | | | Python 3.4 lacks the `typing` module, which requires try/catch when importing, making type annotations more verbose than needed. At the time of writing, Debian oldstable has Python 3.5 available, so it sounds like a good default.
* Get and set the patient name on supported meters.Diego Elio Pettenò2019-07-071-0/+22
| | | | | | This includes the command line extensions to include the get/set patient name, as well as the driver support for all FreeStyle devices with the shared HID protocol, although not all will support this properly.
* Fix syntax error.Diego Elio Pettenò2019-07-011-1/+2
|
* Introduce an explicit InvalidDateTime exception for meters with unset time.Diego Elio Pettenò2019-07-011-3/+3
| | | | | | | | At least the FreeStyle Precision Neo appears to be able to report an invalid date/time (255/255/255 255:255), probably when the RTC is lost (see issue #58). This returns a more precise output than N/A, and should suggest to confirm the date and time setting instead.
* handle device.get_datetime() value error exceptionmatmutant2019-07-011-0/+2
|
* Replace epydoc metadata with SPDX identifiers.Diego Elio Pettenò2019-02-081-5/+2
| | | | | | | | | | Most of the epydoc metadata (author, copyright, email) is duplicate in the package's setup.py or README. These copies are more likely to get out of date, and increase the amount of work to keep them in line. The license information should rather be provided with an SPDX identifier, which is more similar to what the Linux kernel and other projects, such as pyserial, do.
* Replace flameeyes.eu with flameeyes.com.Diego Elio Pettenò2019-02-081-1/+1
| | | | | | | | Due to EURid threatening to suspend my domain, make sure that the references are updated to point at the right stable domain. This includes changes to the files as well as a mailmap to update the author references in the log.
* Fix most of the pylint output, and hide away some that is not needed.Diego Elio Pettenò2018-12-121-27/+30
| | | | Again, this is not ready for CI yet unfortunately :(
* Reindent all files to match the 4-spaces indentation.Diego Elio Pettenò2018-12-121-118/+118
|
* Remove --sort-by flag.Diego Elio Pettenò2018-12-121-9/+1
| | | | | | There's nothing really meaningful beside the timestamp sorting, remove the flag. If for whatever analysis, a different sorting is needed, that should be post-processed from the generated CSV.
* Move the binary script to glucometerutils/ and create a starting shim.Diego Elio Pettenò2017-12-281-0/+147
The shim needs to be renamed, but this makes the history simpler to read.