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 minimal 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
filesZANJ
is a WIP hdf5 alternative. This will probably be spun off into its own repo
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 Distribution
muutils-0.2.1.tar.gz
(58.0 kB
view hashes)
Built Distribution
muutils-0.2.1-py3-none-any.whl
(69.2 kB
view hashes)