Metadata-Version: 2.4
Name: gluctool
Version: 0.0.2
Summary: Convert blood glucose levels between mmol/l and mg/dl.
Author-email: marshki <marshall@morethantomorrow.org>
License: The MIT License (MIT)
        
        Copyright (c) 2025 marshki
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Dynamic: license-file

GlucTool :drop_of_blood: :toolbox:
========================================================================================
|travis| |codacy| |maintained| |python| |mit| |open source|

.. |travis| image:: https://app.travis-ci.com/marshki/GlucTool.svg?branch=master
    :target: https://app.travis-ci.com/marshki/GlucTool
    :alt: Travis

.. |codacy| image:: https://api.codacy.com/project/badge/Grade/717665e06c8e41c7b4184ad40682aed4
   :target: https://www.codacy.com/app/marshki/GlucTool?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=marshki/GlucTool&amp;utm_campaign=Badge_Grade
   :alt: Codacy

.. |maintained| image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg
   :target: https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity
   :alt: Maintained

.. |python| image:: https://img.shields.io/badge/Made%20with-Python-1f425f.svg
   :target: https://www.python.org/
   :alt: Python

.. |mit| image:: https://img.shields.io/badge/License-MIT-blue.svg
   :target: https://opensource.org/license/MIT   
   :alt: MIT

.. |open source| image:: https://badges.frapsoft.com/os/v3/open-source.svg?v=103
   :target: https://github.com/ellerbrock/open-source-badges/
   :alt: Open Source

A blood sugar conversion tool
-----------------------------
Python 3 utility for converting plasma glucose ("blood sugar") units_ using argument parsing.

.. _units: https://en.wikipedia.org/wiki/Blood_sugar#Units

Convert:

* milligram per decileter to millimole per liter (mg/dl to mmol/l), or
* millimole per liter to milligram per decileter (mmol/l to mg/dl),

and receive a table of the conversion, e.g:

+------------+------------+
|   mg/dl    |   mmol/l   |
+============+============+
|    70.0000 |     3.8850 |
+------------+------------+
|    71.0000 |     3.9405 |
+------------+------------+
|    72.0000 |     3.9960 |
+------------+------------+
|    73.0000 |     4.0515 |
+------------+------------+
|    74.0000 |     4.1070 |
+------------+------------+

Requirements
------------
None.

Usage
-----
Synopsis:

.. code-block:: Python3
   
    [-h] [--mg-to-mmol MG_TO_MMOL [MG_TO_MMOL ...] | --mmol-to-mg MMOL_TO_MG [MMOL_TO_MG ...]]

Examples
--------
Single conversion:

.. code-block:: Python3

    python3 gluctool.py --mmol-to-mg 4.0515

Multiple conversions:

.. code-block:: Python3

    python3 gluctool.py --mg-to-mmol 7{0..9}

.. _For reference: https://packaging.python.org/en/latest/tutorials/packaging-projects/  

Change Log
----------
CHANGELOG_

.. _CHANGELOG: https://github.com/marshki/blood_glucose_conversion/blob/master/CHANGELOG.rst

License
-------
LICENSE_

.. _LICENSE: https://github.com/marshki/blood_glucose_conversion/blob/master/LICENSE.txt
