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.
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.2.16.tar.gz
(40.6 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b960f6fbe4adcb8ea855639ac485ef61224a4af8dae32d2cdb4d687c3bc99c08 |
|
MD5 | c8913e4253265b9d270e542c830c0b3e |
|
BLAKE2b-256 | 099a07aa7519db0805fab00ced29a9d3f1fde4964f6612530c9ec89ad4318cf1 |
File details
Details for the file miniscutil-0.2.16-py3-none-any.whl
.
File metadata
- Download URL: miniscutil-0.2.16-py3-none-any.whl
- Upload date:
- Size: 46.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6fb6169a3084916c7dadd125033c3a8d7180a84c39c35bc3619e5d84777d7d |
|
MD5 | 07fb91e7fa37b5d8d22bc20013913a16 |
|
BLAKE2b-256 | 0fcf2eceab56c49453e32aad7d457df3a717536d8fec98de257912685ee8c505 |