good-utilities 0.1.37__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.
Potentially problematic release.
This version of good-utilities might be problematic. Click here for more details.
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: good-utilities
|
|
3
|
+
Version: 0.1.37
|
|
4
|
+
Summary: Collection of utility functions
|
|
5
|
+
Author: SmartCookie
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# Good Utilities
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 📦 Overview
|
|
21
|
+
|
|
22
|
+
**Good Utilities** is a powerful and flexible Python package that provides a comprehensive collection of utility functions to simplify and speed up your development workflow. Whether you're working with files, text, images, or data, this package offers essential tools designed for efficiency and ease of use.
|
|
23
|
+
|
|
24
|
+
Say goodbye to repetitive coding tasks and focus on building great applications!
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🚀 Features
|
|
29
|
+
|
|
30
|
+
- **Comprehensive Utility Modules:** Organized modules for file handling, text processing, image manipulation, networking, and more.
|
|
31
|
+
- **Clean and Readable Code:** Designed with simplicity and readability in mind, making it easy to integrate into any project.
|
|
32
|
+
- **Type Hints Included:** All functions include type hints for better development experience and fewer bugs.
|
|
33
|
+
- **Lightweight and Fast:** Minimal dependencies ensure quick installation and execution.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 🛠 Installation
|
|
38
|
+
|
|
39
|
+
Install the package using **Poetry**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
poetry add good-utilities
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Or via **pip**:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install good-utilities
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 🤝 Contributing
|
|
54
|
+
|
|
55
|
+
We welcome contributions! Feel free to open issues or submit pull requests to improve **Good Utilities**.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 📜 License
|
|
60
|
+
|
|
61
|
+
This project is licensed under the MIT License.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 💡 Future Plans
|
|
66
|
+
|
|
67
|
+
- Expand utility modules with more advanced features.
|
|
68
|
+
- Optimize performance for large-scale applications.
|
|
69
|
+
- Provide detailed documentation and examples.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 🔗 Connect
|
|
74
|
+
|
|
75
|
+
For feedback or suggestions, feel free to reach out!
|
|
76
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
# Good Utilities
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 📦 Overview
|
|
7
|
+
|
|
8
|
+
**Good Utilities** is a powerful and flexible Python package that provides a comprehensive collection of utility functions to simplify and speed up your development workflow. Whether you're working with files, text, images, or data, this package offers essential tools designed for efficiency and ease of use.
|
|
9
|
+
|
|
10
|
+
Say goodbye to repetitive coding tasks and focus on building great applications!
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🚀 Features
|
|
15
|
+
|
|
16
|
+
- **Comprehensive Utility Modules:** Organized modules for file handling, text processing, image manipulation, networking, and more.
|
|
17
|
+
- **Clean and Readable Code:** Designed with simplicity and readability in mind, making it easy to integrate into any project.
|
|
18
|
+
- **Type Hints Included:** All functions include type hints for better development experience and fewer bugs.
|
|
19
|
+
- **Lightweight and Fast:** Minimal dependencies ensure quick installation and execution.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 🛠 Installation
|
|
24
|
+
|
|
25
|
+
Install the package using **Poetry**:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
poetry add good-utilities
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or via **pip**:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install good-utilities
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🤝 Contributing
|
|
40
|
+
|
|
41
|
+
We welcome contributions! Feel free to open issues or submit pull requests to improve **Good Utilities**.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 📜 License
|
|
46
|
+
|
|
47
|
+
This project is licensed under the MIT License.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 💡 Future Plans
|
|
52
|
+
|
|
53
|
+
- Expand utility modules with more advanced features.
|
|
54
|
+
- Optimize performance for large-scale applications.
|
|
55
|
+
- Provide detailed documentation and examples.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🔗 Connect
|
|
60
|
+
|
|
61
|
+
For feedback or suggestions, feel free to reach out!
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Date utility functions
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
|
|
5
|
+
def get_days_between_dates(start_date: str, end_date: str) -> int:
|
|
6
|
+
"""
|
|
7
|
+
Calculate the number of days between two dates.
|
|
8
|
+
|
|
9
|
+
Parameters:
|
|
10
|
+
start_date (str): The start date in 'YYYY-MM-DD' format.
|
|
11
|
+
end_date (str): The end date in 'YYYY-MM-DD' format.
|
|
12
|
+
|
|
13
|
+
Returns:
|
|
14
|
+
int: The number of days between the two dates. Returns a negative number if the start date is after the end date.
|
|
15
|
+
|
|
16
|
+
Imports:
|
|
17
|
+
import datetime
|
|
18
|
+
"""
|
|
19
|
+
start = datetime.datetime.strptime(start_date, '%Y-%m-%d')
|
|
20
|
+
end = datetime.datetime.strptime(end_date, '%Y-%m-%d')
|
|
21
|
+
return (end - start).days
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Name utility functions
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import uuid
|
|
5
|
+
|
|
6
|
+
def generate_unique_name(prefix: str) -> str:
|
|
7
|
+
"""
|
|
8
|
+
Generate a unique name based on UUID and current timestamp.
|
|
9
|
+
|
|
10
|
+
Parameters:
|
|
11
|
+
prefix (str): A prefix to prepend to the unique name.
|
|
12
|
+
|
|
13
|
+
Returns:
|
|
14
|
+
str: A unique name combining the prefix, UUID, and current timestamp.
|
|
15
|
+
|
|
16
|
+
Imports:
|
|
17
|
+
import uuid
|
|
18
|
+
import datetime
|
|
19
|
+
"""
|
|
20
|
+
unique_id = uuid.uuid4()
|
|
21
|
+
timestamp = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
|
|
22
|
+
return f'{prefix}_{unique_id}_{timestamp}'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "good-utilities"
|
|
3
|
+
version = "0.1.37"
|
|
4
|
+
description = "Collection of utility functions"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.9"
|
|
7
|
+
dependencies = []
|
|
8
|
+
[[project.authors]]
|
|
9
|
+
name = "SmartCookie"
|
|
10
|
+
|
|
11
|
+
[build-system]
|
|
12
|
+
requires = [ "poetry-core>=2.0.0,<3.0.0",]
|
|
13
|
+
build-backend = "poetry.core.masonry.api"
|