Code Monkey home page Code Monkey logo

glucolog's Introduction

GlucoLog - GlucoLog Back-up Database Explorer

Build Status

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

  1. The GlucoLog database file is a simple SQLite3 database and us read using Python's native SQLite3 package.
  2. The data is written to a CSV, comma-seperated-values, file using Python's native csv package package.
  3. The data is written to a Microsoft Excel spreadsheet using the Python openpyxl package.
  4. 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?).

glucolog's People

Watchers

 avatar  avatar Phivos Mylonas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.