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.

pip install git+https://github.com/Erotemic/utool.git@master

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

Uploaded Source

Built Distribution

utool-2.1.5-py3-none-any.whl (557.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utool-2.1.5.tar.gz
  • Upload date:
  • Size: 517.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for utool-2.1.5.tar.gz
Algorithm Hash digest
SHA256 3ac998358701355c5660db6c068d4639c3775cda324cae1ba465ae6fa41ef10d
MD5 39baac4a3462fe8e8cf1bf8d03ec82dc
BLAKE2b-256 1d0522fa0b63e70c9c146d7670b3a315e3745a7ad70925eaaaf6e766c8f148df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utool-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 557.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for utool-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7586630ec027445690dcab38d3644882c1a14850bcf3d1849292af71aa41ecaf
MD5 48bc4aedb9123c22aa15264faeaaaaf1
BLAKE2b-256 3b88a561f0f09744f0afe779622d5ee270096dc74983b579d60789a1857912b1

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