Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/api/adapters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Adapters

Bulk lifting and integration utilities for the Result Pattern.

::: result.adapters
5 changes: 0 additions & 5 deletions docs/api/future.md

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ nav:
- Result: api/result.md
- Outcome: api/outcome.md
- Combinators: api/combinators.md
- Future: api/future.md
- Adapters: api/adapters.md
17 changes: 16 additions & 1 deletion src/result/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
from .adapters import (
SafeStream,
SafeStreamAsync,
catch_boundary,
catch_each_iter,
catch_each_iter_async,
catch_instance,
)
from .combinators import (
add_context,
ensure,
Expand All @@ -15,7 +23,6 @@
validate,
validate_async,
)
from .future import SafeStream, SafeStreamAsync, catch_each_iter, catch_each_iter_async
from .outcome import Outcome, as_outcome, catch_outcome
from .result import (
CatchContext,
Expand All @@ -28,6 +35,7 @@
UnwrapError,
any_ok,
as_err,
assert_ok,
catch,
catch_call,
combine,
Expand All @@ -40,6 +48,8 @@
is_ok,
map2,
partition,
retry_result,
retry_result_async,
)

__all__ = [
Expand All @@ -58,10 +68,13 @@
"any_ok",
"as_err",
"as_outcome",
"assert_ok",
"catch",
"catch_boundary",
"catch_call",
"catch_each_iter",
"catch_each_iter_async",
"catch_instance",
"catch_outcome",
"combine",
"do",
Expand All @@ -80,6 +93,8 @@
"partition_exceptions",
"partition_map",
"partition_results",
"retry_result",
"retry_result_async",
"succeeds",
"traverse",
"traverse_async",
Expand Down
Loading
Loading