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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microlib-1.12.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file microlib-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: microlib-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for microlib-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed1ceeecc2488eff485f5ce45c55810b4f03e532b0bcd84fac740cb5aa43eef
MD5 f4cd88d08993b51165cf018cd4e4af90
BLAKE2b-256 6d2dd38327234fba9ea53517e861f77ba5f71a97ef91cc803784377c142dc038

See more details on using hashes here.

Supported by

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