typemore
A collection of custom Python data types for specialized behavior.
Install
pip install typemore
Usage
from typemore import StrictFloat, Range, Interval
StrictFloat(0.1) + StrictFloat(0.2) # StrictFloat:0.3
3 in Range(1, 5) # True
Interval(True, 1, 5, False) # [1, 5)
Types
StrictFloat— a float subclass that does arithmetic with DecimalRange— a closed numeric intervalInterval— an interval with open or closed endpointsPoint2D/Point3D/PointAnyD— points with element-wise operationsAuto— a wrapper that forwards operations and supports most type-conversion functions without raisingDebug— a debugging wrapper that prints what happensChainNode— a linked-list nodeInfiniteIterator— an integer range iterator that can run foreverReadOnlyBox— a read-only wrapperDisplayProxy— a proxy that separates display behavior from real behaviorLenLimit— enforces a maximum length on a containerTimeLimit— expires after a given amount of timeMemLimit— enforces a maximum memory size on a container
License
MIT
Release files for typemore 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typemore-0.1.1.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typemore-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.4 kB
Release files / typemore-0.1.1.tar.gz
| Download URL | typemore-0.1.1.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a96e0515c62808a396fdf95354de06ba9c9e716ea5a410b16970778e4a3074e
|
|
BLAKE2b-256 checksum How to use checksums |
bf005e82c3f775a5cd7c1f7bba1999f233946eeb3dadf387e08c26c4de47e412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / typemore-0.1.1-py3-none-any.whl
| Download URL | typemore-0.1.1-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca7c9efb6ac6e14f6a48554cec8c8712df7ea7a96e9e9ed134df03fa734b0ad9
|
|
BLAKE2b-256 checksum How to use checksums |
91d239b227ed0b485bac59f34d69941b018bdda599e2054d41c661daeb20cf09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|