Releases: ZechCodes/Tramp
Release list
Add Matches & Top Level Imports (corrected build)
Matches
Adds the new matches module, a collection of protocols that can be used in match/case to identify if an object implements a certain dunder protocol. Currently Tramp includes these matches:
- AsyncContextManager
- AsyncIterable
- AsyncIterator
- Awaitable
- Callable
- ContextManager
- Iterable
- Iterator
Top Level Imports
Additionally, this release adds all Tramp modules to the top level __init__.py so that modules can be imported without a dot name
from tramp import matchesCorrect Build
This version is the same as 2025.3.001 except it corrects the pyproject.toml to fix the build error related to the format of the authors field.
Add Matches & Top Level Imports
Matches
Adds the new matches module, a collection of protocols that can be used in match/case to identify if an object implements a certain dunder protocol. Currently Tramp includes these matches:
- AsyncContextManager
- AsyncIterable
- AsyncIterator
- Awaitable
- Callable
- ContextManager
- Iterable
- Iterator
Top Level Imports
Additionally, this release adds all Tramp modules to the top level __init__.py so that modules can be imported without a dot name
from tramp import matches0.1.17 - Protected Strings Added
This release adds a protected string type that prevents sensitive data from being leaked in strings unless explicitly allowed.
0.1.15 - Add AsyncBatchIterator
Adds a AsyncBatchIterator for iterating through batched results returned by a coroutine.
0.15.0 - Improve Container and Result types
- Container types can now be empty
- Result builder now morphs into a result type in place at runtime to allow for a more straightforward interface
0.1.14 - Add Optional.wrap
Adds Optional.wrap to wrap a value in an optional. It'll return Some(value) unless the value is None which results in a Nothing() optional.
0.1.13 - PEP 649 Imitation
Reimplement the annotations module to imitate [PEP 649])(https://peps.python.org/pep-0649/) and provide a barebones implementation of get_annotations that only supports Format.FORWARDREF.
0.1.12 - Add AsCompleted
Adds AsCompleted to simplify iterating tasks as they complete.
0.1.11 - Singletons & Optionals Bug Fix
- Added a singleton decorator
- Fixed a bug with Optionals where Nothing wouldn't match with itself