GlucoLog - GlucoLog Back-up Database Explorer
Disclaimer
Disclaimer: Paul D.Smith has not connection to Menarini Diagnostics UK and they are not responsible for this application in any way.
Installation and Usage
Install this tool using Python pip:
$ pip install glucolog
The command line options for the tool are:
$ glucolog --help
usage: glucolog [-h] [-v] [-d] [-l LOGFILE] [-x {en,it}] database {list-tables,list-columns,export-table,dump-db} ...
Tool to extract information from a GlucoLog back-up database
positional arguments:
database name of the GlucoLog backup database
{list-tables,list-columns,export-table,dump-db}
optional arguments:
-h, --help show this help message and exit
Common options:
Options which apply to all commands
-v, --verbose make the program more verbose
-d, --debug add debugging information to the log file
-l LOGFILE, --logfile LOGFILE
specify log file name
-x {en,it}, --xlat {en,it}
language to translate to
Each command has additional options e.g.
$ glucolog database_backup.dbglu list-columns --help
usage: glucolog database list-columns [-h] -t TABLE
optional arguments:
-h, --help show this help message and exit
-t TABLE, --table TABLE
name of a specific table in the database
Language Translations
The database is written in Italian but the ability to translate the table and column names is provided. Language files are provided in a simple YAML format and users are encouraged to contribute additional language files to the project.
Under The Hood
- The GlucoLog database file is a simple SQLite3 database and us read using Python's native SQLite3 package.
- The data is written to a CSV, comma-seperated-values, file using Python's native csv package package.
- The data is written to a Microsoft Excel spreadsheet using the Python openpyxl package.
- All times are represented as UTC (GMT) times and dates are formated using the ISO 8601 format of YYYY-MM-DD which avoids confusion between English and American date representations (e.g. 03-04-2021 the 3rd April or the 4th of March?).