Skip to main content

Useful utilities and the kitchen sink

Project description

Pypi Downloads Codecov GithubActions

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.

This project is only maintained for the benefit of https://github.com/Erotemic/ibeis and is being phased whenever possible.


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

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.2.1.tar.gz (533.3 kB view details)

Uploaded Source

Built Distribution

utool-2.2.1-py3-none-any.whl (561.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utool-2.2.1.tar.gz
  • Upload date:
  • Size: 533.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for utool-2.2.1.tar.gz
Algorithm Hash digest
SHA256 816074cd3dfde37512a1e4993b4f7587b434eea07ddda001f167af28575209bb
MD5 01ffecc2445a457db7e47d1e077add3d
BLAKE2b-256 743c4a79bda4270a218341bb4f269a1e9d7b1f28c9919c74451203b35909b668

See more details on using hashes here.

File details

Details for the file utool-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: utool-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 561.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for utool-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a42a95e28f4a1e982f309927c29effd25c37f9585e13af5e8d0d8f271411fa
MD5 236e0add9516bb75c611055a6ac23f9e
BLAKE2b-256 3ad2fc3757032f63eb8a1929a55ee783268361c07902e185356b5156b1f0ea96

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