Skip to content

Add Matches & Top Level Imports (corrected build)

Latest

Choose a tag to compare

@ZechCodes ZechCodes released this 25 Mar 23:11
· 16 commits to main since this release

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 matches

Correct 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.