No project description provided
Project description
miniscutil
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 byfunctools.singledispatch
as its own class. This is used to implement aclassdispatch
decorator that can accept a type as argument.adapt
, an implementation of PEP-246ofdict.py
converts to and from a json-like objectJsonLike = Union[str, int, float, bool, type(None), list[JsonLike], dict[str, JsonLike]]
. It overlaps a lot withattrs
,cattrs
andpydantic
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.
Table of Contents
Installation
pip install miniscutil
License
miniscutil
is distributed under the terms of the MIT license.
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
miniscutil-0.0.3.tar.gz
(22.4 kB
view hashes)
Built Distribution
miniscutil-0.0.3-py3-none-any.whl
(24.0 kB
view hashes)
Close
Hashes for miniscutil-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c476f852132bded3a5ff558a0cb8404d74da5bc242999fe7221468376b6e43fc |
|
MD5 | d0fc70c8686a96b7870ec847be4111b9 |
|
BLAKE2b-256 | 08372f22fed0ac25ca8addbf5fae5c53087db525ca890acff0dfb7d003ac2709 |