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 details)

Uploaded Source

Built Distribution

miniscutil-0.2.16-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file miniscutil-0.2.16.tar.gz.

File metadata

  • Download URL: miniscutil-0.2.16.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for miniscutil-0.2.16.tar.gz
Algorithm Hash digest
SHA256 b960f6fbe4adcb8ea855639ac485ef61224a4af8dae32d2cdb4d687c3bc99c08
MD5 c8913e4253265b9d270e542c830c0b3e
BLAKE2b-256 099a07aa7519db0805fab00ced29a9d3f1fde4964f6612530c9ec89ad4318cf1

See more details on using hashes here.

File details

Details for the file miniscutil-0.2.16-py3-none-any.whl.

File metadata

File hashes

Hashes for miniscutil-0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0f6fb6169a3084916c7dadd125033c3a8d7180a84c39c35bc3619e5d84777d7d
MD5 07fb91e7fa37b5d8d22bc20013913a16
BLAKE2b-256 0fcf2eceab56c49453e32aad7d457df3a717536d8fec98de257912685ee8c505

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