Collection of various useful tools.
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file microlib-1.9.3.tar.gz
.
File metadata
- Download URL: microlib-1.9.3.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.13 Linux/5.15.0-78-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9057c5034df1dab2515147cc3faa836ef1639c97c9ba150e3cb86fb10e765bc7 |
|
MD5 | ac5904c8977285986fc36c1a2c0bbc4d |
|
BLAKE2b-256 | 5bd7e037c2b2d4fd96052f87813d932672f7eeec69678996c8a375b9f186a0df |
File details
Details for the file microlib-1.9.3-py3-none-any.whl
.
File metadata
- Download URL: microlib-1.9.3-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.13 Linux/5.15.0-78-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e51524ebaf9f31379357bd7d7bda303499682a27ed38f937cb241af77d02b4 |
|
MD5 | 23661ad6ee1e9d8c1ba2144bca55bd24 |
|
BLAKE2b-256 | d9d1a889890cf30e874986f2df2b1716fa5db0da059aa086ad91afa67743196f |