Skip to main content

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 Decimal
  • Range — a closed numeric interval
  • Interval — an interval with open or closed endpoints
  • Point2D / Point3D / PointAnyD — points with element-wise operations
  • Auto — a wrapper that forwards operations and supports most type-conversion functions without raising
  • Debug — a debugging wrapper that prints what happens
  • ChainNode — a linked-list node
  • InfiniteIterator — an integer range iterator that can run forever
  • ReadOnlyBox — a read-only wrapper
  • DisplayProxy — a proxy that separates display behavior from real behavior
  • LenLimit — enforces a maximum length on a container
  • TimeLimit — expires after a given amount of time
  • MemLimit — 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)

Source distribution for typemore 0.1.1
File Size Uploaded
typemore-0.1.1.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typemore 0.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page