aletk 0.1.1__tar.gz → 0.1.4__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.4/PKG-INFO ADDED
@@ -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,69 @@
1
+ [build-system]
2
+ requires = ["setuptools>=75.6.0", "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.4"
9
+ requires-python = ">=3.13"
10
+ authors = [
11
+ {name = "Luis Alejandro Bordo García", email = "bgluiszz@gmail.com"},
12
+ ]
13
+ license = {text = "MIT"}
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
+ "Typing :: Typed",
22
+ ]
23
+ dependencies = [
24
+ "fuzzywuzzy",
25
+ "python-Levenshtein"
26
+ ]
27
+
28
+ [project.urls]
29
+ Repository = "https://gitlab.com/alebg/aletk"
30
+
31
+ [project.optional-dependencies]
32
+ dev = [
33
+ "mypy", # for static type checking
34
+ "black", # for code formatting
35
+ "pytest", # for testing
36
+ "jupyter" # for prototyping in notebooks
37
+ ]
38
+
39
+ [tool.setuptools.package-dir]
40
+ aletk = "src/aletk"
41
+
42
+ [tool.setuptools.packages.find]
43
+ where = ["src"]
44
+
45
+ [tool.setuptools.package-data]
46
+ "aletk" = ["py.typed"]
47
+
48
+ [tool.mypy]
49
+ python_version = "3.13"
50
+ strict = true
51
+ explicit_package_bases = true
52
+
53
+ [[tool.mypy.overrides]]
54
+ module = [
55
+ "fuzzywuzzy",
56
+ ]
57
+ ignore_missing_imports = true
58
+
59
+ [tool.black]
60
+ line-length = 120
61
+ target-version = ['py313']
62
+ include = '\.pyi?$'
63
+ skip-string-normalization = true
64
+ extend-exclude = '''
65
+ (
66
+ ^/foo.py # exclude a file named foo.py in the root of the project
67
+ | .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
68
+ )
69
+ '''
@@ -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,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,13 @@
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/py.typed
8
+ src/aletk/utils.py
9
+ src/aletk.egg-info/PKG-INFO
10
+ src/aletk.egg-info/SOURCES.txt
11
+ src/aletk.egg-info/dependency_links.txt
12
+ src/aletk.egg-info/requires.txt
13
+ src/aletk.egg-info/top_level.txt
aletk-0.1.1/PKG-INFO DELETED
@@ -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,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,13 +0,0 @@
1
- LICENSE
2
- README.md
3
- setup.py
4
- aletk/ResultMonad.py
5
- aletk/__init__.py
6
- aletk/adapters.py
7
- aletk/py.typed
8
- aletk/utils.py
9
- aletk.egg-info/PKG-INFO
10
- aletk.egg-info/SOURCES.txt
11
- aletk.egg-info/dependency_links.txt
12
- aletk.egg-info/requires.txt
13
- aletk.egg-info/top_level.txt
aletk-0.1.1/setup.py DELETED
@@ -1,33 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name = "aletk",
5
- version = "0.1.1",
6
- packages = find_packages(
7
- exclude = [
8
- 'prototypes',
9
- 'tests',
10
- ]
11
- ),
12
- package_data = {
13
- 'aletk': ['py.typed'],
14
- },
15
- install_requires = [
16
- 'fuzzywuzzy',
17
- 'python-Levenshtein', # to improve performance of fuzzywuzzy
18
- ],
19
- extras_require={
20
- 'dev': [
21
- 'mypy', # for static type checking
22
- 'black', # for code formatting
23
- 'pytest', # for testing
24
- 'jupyter', # for prototyping in notebooks
25
- ],
26
- },
27
- classifiers = [
28
- "Programming Language :: Python :: 3",
29
- "License :: OSI Approved :: MIT License",
30
- "Operating System :: OS Independent",
31
- ],
32
- python_requires = '>=3.13',
33
- )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes