klaatu-python 2.5.0__tar.gz → 2.6.0__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.
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/PKG-INFO +3 -1
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/README.md +2 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/pyproject.toml +2 -2
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/iterables.py +9 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/LICENSE +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/__init__.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/case.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/lock.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/__init__.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/dicts.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/numbers.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/paths.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/strings.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/time.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/urls.py +0 -0
- {klaatu_python-2.5.0 → klaatu_python-2.6.0}/src/klaatu_python/utils/various.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: klaatu-python
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
4
4
|
Author: Robert Huselius
|
|
5
5
|
Author-email: Robert Huselius <robert@huseli.us>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -13,6 +13,8 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
|
|
14
14
|
# klaatu-python
|
|
15
15
|
|
|
16
|
+
<img width="500" alt="thisprojectwascodedbyahumanbeing-wordart" src="https://github.com/user-attachments/assets/83071cfd-5aec-4a4d-897d-8aa4a933fa31" />
|
|
17
|
+
|
|
16
18
|
A bunch of more or less useful Python utils without _any_ 3rd party dependencies.
|
|
17
19
|
|
|
18
20
|
## Development install
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# klaatu-python
|
|
2
2
|
|
|
3
|
+
<img width="500" alt="thisprojectwascodedbyahumanbeing-wordart" src="https://github.com/user-attachments/assets/83071cfd-5aec-4a4d-897d-8aa4a933fa31" />
|
|
4
|
+
|
|
3
5
|
A bunch of more or less useful Python utils without _any_ 3rd party dependencies.
|
|
4
6
|
|
|
5
7
|
## Development install
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.9.7
|
|
2
|
+
requires = ["uv_build>=0.9.7"]
|
|
3
3
|
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
@@ -11,7 +11,7 @@ license-files = ["LICENSE"]
|
|
|
11
11
|
name = "klaatu-python"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.10"
|
|
14
|
-
version = "2.
|
|
14
|
+
version = "2.6.0"
|
|
15
15
|
|
|
16
16
|
[project.urls]
|
|
17
17
|
Homepage = "https://github.com/Eboreg/klaatu-python"
|
|
@@ -128,3 +128,12 @@ def partition(items: Sequence[_T], length: int) -> Iterator[Sequence[_T]]:
|
|
|
128
128
|
while offset == 0 or offset < len(items):
|
|
129
129
|
yield items[offset : offset + length]
|
|
130
130
|
offset += length
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def seq_contains_seq(container: Sequence, containee: Sequence) -> bool:
|
|
134
|
+
if len(containee) > len(container):
|
|
135
|
+
return False
|
|
136
|
+
for idx in range(len(container) - len(containee) + 1):
|
|
137
|
+
if container[idx : idx + len(containee)] == containee:
|
|
138
|
+
return True
|
|
139
|
+
return False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|