Skip to main content

No project description provided

Project description

miniscutil

PyPI - Version PyPI - Python Version


Collection of miscellaneous functions and methods that I wish were in core. I think that some of them are implemented by existing libraries.

This is supposed to be a big bag of code that I use in lots of my projects, eventually they should be replaced with an existing library or moved into their own specialized library.

  • dispatch.py hijacks the dispatcher used by functools.singledispatch as its own class. This is used to implement a classdispatch decorator that can accept a type as argument.
  • adapt, an implementation of PEP-246
  • ofdict.py converts to and from a json-like object JsonLike = Union[str, int, float, bool, type(None), list[JsonLike], dict[str, JsonLike]]. It overlaps a lot with attrs, cattrs and pydantic libraries.
  • deep.py implements a deepcopy-like reduction system for traversing, mapping and serializing arbitrary python objects.
  • deepeq.py implements a deep-equality algorithm.
  • current.py is a base class for implementing the singleton pattern.
  • sum.py discriminated sum type.

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

miniscutil-0.2.16.tar.gz (40.6 kB view hashes)

Uploaded Source

Built Distribution

miniscutil-0.2.16-py3-none-any.whl (46.6 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