a collection of miscellaneous python utilities
Project description
muutils
, stylized as "$\mu$utils" or "μutils", is a collection of miscellaneous python utilities, meant to be small and with no dependencies outside of standard python.
json_serialize
is a tool for serializing and loading arbitrary python objects into jsonstatcounter
is an extension ofcollections.Counter
that provides "smart" computation of stats (mean, variance, median, other percentiles) from the counter object without usingCounter.elements()
group_equiv
groups elements from a sequence according to a given equivalence relation, without assuming that the equivalence relation obeys the transitive propertylogger
implements a logger with "streams" and a timer context managerjsonlines
extremely simple utility for reading/writingjsonl
files
There are a couple work-in-progress utilities in _wip
that aren't ready for anything, but nothing in this repo is suitable for production. Use at your own risk!
installation
pip install muutils
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
muutils-0.1.4-py3-none-any.whl
(30.0 kB
view hashes)