aletk 0.1.0__tar.gz → 0.1.3__tar.gz

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-0.1.3/PKG-INFO ADDED
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: aletk
3
+ Version: 0.1.3
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 License
7
+
8
+ Copyright (c) 2024 Luis Alejandro Bordo García
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Classifier: Programming Language :: Python :: 3
29
+ Classifier: Programming Language :: Python :: 3.13
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: Intended Audience :: Developers
33
+ Requires-Python: >=3.13
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: fuzzywuzzy
37
+ Requires-Dist: python-Levenshtein
38
+ Provides-Extra: dev
39
+ Requires-Dist: mypy; extra == "dev"
40
+ Requires-Dist: black; extra == "dev"
41
+ Requires-Dist: pytest; extra == "dev"
42
+ Requires-Dist: jupyter; extra == "dev"
43
+
44
+ # Ale's Python Toolkit
45
+
46
+ 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,65 @@
1
+ [build-system]
2
+ requires = ["setuptools>=72", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "aletk"
7
+ description = "Collection of general purpose tools to work with Python"
8
+ version = "0.1.3"
9
+ requires-python = ">=3.13"
10
+ authors = [
11
+ {name = "Luis Alejandro Bordo García", email = "bgluiszz@gmail.com"},
12
+ ]
13
+ license = {file = "LICENSE"}
14
+ readme = "README.md"
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.13",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ "Intended Audience :: Developers",
21
+ ]
22
+ dependencies = [
23
+ "fuzzywuzzy",
24
+ "python-Levenshtein"
25
+ ]
26
+
27
+ [project.optional-dependencies]
28
+ dev = [
29
+ "mypy", # for static type checking
30
+ "black", # for code formatting
31
+ "pytest", # for testing
32
+ "jupyter" # for prototyping in notebooks
33
+ ]
34
+
35
+ [tool.setuptools.package-dir]
36
+ aletk = "src/aletk"
37
+
38
+ [tool.setuptools.packages.find]
39
+ where = ["src"]
40
+
41
+ [tool.setuptools.package-data]
42
+ "aletk" = ["py.typed"]
43
+
44
+ [tool.mypy]
45
+ python_version = "3.13"
46
+ strict = true
47
+ explicit_package_bases = true
48
+
49
+ [[tool.mypy.overrides]]
50
+ module = [
51
+ "fuzzywuzzy",
52
+ ]
53
+ ignore_missing_imports = true
54
+
55
+ [tool.black]
56
+ line-length = 120
57
+ target-version = ['py313']
58
+ include = '\.pyi?$'
59
+ skip-string-normalization = true
60
+ extend-exclude = '''
61
+ (
62
+ ^/foo.py # exclude a file named foo.py in the root of the project
63
+ | .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
64
+ )
65
+ '''
@@ -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
 
@@ -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,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: aletk
3
+ Version: 0.1.3
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 License
7
+
8
+ Copyright (c) 2024 Luis Alejandro Bordo García
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Classifier: Programming Language :: Python :: 3
29
+ Classifier: Programming Language :: Python :: 3.13
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: Intended Audience :: Developers
33
+ Requires-Python: >=3.13
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: fuzzywuzzy
37
+ Requires-Dist: python-Levenshtein
38
+ Provides-Extra: dev
39
+ Requires-Dist: mypy; extra == "dev"
40
+ Requires-Dist: black; extra == "dev"
41
+ Requires-Dist: pytest; extra == "dev"
42
+ Requires-Dist: jupyter; extra == "dev"
43
+
44
+ # Ale's Python Toolkit
45
+
46
+ 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,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/aletk/ResultMonad.py
5
+ src/aletk/__init__.py
6
+ src/aletk/adapters.py
7
+ src/aletk/utils.py
8
+ src/aletk.egg-info/PKG-INFO
9
+ src/aletk.egg-info/SOURCES.txt
10
+ src/aletk.egg-info/dependency_links.txt
11
+ src/aletk.egg-info/requires.txt
12
+ src/aletk.egg-info/top_level.txt
aletk-0.1.0/PKG-INFO DELETED
@@ -1,15 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aletk
3
- Version: 0.1.0
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,15 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aletk
3
- Version: 0.1.0
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,12 +0,0 @@
1
- LICENSE
2
- README.md
3
- setup.py
4
- aletk/ResultMonad.py
5
- aletk/__init__.py
6
- aletk/adapters.py
7
- aletk/utils.py
8
- aletk.egg-info/PKG-INFO
9
- aletk.egg-info/SOURCES.txt
10
- aletk.egg-info/dependency_links.txt
11
- aletk.egg-info/requires.txt
12
- aletk.egg-info/top_level.txt
aletk-0.1.0/setup.py DELETED
@@ -1,30 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name = "aletk",
5
- version = "0.1.0",
6
- packages = find_packages(
7
- exclude = [
8
- 'prototypes',
9
- 'tests',
10
- ]
11
- ),
12
- install_requires = [
13
- 'fuzzywuzzy',
14
- 'python-Levenshtein', # to improve performance of fuzzywuzzy
15
- ],
16
- extras_require={
17
- 'dev': [
18
- 'mypy', # for static type checking
19
- 'black', # for code formatting
20
- 'pytest', # for testing
21
- 'jupyter', # for prototyping in notebooks
22
- ],
23
- },
24
- classifiers = [
25
- "Programming Language :: Python :: 3",
26
- "License :: OSI Approved :: MIT License",
27
- "Operating System :: OS Independent",
28
- ],
29
- python_requires = '>=3.13',
30
- )
File without changes
File without changes
File without changes
File without changes
File without changes