Skip to main content

Useful utilities and the kitchen sink

Project description

Pypi Downloads Codecov Travis Appveyor

utool

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 https://github.com/Erotemic/ubelt for a well-maintained curated collection of utilities. Also see https://github.com/Erotemic/xdev 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.ls

  • 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.

Documenation

http://erotemic.github.io/utool

Installation

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+https://github.com/Erotemic/utool.git@next

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.

Source Distribution

utool-2.1.4.tar.gz (507.1 kB view details)

Uploaded Source

Built Distribution

utool-2.1.4-py2.py3-none-any.whl (555.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file utool-2.1.4.tar.gz.

File metadata

  • Download URL: utool-2.1.4.tar.gz
  • Upload date:
  • Size: 507.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for utool-2.1.4.tar.gz
Algorithm Hash digest
SHA256 65308849e6a605b4e3c56b9a0b72f71632ba0e803b0d3bbf6e3a6e54a33605e8
MD5 64902186294e1b399cadbf71ed2f63c1
BLAKE2b-256 eaea1d579e22c2dcbeb3da2cc5ae9d635b04a1014eb6edd7d2252d6c96ba9f2b

See more details on using hashes here.

File details

Details for the file utool-2.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: utool-2.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 555.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.15

File hashes

Hashes for utool-2.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5639a3ea1e98e14e1b06561dd8e7e167fc5165a6716122cbba4bd1743841b4e2
MD5 1c666e4b4f75e6ddc1e8f5ed6ec8d1b4
BLAKE2b-256 fab9fa0aacde1c8d42c43215da6481a744b5abb27b2270024a1b6118a3cde3d0

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