aletk 0.1.1__py3-none-any.whl → 0.1.4__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.
aletk/ResultMonad.py CHANGED
@@ -1,10 +1,11 @@
1
+ from dataclasses import dataclass
1
2
  from logging import Logger
2
3
  from typing import Any, Callable, NamedTuple
3
4
  from functools import wraps
4
5
 
5
6
 
6
-
7
- class Ok[T](NamedTuple):
7
+ @dataclass(slots=True, frozen=True)
8
+ class Ok[T]:
8
9
  """
9
10
  Model for the success case of a function in this project.
10
11
 
@@ -17,7 +18,8 @@ class Ok[T](NamedTuple):
17
18
  out: T
18
19
 
19
20
 
20
- class Err(NamedTuple):
21
+ @dataclass(slots=True, frozen=True)
22
+ class Err:
21
23
  """
22
24
  Model for the error case of a function in this project.
23
25
 
aletk/adapters.py CHANGED
@@ -1,7 +1,6 @@
1
1
  from typing import Callable, Generator, Iterator
2
2
 
3
3
 
4
-
5
4
  class ReusableGenerator[T]():
6
5
  """
7
6
  Adapter class to allow consuming a generator more than once. Usage example:
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.1
2
+ Name: aletk
3
+ Version: 0.1.4
4
+ Summary: Collection of general purpose tools to work with Python
5
+ Author-email: Luis Alejandro Bordo García <bgluiszz@gmail.com>
6
+ License: MIT
7
+ Project-URL: Repository, https://gitlab.com/alebg/aletk
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.13
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Typing :: Typed
14
+ Requires-Python: >=3.13
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: fuzzywuzzy
18
+ Requires-Dist: python-Levenshtein
19
+ Provides-Extra: dev
20
+ Requires-Dist: mypy; extra == "dev"
21
+ Requires-Dist: black; extra == "dev"
22
+ Requires-Dist: pytest; extra == "dev"
23
+ Requires-Dist: jupyter; extra == "dev"
24
+
25
+ # Ale's Python Toolkit
26
+
27
+ This is a collection of tools that I use to make my life easier when working with Python. I hope you find them useful too!
@@ -0,0 +1,10 @@
1
+ aletk/ResultMonad.py,sha256=v6BSIl7AHDfSqHypfLb5mBAQXAJQhXDLudbN8n2pK2s,7813
2
+ aletk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ aletk/adapters.py,sha256=9IYfIg1UYC0FbzWonMWdrUDgtVaV-q5NZKrRQubhBPw,659
4
+ aletk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ aletk/utils.py,sha256=nvG-fRt4qIr-hBOFcpLN27mC0EEp877k3sf72O1rBE0,3800
6
+ aletk-0.1.4.dist-info/LICENSE,sha256=hZFMbARrXo4zfuo80-Sg3-FT5_ceiSDf0QpjgJoUdGc,1085
7
+ aletk-0.1.4.dist-info/METADATA,sha256=Y1F_7WwS2cezeU_LS9T5A2aDODU3EOJBgdr9Zo8aSmw,980
8
+ aletk-0.1.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
9
+ aletk-0.1.4.dist-info/top_level.txt,sha256=LYDb8QWbh4W4hIkF0TVg5ITKEsaj-pb_xcYQRGzLqUU,6
10
+ aletk-0.1.4.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aletk
3
- Version: 0.1.1
4
- Classifier: Programming Language :: Python :: 3
5
- Classifier: License :: OSI Approved :: MIT License
6
- Classifier: Operating System :: OS Independent
7
- Requires-Python: >=3.13
8
- License-File: LICENSE
9
- Requires-Dist: fuzzywuzzy
10
- Requires-Dist: python-Levenshtein
11
- Provides-Extra: dev
12
- Requires-Dist: mypy; extra == "dev"
13
- Requires-Dist: black; extra == "dev"
14
- Requires-Dist: pytest; extra == "dev"
15
- Requires-Dist: jupyter; extra == "dev"
@@ -1,10 +0,0 @@
1
- aletk/ResultMonad.py,sha256=XPK1Ckg0L9u4iTJjUqHQIYT_RFdBlL47zm33GrGApG0,7732
2
- aletk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- aletk/adapters.py,sha256=xahzDbinDpxaomP-gzFZ5CcasFTD1CkjP2H8Ly7bM1M,660
4
- aletk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- aletk/utils.py,sha256=nvG-fRt4qIr-hBOFcpLN27mC0EEp877k3sf72O1rBE0,3800
6
- aletk-0.1.1.dist-info/LICENSE,sha256=hZFMbARrXo4zfuo80-Sg3-FT5_ceiSDf0QpjgJoUdGc,1085
7
- aletk-0.1.1.dist-info/METADATA,sha256=Nui56Cg09sTsLueO29rXR1gHgX8b2riYarGPIiZ2ttA,471
8
- aletk-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
9
- aletk-0.1.1.dist-info/top_level.txt,sha256=LYDb8QWbh4W4hIkF0TVg5ITKEsaj-pb_xcYQRGzLqUU,6
10
- aletk-0.1.1.dist-info/RECORD,,
File without changes
File without changes