Skip to main content

Useful utilities and the kitchen sink

Project description

Pypi Downloads Codecov Travis Appveyor


Notice: This is a “kitchen sink” library. While it is still somewhat maintained, I am trying to “end-of-life” it as soon as possible. I have refactored it into several other projects. Please see for a well-maintained curated collection of utilities. Also see for ports of the more developer-y functions in this libray.

Useful Utility Tools For You!

The utool library is a collection of tools that I’ve found useful. I’ve written most of them from scratch, but there are a few I’ve taken or partially taken from StackOverflow. References are given in most locations.

In my experience the most useful functions in this library are:

  • ut.flatten
  • ut.take
  • ut.take_column
  • ut.compress
  • ut.ichunks
  • ut.itertwo
  • ut.isiterable
  • ut.group_items
  • ut.dict_subset
  • ut.dict_hist
  • ut.map_dict_vals
  • ut.map_dict_keys
  • ut.memoize
  • ut.get_argflag
  • ut.get_argval
  • ut.ProgIter
  • ut.Timer
  • ut.Timerit
  • ut.MemoryTracker
  • ut.InteractiveIter
  • ut.color_print
  • ut.ensuredir
  • ut.glob
  • ut.grep
  • ut.sed
  • ut.repr2

Warning: This module does contain personalized functions that help glue together my projects. Over time these will be removed. While many of the functions in this repo are mature, the repo itself is a work in progress. Some functions may be broken, deprecated, unfinished, or undocumented. Thus, some APIs may refactored or removed in the future.


Installation can now be done via pypi

pip install utool

If the pypi release is currently broken. Installing utool can be done via pip and github. Generally the next branch has the latest and greatest.

pip install git+

Utool is released under the Apache License Version 2.0

Project details

Download files

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

Files for utool, version 2.1.4
Filename, size File type Python version Upload date Hashes
Filename, size utool-2.1.4-py2.py3-none-any.whl (555.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size utool-2.1.4.tar.gz (507.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page