snackutils 0.1.0__tar.gz → 0.1.2__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.
- {snackutils-0.1.0 → snackutils-0.1.2}/PKG-INFO +4 -2
- {snackutils-0.1.0 → snackutils-0.1.2}/README.md +3 -1
- {snackutils-0.1.0 → snackutils-0.1.2}/pyproject.toml +1 -1
- {snackutils-0.1.0 → snackutils-0.1.2}/src/snackutils/utils.py +3 -1
- {snackutils-0.1.0 → snackutils-0.1.2}/.github/workflows/publish.yml +0 -0
- {snackutils-0.1.0 → snackutils-0.1.2}/.gitignore +0 -0
- {snackutils-0.1.0 → snackutils-0.1.2}/LICENSE +0 -0
- {snackutils-0.1.0 → snackutils-0.1.2}/src/snackutils/__init__.py +0 -0
- {snackutils-0.1.0 → snackutils-0.1.2}/src/snackutils/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: snackutils
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Tiny, dependency-free utilities that might save you a few lines.
|
|
5
5
|
Project-URL: Homepage, https://github.com/techrul/snackutils
|
|
6
6
|
Author: Techrul
|
|
@@ -14,7 +14,9 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
|
|
15
15
|
# Snackutils
|
|
16
16
|
|
|
17
|
-
Tiny utilities that could save you a few lines
|
|
17
|
+
Tiny utilities that could save you a few lines
|
|
18
|
+
[Github](https://github.com/Techrul/snackutils)
|
|
19
|
+
[PyPi](https://pypi.org/project/snackutils/)
|
|
18
20
|
## Install
|
|
19
21
|
|
|
20
22
|
```bash
|
|
@@ -55,6 +55,8 @@ def detect_os() -> str: #I made this as readable as possible in my opinion
|
|
|
55
55
|
return "Windows"
|
|
56
56
|
elif name == "darwin":
|
|
57
57
|
return "MacOS"
|
|
58
|
+
elif name == "ios":
|
|
59
|
+
return "iOS"
|
|
58
60
|
else:
|
|
59
61
|
return name.title()
|
|
60
62
|
|
|
@@ -68,6 +70,6 @@ mean = average
|
|
|
68
70
|
# --------------------------------------------------------------------------
|
|
69
71
|
|
|
70
72
|
def average_list(numbers: list[float]) -> float:
|
|
71
|
-
return sum(numbers) / len(
|
|
73
|
+
return sum(numbers) / len(numbers)
|
|
72
74
|
|
|
73
75
|
mean_list = average_list
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|