flpit 0.4.0.dev6__py3-none-any.whl → 0.4.2.dev1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
flpit/__init__.py CHANGED
@@ -1,6 +1,16 @@
1
1
  """
2
2
  Fluent LINQ for Python — flip your iterables.
3
3
  """
4
+
5
+ # flpit is an extensible package: sub-packages under ``flpit.*`` may be installed by other
6
+ # distributions (e.g. flpit-stoop -> ``flpit.stoop``), also from editable/dev installs.
7
+ # The ``flpit.*`` namespace is reserved for official flpit packages; third-party extensions
8
+ # should use their own top-level package (e.g. ``flpit_<name>`` or ``<name>_flpit``).
9
+ from pkgutil import extend_path as _extend_path
10
+
11
+ __path__ = _extend_path(__path__, __name__)
12
+ del _extend_path
13
+
4
14
  from importlib.metadata import version
5
15
  __version__ = version("flpit")
6
16
 
@@ -24,6 +34,8 @@ from flpit.core.linq import (
24
34
  NoMatchError,
25
35
  MultipleElementsError,
26
36
  MultipleMatchesError,
37
+ NotSupportedError,
38
+ KeyNotFoundError,
27
39
 
28
40
  #====================
29
41
  # ArgumentExceptions
@@ -48,7 +60,7 @@ from flpit.core.linq import (
48
60
 
49
61
  from flpit.core._grouping import Grouping
50
62
  from flpit.core._lookup import Lookup
51
- from flpit.core.async_linq import AsyncFlpIt, OrderedAsyncIt
63
+ from flpit.core.async_linq import AsyncEnumerator, AsyncFlpIt, OrderedAsyncIt, async_flpit
52
64
 
53
65
  __all__ = [
54
66
  "flp",
@@ -57,14 +69,18 @@ __all__ = [
57
69
  "Grouping",
58
70
  "Lookup",
59
71
  "OrderedIt",
72
+ "AsyncEnumerator",
60
73
  "AsyncFlpIt",
61
74
  "OrderedAsyncIt",
75
+ "async_flpit",
62
76
 
63
77
  "InvalidOperationError",
64
78
  "EmptySequenceError",
65
79
  "NoMatchError",
66
80
  "MultipleElementsError",
67
81
  "MultipleMatchesError",
82
+ "NotSupportedError",
83
+ "KeyNotFoundError",
68
84
 
69
85
  "ArgumentError",
70
86
  "ArgumentNullError",