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

Uploaded Source

Built Distribution

utool-2.1.7-py3-none-any.whl (568.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utool-2.1.7.tar.gz
  • Upload date:
  • Size: 532.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for utool-2.1.7.tar.gz
Algorithm Hash digest
SHA256 cfe3a5dd7f45c09c7125adbb02fe623e4d1a319d9dcd98d4030a5a7aa17a89b7
MD5 f917461d55c1ca7bf25a8ff75758bab3
BLAKE2b-256 08d2d31a53d13f638686b2d92378e7f7d306a7ed3c118a2923a4b282a281b5cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utool-2.1.7-py3-none-any.whl
  • Upload date:
  • Size: 568.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for utool-2.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0448946e13a6d61d18fd4d7bfb7b5ae815ebddafdf24c2ea4d0821e913e8ce84
MD5 27ca04ddb062ac18c0df018bf2cc1a90
BLAKE2b-256 33d269bc680cedd2ad87ee229f6aecaef0905291941c7ecd111efac2ef2016c5

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