Skip to main content

A "utility belt" of commonly needed utility and helper functions

Project description

UBelt is a “utility belt” of commonly needed utility and helper functions. It is a migration of the most useful parts of utool (https://github.com/Erotemic/utool) into a minimal and standalone module.

The utool library contains a number of useful utility functions, however a number of these are too specific or not well documented. The goal of this migration is to slowly port over the most re-usable parts of utool into a stable package.

The doctest harness in utool was ported and rewritten in a new module called: [xdoctest](https://github.com/Erotemic/xdoctest), which integrates with pytest as a plugin. All of the doctests in ubelt are run using xdoctest.

A small subset of the static-analysis and code introspection tools in xdoctest are made visible through ubelt.

In addition to utility functions utool also contains a feature for auto-generating __init__.py files. See ubelt/__init__.py for an example.

UBelt is cross platform and all top-level functions behave similarly on Windows, Mac, and Linux (up to some small unavoidable differences). Every function in ubelt is written with a doctest, which provides helpful documentation and example usage as well as helping achieve 100% test coverage.

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

ubelt-0.0.44-py2.py3-none-any.whl (84.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ubelt-0.0.44-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ubelt-0.0.44-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b4cf6de232ac5890f9733392688958e51662120f96adc47439408782bbea92fc
MD5 26443c98edd2a119851281a9ffa6da36
BLAKE2b-256 581d00fab1244d9216ce766760cdb8e91dafdb44e686453901f82024168af5c3

See more details on using hashes here.

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