stranded 0.0.1__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.
- stranded/__init__.py +51 -0
- stranded/abc/__init__.py +21 -0
- stranded/abc/composer_.py +191 -0
- stranded/argparse/__init__.py +24 -0
- stranded/argparse/abc/__init__.py +21 -0
- stranded/argparse/abc/argument_parser_.py +539 -0
- stranded/argparse/argument_parser_.py +13 -0
- stranded/argparse/asyncio/__init__.py +24 -0
- stranded/argparse/asyncio/argument_parser_.py +50 -0
- stranded/argparse/threading/__init__.py +24 -0
- stranded/argparse/threading/argument_parser_.py +52 -0
- stranded/asyncio/__init__.py +21 -0
- stranded/asyncio/composer_.py +76 -0
- stranded/builtins/__init__.py +21 -0
- stranded/builtins/exception_.py +6 -0
- stranded/composer_.py +27 -0
- stranded/execution/__init__.py +30 -0
- stranded/execution/abc/__init__.py +21 -0
- stranded/execution/abc/scheduler_.py +59 -0
- stranded/execution/asyncio/__init__.py +21 -0
- stranded/execution/asyncio/scheduler_.py +86 -0
- stranded/execution/scheduler_.py +59 -0
- stranded/execution/threading/__init__.py +21 -0
- stranded/execution/threading/scheduler_.py +116 -0
- stranded/functools/__init__.py +51 -0
- stranded/functools/abc/__init__.py +39 -0
- stranded/functools/abc/herd_.py +96 -0
- stranded/functools/abc/lru_cache_.py +192 -0
- stranded/functools/abc/retry_.py +60 -0
- stranded/functools/abc/throttle_.py +97 -0
- stranded/functools/asyncio/__init__.py +51 -0
- stranded/functools/asyncio/herd_.py +89 -0
- stranded/functools/asyncio/lru_cache_.py +92 -0
- stranded/functools/asyncio/retry_.py +43 -0
- stranded/functools/asyncio/throttle_.py +74 -0
- stranded/functools/herd_.py +18 -0
- stranded/functools/lru_cache_.py +18 -0
- stranded/functools/retry_.py +13 -0
- stranded/functools/threading/__init__.py +51 -0
- stranded/functools/threading/herd_.py +88 -0
- stranded/functools/threading/lru_cache_.py +90 -0
- stranded/functools/threading/retry_.py +42 -0
- stranded/functools/threading/throttle_.py +75 -0
- stranded/functools/throttle_.py +13 -0
- stranded/logging/__init__.py +24 -0
- stranded/logging/abc/__init__.py +21 -0
- stranded/logging/abc/logger_.py +96 -0
- stranded/logging/asyncio/__init__.py +21 -0
- stranded/logging/asyncio/logger_.py +41 -0
- stranded/logging/logger_.py +13 -0
- stranded/logging/threading/__init__.py +21 -0
- stranded/logging/threading/logger_.py +41 -0
- stranded/py.typed +0 -0
- stranded/sqlite3/__init__.py +24 -0
- stranded/sqlite3/abc/__init__.py +21 -0
- stranded/sqlite3/abc/db_.py +149 -0
- stranded/sqlite3/asyncio/__init__.py +24 -0
- stranded/sqlite3/asyncio/db_.py +43 -0
- stranded/sqlite3/db_.py +13 -0
- stranded/sqlite3/threading/__init__.py +24 -0
- stranded/sqlite3/threading/db_.py +43 -0
- stranded/threading/__init__.py +21 -0
- stranded/threading/composer_.py +74 -0
- stranded/types/__init__.py +21 -0
- stranded/types/constraint.py +7 -0
- stranded/types/convert.py +158 -0
- stranded-0.0.1.dist-info/METADATA +173 -0
- stranded-0.0.1.dist-info/RECORD +71 -0
- stranded-0.0.1.dist-info/WHEEL +5 -0
- stranded-0.0.1.dist-info/licenses/LICENSE +21 -0
- stranded-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib as _importlib
|
|
4
|
+
import typing as _typing
|
|
5
|
+
|
|
6
|
+
if _typing.TYPE_CHECKING:
|
|
7
|
+
from . import convert
|
|
8
|
+
from .convert import Convert
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def __getattr__(name: str) -> _typing.Any:
|
|
12
|
+
match name:
|
|
13
|
+
case 'convert': return _importlib.import_module('.convert', __name__)
|
|
14
|
+
case 'Convert': return _importlib.import_module('.convert', __name__).Convert
|
|
15
|
+
case _: raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__all__ = (
|
|
19
|
+
'convert',
|
|
20
|
+
'Convert',
|
|
21
|
+
)
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import ast
|
|
4
|
+
import builtins
|
|
5
|
+
import dataclasses
|
|
6
|
+
import enum
|
|
7
|
+
import types
|
|
8
|
+
import typing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclasses.dataclass(frozen=True, kw_only=True)
|
|
12
|
+
class Convert[T]:
|
|
13
|
+
"""Converts a given str argument into given type T.
|
|
14
|
+
|
|
15
|
+
>>> assert Convert(t=dict[int, str])('{42: "foo"}') == {42: "foo"}
|
|
16
|
+
>>> assert Convert(t=typing.Literal['foo', 'bar', 'baz'])('"foo"') == "foo"
|
|
17
|
+
>>> assert Convert(t=int | float | str)('3.14') == 3.14 # noqa
|
|
18
|
+
>>> assert Convert(t=tuple[int, ...])('(1, 2, 3, 4)') == (1, 2, 3, 4)
|
|
19
|
+
|
|
20
|
+
This performs verification that the arg matches the given type.
|
|
21
|
+
|
|
22
|
+
>>> assert ast.literal_eval('3.14') == 3.14
|
|
23
|
+
>>> Convert(t=int)('3.14') == 3.14
|
|
24
|
+
Traceback (most recent call last):
|
|
25
|
+
...
|
|
26
|
+
ValueError: Could not convert arg=3.14 to t=<class 'int'>.
|
|
27
|
+
|
|
28
|
+
Custom types may also be used. The underlying type must be trivially-costructable with the output of
|
|
29
|
+
ast.literal_eval of given positional constructor arg.
|
|
30
|
+
|
|
31
|
+
>>> class MyEnum(enum.Enum):
|
|
32
|
+
... foo = 1
|
|
33
|
+
... bar = 2
|
|
34
|
+
... baz = 3
|
|
35
|
+
>>> assert Convert(t=MyEnum)('foo') == MyEnum.foo
|
|
36
|
+
|
|
37
|
+
>>> @dataclasses.dataclass(frozen=True)
|
|
38
|
+
... class Foo[T]:
|
|
39
|
+
... v: T
|
|
40
|
+
>>> assert Convert(t=Foo)('foo') == Foo('foo')
|
|
41
|
+
>>> assert Convert(t=Foo[str])('foo') == Foo('foo')
|
|
42
|
+
|
|
43
|
+
Custom type aliases may be used similarly to custom types. The type alias arguments must correspond to the types of
|
|
44
|
+
given positional constructor arguements.
|
|
45
|
+
|
|
46
|
+
>>> @dataclasses.dataclass(frozen=True)
|
|
47
|
+
... class Bar[T, U, V]:
|
|
48
|
+
... a: T
|
|
49
|
+
... b: U
|
|
50
|
+
... c: V
|
|
51
|
+
>>> assert Convert(t=Bar[int, float, Foo])('42, 3.14, "foo"') == Bar(42, 3.14, Foo('foo'))
|
|
52
|
+
>>> assert Convert(t=Bar[str, Foo[str], Foo[MyEnum]])('"foo", "foo", "foo"') == Bar("foo", Foo("foo"), Foo(MyEnum.foo))
|
|
53
|
+
"""
|
|
54
|
+
t: type[T]
|
|
55
|
+
|
|
56
|
+
type _Args = bool | float | int | str | list[typing.Any] | dict[typing.Any, typing.Any] | set[typing.Any] | None
|
|
57
|
+
|
|
58
|
+
def _using_type(self, arg: _Args, /) -> T:
|
|
59
|
+
match self.t:
|
|
60
|
+
case types.NoneType | None:
|
|
61
|
+
assert arg is None, f'{self} expected `None`, got `{arg}`.'
|
|
62
|
+
return arg # type: ignore[return-value]
|
|
63
|
+
case builtins.bool | builtins.int | builtins.float | builtins.str:
|
|
64
|
+
assert isinstance(arg, self.t), f'{self} expected `{self.t}`, got `{arg}`'
|
|
65
|
+
return arg
|
|
66
|
+
case t if issubclass(t, enum.Enum):
|
|
67
|
+
assert isinstance(arg, str) and hasattr(t, arg), (
|
|
68
|
+
f'{self} expected `{typing.Literal[*t._member_names_]}`, got `{type(arg)}`' # noqa
|
|
69
|
+
)
|
|
70
|
+
return getattr(t, arg) # type: ignore[no-any-return]
|
|
71
|
+
case t:
|
|
72
|
+
return t(arg) # type: ignore[call-arg]
|
|
73
|
+
|
|
74
|
+
def _using_type_alias(self, args: _Args, /) -> T:
|
|
75
|
+
match typing.get_origin(self.t), typing.get_args(self.t):
|
|
76
|
+
case builtins.dict, (key_t, value_t):
|
|
77
|
+
assert isinstance(args, dict), (
|
|
78
|
+
f'{self} expected `dict[{key_t}, {value_t}]`, got `{args}`'
|
|
79
|
+
)
|
|
80
|
+
return { # type: ignore[return-value]
|
|
81
|
+
Convert(t=key_t)._from_arg(key): Convert(t=value_t)._from_arg(value)
|
|
82
|
+
for key, value in args.items()
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
case builtins.frozenset, (t,):
|
|
86
|
+
assert isinstance(args, (set, frozenset)), (
|
|
87
|
+
f'{self} expected `{frozenset[t]}`, got `{args}`.' # type: ignore[valid-type]
|
|
88
|
+
)
|
|
89
|
+
return frozenset({Convert(t=t)._from_arg(arg) for arg in args}) # type: ignore[return-value]
|
|
90
|
+
|
|
91
|
+
case builtins.list, (t,):
|
|
92
|
+
assert isinstance(args, list), (
|
|
93
|
+
f'{self} expected `{list[t]}`, got `{args}`.' # type: ignore[valid-type]
|
|
94
|
+
)
|
|
95
|
+
return list(Convert(t=t)._from_arg(arg) for arg in args) # type: ignore[return-value]
|
|
96
|
+
|
|
97
|
+
case builtins.tuple, ():
|
|
98
|
+
assert args == tuple(), ( # type: ignore[comparison-overlap]
|
|
99
|
+
f'{self} expected `{tuple[()]}`, got `{args}`.'
|
|
100
|
+
)
|
|
101
|
+
return args # type: ignore[return-value]
|
|
102
|
+
case builtins.tuple, (t,):
|
|
103
|
+
assert isinstance(args, tuple) and len(args) == 1, (
|
|
104
|
+
f'{self} expected `{tuple[t]}`, got `{args}`.' # type: ignore[valid-type]
|
|
105
|
+
)
|
|
106
|
+
return tuple([Convert(t=t)._from_arg(args[0])])
|
|
107
|
+
case builtins.tuple, (t, builtins.Ellipsis):
|
|
108
|
+
assert isinstance(args, tuple), (
|
|
109
|
+
f'{self} expected `{tuple[t, ...]}`, got `{args}`.' # type: ignore[valid-type]
|
|
110
|
+
)
|
|
111
|
+
return tuple([Convert(t=t)._from_arg(value) for value in args])
|
|
112
|
+
case builtins.tuple, (t, *ts):
|
|
113
|
+
assert isinstance(args, tuple) and len(args) > 0, (
|
|
114
|
+
f'{self} expected `{tuple[t, *ts]}`, got `{args}`.' # type: ignore[valid-type]
|
|
115
|
+
)
|
|
116
|
+
return Convert(t=t)._from_arg(args[0]), *Convert(t=tuple[*ts])._from_arg(args[1:]) # type: ignore[valid-type]
|
|
117
|
+
|
|
118
|
+
case builtins.set, (t,):
|
|
119
|
+
assert isinstance(args, (set, frozenset)), (
|
|
120
|
+
f'{self} expected `{set[t]}`, got `{args}`.' # type: ignore[valid-type]
|
|
121
|
+
)
|
|
122
|
+
return set({Convert(t=t)._from_arg(arg) for arg in args}) # type: ignore[return-value]
|
|
123
|
+
|
|
124
|
+
case(typing.Union | types.UnionType), ts:
|
|
125
|
+
assert type(args) in ts, (
|
|
126
|
+
f'{self} expected `{typing.Union[*ts]}`, got `{args}`.'
|
|
127
|
+
)
|
|
128
|
+
return args # type: ignore[return-value]
|
|
129
|
+
case typing.Literal, vs:
|
|
130
|
+
assert args in vs, (
|
|
131
|
+
f'{self} expected `{typing.Literal[*vs]}`, got `{args}`.' # noqa
|
|
132
|
+
)
|
|
133
|
+
return args # type: ignore[return-value]
|
|
134
|
+
|
|
135
|
+
case t, (t_,):
|
|
136
|
+
return t(Convert(t=t_)._from_arg(args)) # type: ignore[misc, no-any-return]
|
|
137
|
+
case t, ts:
|
|
138
|
+
return t(*(Convert(t=t)._from_arg(arg) for t, arg in zip(ts, args))) # type: ignore[arg-type, misc, no-any-return]
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def _from_arg(self, arg: _Args, /) -> T:
|
|
142
|
+
return self._using_type(arg) if typing.get_origin(self.t) is None else self._using_type_alias(arg)
|
|
143
|
+
|
|
144
|
+
def __call__(self, arg: str, /) -> T:
|
|
145
|
+
"""Returns a T from given arg. Raises ValueError upon failure."""
|
|
146
|
+
|
|
147
|
+
if self.t != str:
|
|
148
|
+
try:
|
|
149
|
+
arg: Convert._Args = ast.literal_eval(arg) # type: ignore[no-redef]
|
|
150
|
+
except (SyntaxError, ValueError,):
|
|
151
|
+
pass
|
|
152
|
+
|
|
153
|
+
try:
|
|
154
|
+
value = self._from_arg(arg)
|
|
155
|
+
except AssertionError as e:
|
|
156
|
+
raise ValueError(f'Could not convert {arg=} to t={self.t}.') from e
|
|
157
|
+
|
|
158
|
+
return value
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: stranded
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Composable decorators for caching, retrying, throttling, logging, and CLIs, for both sync and asyncio code
|
|
5
|
+
Author-email: Cameron Evans <c.d.evans87@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/cevans87/Stranded
|
|
8
|
+
Project-URL: Issues, https://github.com/cevans87/Stranded/issues
|
|
9
|
+
Project-URL: Repository, https://github.com/cevans87/Stranded.git
|
|
10
|
+
Keywords: asyncio,back pressure,cache,memoize,rate limit,retry,throttle
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Classifier: Topic :: System :: Logging
|
|
16
|
+
Classifier: Framework :: AsyncIO
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.13
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Provides-Extra: test
|
|
25
|
+
Requires-Dist: mypy; extra == "test"
|
|
26
|
+
Requires-Dist: pytest; extra == "test"
|
|
27
|
+
Requires-Dist: pytest-asyncio; extra == "test"
|
|
28
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
29
|
+
Requires-Dist: pytest-mypy; extra == "test"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# Stranded
|
|
33
|
+
|
|
34
|
+
Composable decorators for caching, retrying, throttling, logging, and building
|
|
35
|
+
command-line interfaces. Every decorator works on both plain and `async def`
|
|
36
|
+
functions, picking the threading or asyncio implementation from the function it
|
|
37
|
+
wraps.
|
|
38
|
+
|
|
39
|
+
Stranded is alpha software. The API changes between releases.
|
|
40
|
+
|
|
41
|
+
## Install
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install stranded
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Python 3.13 or newer is required. There are no runtime dependencies.
|
|
48
|
+
|
|
49
|
+
## Usage
|
|
50
|
+
|
|
51
|
+
Each decorator is a frozen dataclass. Configure it with keyword arguments and
|
|
52
|
+
apply it to a function. The same decorator works for sync and async code.
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
import asyncio
|
|
56
|
+
|
|
57
|
+
from stranded.functools import LruCache, Retry, Throttle
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@LruCache(size=128)
|
|
61
|
+
def fib(n: int) -> int:
|
|
62
|
+
return n if n < 2 else fib(n - 1) + fib(n - 2)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@Retry(n=3)
|
|
66
|
+
@Throttle(max_running=4)
|
|
67
|
+
async def fetch(url: str) -> str:
|
|
68
|
+
await asyncio.sleep(0)
|
|
69
|
+
return url
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
print(fib(40))
|
|
73
|
+
print(asyncio.run(fetch('https://example.com')))
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### functools
|
|
77
|
+
|
|
78
|
+
- `LruCache(size=...)` memoizes by argument, sharing one in-flight result
|
|
79
|
+
between concurrent callers.
|
|
80
|
+
- `Herd()` collapses concurrent calls with the same arguments into one call,
|
|
81
|
+
without memoizing the result.
|
|
82
|
+
- `Retry(n=...)` re-invokes the function when it raises, up to `n` times.
|
|
83
|
+
- `Throttle(max_running=..., max_waiting=...)` bounds concurrency. The running
|
|
84
|
+
cap grows additively while calls succeed and halves when a call raises.
|
|
85
|
+
|
|
86
|
+
Each also has an instance with default settings, spelled in lowercase:
|
|
87
|
+
`lru_cache`, `herd`, `retry`, `throttle`.
|
|
88
|
+
|
|
89
|
+
### logging
|
|
90
|
+
|
|
91
|
+
`Logger` logs a function's call, return value, and exceptions at configurable
|
|
92
|
+
levels.
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import logging
|
|
96
|
+
|
|
97
|
+
from stranded.logging import Logger
|
|
98
|
+
|
|
99
|
+
logging.basicConfig(level=logging.DEBUG)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@Logger(call_level='DEBUG', return_level='INFO', exception_level='ERROR')
|
|
103
|
+
def add(a: int, b: int) -> int:
|
|
104
|
+
return a + b
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
add(1, 2)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### sqlite3
|
|
111
|
+
|
|
112
|
+
`Db` memoizes a function's results to a SQLite database on disk, so results
|
|
113
|
+
survive across processes.
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
import pathlib
|
|
117
|
+
import tempfile
|
|
118
|
+
|
|
119
|
+
from stranded.sqlite3 import Db
|
|
120
|
+
|
|
121
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
122
|
+
|
|
123
|
+
@Db(path=pathlib.Path(tmp) / 'db')
|
|
124
|
+
def expensive(key: str) -> str:
|
|
125
|
+
print('computing', key)
|
|
126
|
+
return key.upper()
|
|
127
|
+
|
|
128
|
+
print(expensive('a'))
|
|
129
|
+
print(expensive('a'))
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### argparse
|
|
133
|
+
|
|
134
|
+
`ArgumentParser` builds a command-line parser from a function's signature and
|
|
135
|
+
type hints. Flags come before positionals, a boolean flag is spelled with one
|
|
136
|
+
dash, and a valued flag with two. Parsers compose with `|`, so flags shared
|
|
137
|
+
across subcommands can be written once.
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from stranded.argparse import ArgumentParser
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@ArgumentParser()
|
|
144
|
+
def verbose_flag(*, verbose: bool = False) -> None:
|
|
145
|
+
if verbose:
|
|
146
|
+
print('verbose on')
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
@ArgumentParser()
|
|
150
|
+
def main(name: str, /, *, count: int = 1) -> None:
|
|
151
|
+
for _ in range(count):
|
|
152
|
+
print(f'hello, {name}')
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
(verbose_flag | main)('-verbose', '--count', '2', 'world')
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Explicit sync and async variants
|
|
159
|
+
|
|
160
|
+
The top-level decorators dispatch on whether the wrapped function is a
|
|
161
|
+
coroutine function. To pin one, import from the `asyncio` or `threading`
|
|
162
|
+
subpackage instead, for example `stranded.functools.asyncio.LruCache`.
|
|
163
|
+
|
|
164
|
+
## Development
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
pip install -e '.[test]'
|
|
168
|
+
pytest
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## License
|
|
172
|
+
|
|
173
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
stranded/__init__.py,sha256=nDENyQrFI9vlhcsGdgUvjP_N0URC0FofrsoEIockk-4,1750
|
|
2
|
+
stranded/composer_.py,sha256=SMvYUXVa8YZRpCATwoQgPdDn3OX543J48M8GSiAtNNE,1034
|
|
3
|
+
stranded/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
stranded/abc/__init__.py,sha256=vh0koY0sNE8PhT0RElYmUHazmUsnyXv9Azt_KPOMQg0,552
|
|
5
|
+
stranded/abc/composer_.py,sha256=GnDulyWuaswn5QrDAXa28vGvJLG8jAo9YrFyzw9H7b4,6778
|
|
6
|
+
stranded/argparse/__init__.py,sha256=QnQa0ni-61tnGJxx6IZYC_f4XnF92pczxwZDwwJlgf4,801
|
|
7
|
+
stranded/argparse/argument_parser_.py,sha256=9Jla9KEGJ-HE4shtJC4ms1UkxEQ3fkdU0Dy-wxPZL6w,343
|
|
8
|
+
stranded/argparse/abc/__init__.py,sha256=JQQG-NbmY2KMikUqTeAfrNrqYO_U44X4L5-NoUGXoUQ,617
|
|
9
|
+
stranded/argparse/abc/argument_parser_.py,sha256=iHbB_Fmohpk7dnVhvhr7aWm_gZ5AsoFT4Wce7bt7vBQ,23877
|
|
10
|
+
stranded/argparse/asyncio/__init__.py,sha256=QnQa0ni-61tnGJxx6IZYC_f4XnF92pczxwZDwwJlgf4,801
|
|
11
|
+
stranded/argparse/asyncio/argument_parser_.py,sha256=fUYFgW-iT2ZVXvibykCIrCw2WtsGTVW8cuag8goIokM,1713
|
|
12
|
+
stranded/argparse/threading/__init__.py,sha256=QnQa0ni-61tnGJxx6IZYC_f4XnF92pczxwZDwwJlgf4,801
|
|
13
|
+
stranded/argparse/threading/argument_parser_.py,sha256=HEGoP98nctuWmaTIPkH2TF1Xzmy-4FzVJlgBoAXjLr0,1753
|
|
14
|
+
stranded/asyncio/__init__.py,sha256=vh0koY0sNE8PhT0RElYmUHazmUsnyXv9Azt_KPOMQg0,552
|
|
15
|
+
stranded/asyncio/composer_.py,sha256=ZnI7VqXPbwRniF-Xce_LcXziHXNz_DbqBWTl5HOSH_8,3098
|
|
16
|
+
stranded/builtins/__init__.py,sha256=jwZwdifwUyrs14Z7G1qlwrMC3joyFNB4ewcEt5AaJqw,562
|
|
17
|
+
stranded/builtins/exception_.py,sha256=XKS5MOlv4hWJehajJ3Q0-e8428zUQ5CrWi0C8Iy4hs4,103
|
|
18
|
+
stranded/execution/__init__.py,sha256=LVxOCwEmRcfe_t2aGfd_v1X0kWzSOSh2_UeNWv_YJCM,911
|
|
19
|
+
stranded/execution/scheduler_.py,sha256=b8SG3X2_3Rd4KQOREQ4exj8Zx4_UW9jjQg3-np2wcuo,1959
|
|
20
|
+
stranded/execution/abc/__init__.py,sha256=65au4in0EJNuc36IMPueDim_NxPG7rWRigi_BuCMI20,562
|
|
21
|
+
stranded/execution/abc/scheduler_.py,sha256=dgrU84UANr4Aio8GA3iL3Wab2XEATsBevnCAMHvH0d4,1839
|
|
22
|
+
stranded/execution/asyncio/__init__.py,sha256=65au4in0EJNuc36IMPueDim_NxPG7rWRigi_BuCMI20,562
|
|
23
|
+
stranded/execution/asyncio/scheduler_.py,sha256=Gtz_JyYpJEbJG6Mtr3Xq4ylaOvTbZnJCN-BhOj9hfG0,3216
|
|
24
|
+
stranded/execution/threading/__init__.py,sha256=65au4in0EJNuc36IMPueDim_NxPG7rWRigi_BuCMI20,562
|
|
25
|
+
stranded/execution/threading/scheduler_.py,sha256=wqRRBO_Smvw-zD2NNQh0jNK80TelG2_zJ4MMDPXz20A,3990
|
|
26
|
+
stranded/functools/__init__.py,sha256=HpfZqC3K4hpx1YCUz5UFy0PXFGumVO8yPlczteYeoMk,1827
|
|
27
|
+
stranded/functools/herd_.py,sha256=hkkHjdGceXtWjn4QnG8WKqNSFKWwWHKomSP9I_ukHg8,447
|
|
28
|
+
stranded/functools/lru_cache_.py,sha256=IC8wIGQFMGA3JVhEMth3TBPj2CXDfFN7N76yVSFV-5Y,478
|
|
29
|
+
stranded/functools/retry_.py,sha256=09EpfbmDrPfdjBhQmQWvaV7WG8OpOKhXBpXJq6fCagA,255
|
|
30
|
+
stranded/functools/throttle_.py,sha256=Up6aW2z5bxW0nsv3KCkMyuxMxTjVtD4gS0zDxC8_Fs0,276
|
|
31
|
+
stranded/functools/abc/__init__.py,sha256=2hDykfn7v2RWAz2RtYqm2vfgRTPjM3HAXFkTDzyk0eI,1295
|
|
32
|
+
stranded/functools/abc/herd_.py,sha256=9mL4R7YAMint22v9CG1gACj6kYXsFR93pXxUy5cTo_o,3347
|
|
33
|
+
stranded/functools/abc/lru_cache_.py,sha256=zcDeQ1caXENsVokUpTp073q_Owzr5J2ZZzFpq3yLXPs,7208
|
|
34
|
+
stranded/functools/abc/retry_.py,sha256=RC_Eqxtu2ZK7raKVqOU30K7_-2ZXCyvrZq-2LylN5HY,1836
|
|
35
|
+
stranded/functools/abc/throttle_.py,sha256=Enfk1G7HLg-Cc937RvuVmmIOezlgvK6Smi2KF6sY1BU,3500
|
|
36
|
+
stranded/functools/asyncio/__init__.py,sha256=HpfZqC3K4hpx1YCUz5UFy0PXFGumVO8yPlczteYeoMk,1827
|
|
37
|
+
stranded/functools/asyncio/herd_.py,sha256=9VyhixZZQdZsHkes0Fuk9Eyky9udxB0yguemGrSmOZQ,2929
|
|
38
|
+
stranded/functools/asyncio/lru_cache_.py,sha256=1GbA2aRFuxLGF4etLzo-xeO1-82MOVq4rBDKzjmexWk,3153
|
|
39
|
+
stranded/functools/asyncio/retry_.py,sha256=Vh3bJuptFneshSW_01nmVRyahw2zOl44SVANCBfPxe8,1329
|
|
40
|
+
stranded/functools/asyncio/throttle_.py,sha256=4N7GhKAeOfXtmCbrG8U5ei7z2-X0kdUIk0D34r3FNbg,2801
|
|
41
|
+
stranded/functools/threading/__init__.py,sha256=HpfZqC3K4hpx1YCUz5UFy0PXFGumVO8yPlczteYeoMk,1827
|
|
42
|
+
stranded/functools/threading/herd_.py,sha256=BGXLC5o0siIugmnt6HxMMG9e8tk8bAYsJJLgNpxJAKM,2876
|
|
43
|
+
stranded/functools/threading/lru_cache_.py,sha256=aWyPfpc8af8ZJ5ThCXfl7wJNktLkx5gROtKqGuEv2hc,3077
|
|
44
|
+
stranded/functools/threading/retry_.py,sha256=PvtESoU_7HEURAt3_jvojw20VAJvJdwyh5ch68eRv3Q,1286
|
|
45
|
+
stranded/functools/threading/throttle_.py,sha256=37hkiE8muUpie0KTxqepLVE-5XYYAjXN2_0ISjeIrjc,2720
|
|
46
|
+
stranded/logging/__init__.py,sha256=47w05V7_RyAFffqHCW_ZNNdz-8ptYLVSf_vE5sLjQ10,661
|
|
47
|
+
stranded/logging/logger_.py,sha256=ntKQep41NKdjFpkkJdAAf4aktLRVU7kvuhafyw2bCPE,262
|
|
48
|
+
stranded/logging/abc/__init__.py,sha256=LfTSmVUnw26en-EaC5A6myMZohOjze04Zf2OJnHl9oE,531
|
|
49
|
+
stranded/logging/abc/logger_.py,sha256=pVcBugYhCdaJKzbM1UPJdZ-S9BvGF6phrzQLYRrpKl8,3380
|
|
50
|
+
stranded/logging/asyncio/__init__.py,sha256=LfTSmVUnw26en-EaC5A6myMZohOjze04Zf2OJnHl9oE,531
|
|
51
|
+
stranded/logging/asyncio/logger_.py,sha256=QmzVx_hSC4NGyL-BvSTLZ7fwJ5Eurig-RJT3iVS-tj0,1330
|
|
52
|
+
stranded/logging/threading/__init__.py,sha256=LfTSmVUnw26en-EaC5A6myMZohOjze04Zf2OJnHl9oE,531
|
|
53
|
+
stranded/logging/threading/logger_.py,sha256=lAhn6cSpaL1mE0_VPc2Nv4k-3xP8K-EbqJRleZ2hVLo,1288
|
|
54
|
+
stranded/sqlite3/__init__.py,sha256=PTn-sHCJmOUNRtm2iBNcXwziXvttU-8rSKrDskY0lz8,597
|
|
55
|
+
stranded/sqlite3/db_.py,sha256=Fas_ZY_HaJGiYh5xM3Q4K3rlLPztHrqaML9GwQ00Mew,256
|
|
56
|
+
stranded/sqlite3/abc/__init__.py,sha256=AA8a5HfjRE90TX4Co_VNmDgsp5C67qIHhk9-VPXr2DY,491
|
|
57
|
+
stranded/sqlite3/abc/db_.py,sha256=MdNo0OYJ5kSJyfg43GBfi_u_f-Z3m_EfMdp2D1EFreQ,5761
|
|
58
|
+
stranded/sqlite3/asyncio/__init__.py,sha256=PTn-sHCJmOUNRtm2iBNcXwziXvttU-8rSKrDskY0lz8,597
|
|
59
|
+
stranded/sqlite3/asyncio/db_.py,sha256=XZcgMNvvFGydRjfeW_j0alMrwjfsxA34xkSiFKWijSs,1296
|
|
60
|
+
stranded/sqlite3/threading/__init__.py,sha256=PTn-sHCJmOUNRtm2iBNcXwziXvttU-8rSKrDskY0lz8,597
|
|
61
|
+
stranded/sqlite3/threading/db_.py,sha256=UECsxmG4wWvibou8GXFn5GFhsIUsYR6OIWXI8KKD1qU,1254
|
|
62
|
+
stranded/threading/__init__.py,sha256=vh0koY0sNE8PhT0RElYmUHazmUsnyXv9Azt_KPOMQg0,552
|
|
63
|
+
stranded/threading/composer_.py,sha256=TywIejKpsjgbhDCcDA20icH7RClEkfhvP2-hG36tFg4,3010
|
|
64
|
+
stranded/types/__init__.py,sha256=2FxjaZZoOjxFxNolPcKqoyU14id-vb2Dwcpt8PNtQ08,535
|
|
65
|
+
stranded/types/constraint.py,sha256=v9jUZ2J1JAptNTLsdvJQ23BlfaMiAE4ijw8KHYf3A0w,146
|
|
66
|
+
stranded/types/convert.py,sha256=AO813y8Puvb8OTdnF4ORuoayhUOkOyA6J86vIABebCg,6999
|
|
67
|
+
stranded-0.0.1.dist-info/licenses/LICENSE,sha256=qIvbV-1GDfl0aBLJVxbjAKW8ldGZh9pVpURzg6B6kBQ,1070
|
|
68
|
+
stranded-0.0.1.dist-info/METADATA,sha256=MT22PQlIC-HXCPmuOVoPwXFlMLSe-5IQ9_Ojbr0cRGw,4621
|
|
69
|
+
stranded-0.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
70
|
+
stranded-0.0.1.dist-info/top_level.txt,sha256=E6RGZlacwMCtIgz14kMDlMZhYpIuX3GGQzCq9n-9Z3A,9
|
|
71
|
+
stranded-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Cameron Evans
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
stranded
|