Skip to main content

Collection of various useful tools.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microlib-1.9.3.tar.gz (26.0 kB view hashes)

Uploaded Source

Built Distribution

microlib-1.9.3-py3-none-any.whl (32.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page