Metadata-Version: 2.1
Name: microlib
Version: 1.9.1
Summary: Collection of various useful tools.
Home-page: https://gitlab.com/nicolas.hainaux/microlib
License: GPL-3.0-or-later
Author: Nicolas Hainaux
Author-email: nh.techn@posteo.net
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: BSD :: FreeBSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Dist: blessed (>=1.18.1,<2.0.0)
Requires-Dist: click (>=8.0.1,<9.0.0)
Requires-Dist: importlib-metadata (>=3.1,<4.0); python_full_version >= "3.7.0" and python_full_version < "3.8.0"
Requires-Dist: intspan (>=1.6.1,<2.0.0)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Project-URL: Repository, https://gitlab.com/nicolas.hainaux/microlib
Description-Content-Type: text/x-rst

|coveralls|

License
=======
Microlib is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. See LICENSE file.

Microlib also includes third party open source software components: the Deprecated class. It has its own license. Please see ./microlib/deprecation.py

Overview
========

Microlib contains some useful functions or classes:

- XDict is a dict with recursive_update() and flat() methods,
- StandardConfigFile helps to manage user config files,
- terminal.ask_yes_no() and terminal.ask_user_choice() to ask questions to the user for cli tools,
- terminal.tabulate() is a very simple function to display tabulated data in the terminal,
- terminal.echo_info() echo_warning() and echo_error() display info, warning and error messages with some color.
- rotate() and grouper() help to handle iterators.
- database offers a ContextManager for sqlite3 database, an Operator and a Ts_Operator classes to provide shortcuts for common sqlite3 commands.
- a Deprecated class, that provides a decorator to deprecate functions (emit a warning when it is called).

`Source code <https://gitlab.com/nicolas.hainaux/microlib>`__

.. |coveralls| image:: https://coveralls.io/repos/gitlab/nicolas.hainaux/microlib/badge.svg?branch=master
  :target: https://coveralls.io/gitlab/nicolas.hainaux/microlib?branch=master

