Skip to main content

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 json
  • statcounter is an extension of collections.Counter that provides "smart" computation of stats (mean, variance, median, other percentiles) from the counter object without using Counter.elements()
  • group_equiv groups elements from a sequence according to a given equivalence relation, without assuming that the equivalence relation obeys the transitive property
  • logger implements a logger with "streams" and a timer context manager
  • jsonlines extremely simple utility for reading/writing jsonl files
  • ZANJ 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


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)

Uploaded Source

Built Distribution

muutils-0.2.1-py3-none-any.whl (69.2 kB view hashes)

Uploaded Python 3

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