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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: snackutils
3
- Version: 0.1.0
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
@@ -1,6 +1,8 @@
1
1
  # Snackutils
2
2
 
3
- Tiny utilities that could save you a few lines
3
+ Tiny utilities that could save you a few lines
4
+ [Github](https://github.com/Techrul/snackutils)
5
+ [PyPi](https://pypi.org/project/snackutils/)
4
6
  ## Install
5
7
 
6
8
  ```bash
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "snackutils"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Tiny, dependency-free utilities that might save you a few lines."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -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(list)
73
+ return sum(numbers) / len(numbers)
72
74
 
73
75
  mean_list = average_list
File without changes
File without changes