hmkkit 1.0.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.
@@ -0,0 +1,48 @@
1
+ HMKKIT – COPYRIGHT & USAGE LICENSE
2
+
3
+ Copyright © 2026 Hmkings. All Rights Reserved.
4
+
5
+ HmkKit is an original software project created and developed by Hmkings. All original code, functions, modules, and other project components are owned by Hmkings.
6
+
7
+ 1. Permitted Use
8
+
9
+ You are explicitly allowed to:
10
+
11
+ - Use HmkKit for personal, educational, and non-commercial purposes.
12
+ - Download and keep private copies of the software.
13
+ - Modify your private copies for your own use.
14
+ - Experiment with the code and learn from its implementation.
15
+
16
+ No additional permission is required for these permitted activities.
17
+
18
+ 2. Restrictions
19
+
20
+ Without prior written permission from Hmkings, you may not:
21
+
22
+ - Redistribute or publicly share the original software.
23
+ - Publish modified versions of HmkKit.
24
+ - Reupload the project or its source code to other platforms.
25
+ - Claim authorship or ownership of the original project.
26
+ - Sell, sublicense, or commercially redistribute HmkKit.
27
+
28
+ 3. Permission Requests
29
+
30
+ If you wish to redistribute, republish, commercially use, or otherwise use HmkKit beyond the permissions listed above, you must obtain written authorization from the copyright owner.
31
+
32
+ Primary contact:
33
+ hmkings37@gmail.com
34
+
35
+ Secondary contact:
36
+ hmkhmk@gmail.com
37
+
38
+ 4. Ownership
39
+
40
+ Creating a private copy or modifying the software for personal use does not transfer ownership of the original project.
41
+
42
+ All original intellectual property remains the property of Hmkings.
43
+
44
+ ---
45
+
46
+ Created, developed, and owned by Hmkings.
47
+
48
+ Copyright © 2026 Hmkings. All Rights Reserved.
@@ -0,0 +1,52 @@
1
+ Version 1.0
2
+
3
+ 1. PERMITTED ACTIVITIES
4
+
5
+ Users are allowed to:
6
+
7
+ - Use HmkKit for personal, educational, and non-commercial purposes.
8
+ - Download and keep private copies.
9
+ - Modify private copies for personal use.
10
+ - Study the source code and use it for learning.
11
+
12
+ No additional permission is required for these activities.
13
+
14
+ 2. RESTRICTED ACTIVITIES
15
+
16
+ Without prior written permission from Hmkings, users may not:
17
+
18
+ - Publicly redistribute or share HmkKit.
19
+ - Publish or distribute modified versions.
20
+ - Upload the original source code to other public platforms.
21
+ - Sell or commercially distribute HmkKit.
22
+ - Claim ownership or authorship of HmkKit's original code.
23
+
24
+ 3. MODIFICATIONS
25
+
26
+ Users may modify their own private copies.
27
+
28
+ However, permission to modify a private copy does not grant permission to publish, distribute, or commercially use that modified version.
29
+
30
+ 4. PERMISSION REQUESTS
31
+
32
+ Written authorization is required for activities restricted by this license.
33
+
34
+ Primary contact:
35
+ hmkings37@gmail.com
36
+
37
+ Secondary contact:
38
+ hmkhmk@gmail.com
39
+
40
+ 5. DISCLAIMER
41
+
42
+ HmkKit is provided "AS IS", without warranties of any kind, to the extent permitted by applicable law.
43
+
44
+ 6. ACCEPTANCE
45
+
46
+ By using or distributing HmkKit, users agree to comply with the applicable terms of this license.
47
+
48
+ ---
49
+
50
+ HmkKit
51
+ Created and developed by Hmkings.
52
+ Version 1.0
hmkkit-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: hmkkit
3
+ Version: 1.0.0
4
+ Summary: A collection of useful Python functions created by Hmkings.
5
+ Author-email: Hmkings <hmkings37@gmail.com>
6
+ License-Expression: LicenseRef-HmkKit
7
+ Keywords: hmkkit,python,utilities,math,random,strings
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/plain
14
+ License-File: LICENSE.txt
15
+ License-File: IMPORTANT.txt
16
+ Dynamic: license-file
17
+
18
+ ==================================================
19
+ HMKKIT
20
+ Python Utility Library
21
+
22
+ Created and developed by Hmkings.
23
+
24
+ ABOUT
25
+
26
+ HmkKit is a Python library containing a collection
27
+ of useful functions for mathematics, random
28
+ generation, string manipulation, and general
29
+ utilities.
30
+
31
+ It is designed to make common operations easier
32
+ to use through simple Python functions.
33
+
34
+ AUTHOR
35
+
36
+ Hmkings
37
+
38
+ VERSION
39
+
40
+ 1.0.0
41
+
42
+ MODULES
43
+
44
+ 1. hmkmath.py
45
+ Mathematical functions, including:
46
+
47
+ - Average
48
+ - Percentage and per-mille
49
+ - Even and odd checks
50
+ - Prime number checks
51
+ - Factors
52
+ - Midpoint
53
+ - Distance
54
+ - Root
55
+
56
+ 2. hmkrandom.py
57
+ Random generation functions, including:
58
+
59
+ - Dice
60
+ - Random integer from 0 to 100
61
+ - Random decimal from 0 to 100
62
+
63
+ 3. hmkstr.py
64
+ String functions, including:
65
+
66
+ - Character counting
67
+ - Isogram checking
68
+ - Reversing strings
69
+ - Palindrome checking
70
+
71
+ 4. hmkutilities.py
72
+ General utility functions.
73
+
74
+ INSTALLATION
75
+
76
+ PyPI installation:
77
+
78
+ pip install hmkkit
79
+
80
+ Alternatively, download the ZIP distribution
81
+ and extract the package manually.
82
+
83
+ USAGE
84
+
85
+ Import the library:
86
+
87
+ import hmkkit
88
+
89
+ Example:
90
+
91
+ print(hmkkit.average(10, 20, 30))
92
+ print(hmkkit.prime(17))
93
+ hmkkit.inspect("Hello")
94
+
95
+ Import individual modules:
96
+
97
+ from hmkkit import hmkmath
98
+ from hmkkit import hmkrandom
99
+ from hmkkit import hmkstr
100
+
101
+ Example:
102
+
103
+ print(hmkmath.midpoint(10, 20))
104
+ print(hmkrandom.dice())
105
+ print(hmkstr.reverse("Hello"))
106
+
107
+ COPYRIGHT AND LICENSE
108
+
109
+ Copyright © 2026 Hmkings.
110
+
111
+ HmkKit is subject to its accompanying custom
112
+ software license.
113
+
114
+ Personal use, educational use, private copies,
115
+ and private modifications are permitted.
116
+
117
+ Public redistribution and other restricted
118
+ activities require prior written permission.
119
+
120
+ See LICENSE.txt and IMPORTANT.txt for details.
121
+
122
+ CONTACT
123
+
124
+ Primary:
125
+ hmkings37@gmail.com
126
+
127
+ Secondary:
128
+ hmkhmk@gmail.com
129
+
130
+ ==================================================
131
+ HmkKit - Made by Hmkings
132
+ 🦍
133
+
@@ -0,0 +1,116 @@
1
+ ==================================================
2
+ HMKKIT
3
+ Python Utility Library
4
+
5
+ Created and developed by Hmkings.
6
+
7
+ ABOUT
8
+
9
+ HmkKit is a Python library containing a collection
10
+ of useful functions for mathematics, random
11
+ generation, string manipulation, and general
12
+ utilities.
13
+
14
+ It is designed to make common operations easier
15
+ to use through simple Python functions.
16
+
17
+ AUTHOR
18
+
19
+ Hmkings
20
+
21
+ VERSION
22
+
23
+ 1.0.0
24
+
25
+ MODULES
26
+
27
+ 1. hmkmath.py
28
+ Mathematical functions, including:
29
+
30
+ - Average
31
+ - Percentage and per-mille
32
+ - Even and odd checks
33
+ - Prime number checks
34
+ - Factors
35
+ - Midpoint
36
+ - Distance
37
+ - Root
38
+
39
+ 2. hmkrandom.py
40
+ Random generation functions, including:
41
+
42
+ - Dice
43
+ - Random integer from 0 to 100
44
+ - Random decimal from 0 to 100
45
+
46
+ 3. hmkstr.py
47
+ String functions, including:
48
+
49
+ - Character counting
50
+ - Isogram checking
51
+ - Reversing strings
52
+ - Palindrome checking
53
+
54
+ 4. hmkutilities.py
55
+ General utility functions.
56
+
57
+ INSTALLATION
58
+
59
+ PyPI installation:
60
+
61
+ pip install hmkkit
62
+
63
+ Alternatively, download the ZIP distribution
64
+ and extract the package manually.
65
+
66
+ USAGE
67
+
68
+ Import the library:
69
+
70
+ import hmkkit
71
+
72
+ Example:
73
+
74
+ print(hmkkit.average(10, 20, 30))
75
+ print(hmkkit.prime(17))
76
+ hmkkit.inspect("Hello")
77
+
78
+ Import individual modules:
79
+
80
+ from hmkkit import hmkmath
81
+ from hmkkit import hmkrandom
82
+ from hmkkit import hmkstr
83
+
84
+ Example:
85
+
86
+ print(hmkmath.midpoint(10, 20))
87
+ print(hmkrandom.dice())
88
+ print(hmkstr.reverse("Hello"))
89
+
90
+ COPYRIGHT AND LICENSE
91
+
92
+ Copyright © 2026 Hmkings.
93
+
94
+ HmkKit is subject to its accompanying custom
95
+ software license.
96
+
97
+ Personal use, educational use, private copies,
98
+ and private modifications are permitted.
99
+
100
+ Public redistribution and other restricted
101
+ activities require prior written permission.
102
+
103
+ See LICENSE.txt and IMPORTANT.txt for details.
104
+
105
+ CONTACT
106
+
107
+ Primary:
108
+ hmkings37@gmail.com
109
+
110
+ Secondary:
111
+ hmkhmk@gmail.com
112
+
113
+ ==================================================
114
+ HmkKit - Made by Hmkings
115
+ 🦍
116
+
@@ -0,0 +1,4 @@
1
+ from .hmkmath import *
2
+ from .hmkstr import *
3
+ from .hmkutilities import *
4
+ from .hmkrandom import *
@@ -0,0 +1,16 @@
1
+ def average(*x) -> float: return sum(x)/len(x)
2
+ def multiplier(x): return lambda u: x*u
3
+ def divider(x): return lambda y: x/y
4
+ def incrementer(x): return lambda y: x+y
5
+ def decrementer(x): return lambda y: x-y
6
+ def percentage(x,y) -> float: return x/y*100
7
+ def per_mille(x,y) -> float: return x/y*1000
8
+ def even(x) -> bool: return x%2==0
9
+ def parity(x) -> str: return "even" if x%2==0 else "odd"
10
+ def odd(x) -> bool: return x%2==1
11
+ def composite(x) -> bool: return x > 1 and not prime(x)
12
+ def clamp(x, y, z): return max(y, min(x, z))
13
+ def sign(x): return (x > 0) - (x < 0)
14
+ def prime(x) -> bool: return x > 1 and all(x % i for i in range(2, int(x**0.5)+1))
15
+ def primality(x) -> str: return "prime" if prime(x) else "composite"if composite(x) else "neither"
16
+ def perfect(x) -> bool: return x > 1 and sum(i for i in range(1,x) if x%i==0)==x
@@ -0,0 +1,6 @@
1
+ import random
2
+ from random import randint
3
+
4
+ def dice() -> int: return randint(1,6)
5
+ def randhun() -> int: return randint(0,100)
6
+ def uniformhun() -> float: return random.uniform(0,100)
@@ -0,0 +1,4 @@
1
+ def count(x) -> str: return str(len(str(x)))
2
+ def isogram(x) -> bool: return len(set(x.casefold()))==len(x.casefold())
3
+ def reverse(x): return x[::-1]
4
+ def palindrome(x): return x == x[::-1]
@@ -0,0 +1,17 @@
1
+ def inspect(x) -> None: print(x); print(type(x))
2
+ def noop() -> None: pass
3
+ def flatten(x) -> list: return [i for sub in x for i in sub]
4
+ def unique(x) -> list: return list(dict.fromkeys(x))
5
+ def frequency(x) -> dict: return {i: x.count(i) for i in set(x)}
6
+ def empty(x) -> bool: return len(x)==0
7
+ def exists(x) -> bool: return len(x)>0
8
+ def between(x,y,z) -> bool: return y<=x<=z
9
+ def sign(x) -> int: return (x>0)-(x<0)
10
+ def timestamp() -> float:
11
+ import time; return time.time()
12
+ def elapsed(x) -> float:
13
+ import time; return time.time()-x
14
+ def filesize(x) -> int:
15
+ import os; return os.path.getsize(x)
16
+ def existsfile(x) -> bool:
17
+ import os; return os.path.exists(x)
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: hmkkit
3
+ Version: 1.0.0
4
+ Summary: A collection of useful Python functions created by Hmkings.
5
+ Author-email: Hmkings <hmkings37@gmail.com>
6
+ License-Expression: LicenseRef-HmkKit
7
+ Keywords: hmkkit,python,utilities,math,random,strings
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/plain
14
+ License-File: LICENSE.txt
15
+ License-File: IMPORTANT.txt
16
+ Dynamic: license-file
17
+
18
+ ==================================================
19
+ HMKKIT
20
+ Python Utility Library
21
+
22
+ Created and developed by Hmkings.
23
+
24
+ ABOUT
25
+
26
+ HmkKit is a Python library containing a collection
27
+ of useful functions for mathematics, random
28
+ generation, string manipulation, and general
29
+ utilities.
30
+
31
+ It is designed to make common operations easier
32
+ to use through simple Python functions.
33
+
34
+ AUTHOR
35
+
36
+ Hmkings
37
+
38
+ VERSION
39
+
40
+ 1.0.0
41
+
42
+ MODULES
43
+
44
+ 1. hmkmath.py
45
+ Mathematical functions, including:
46
+
47
+ - Average
48
+ - Percentage and per-mille
49
+ - Even and odd checks
50
+ - Prime number checks
51
+ - Factors
52
+ - Midpoint
53
+ - Distance
54
+ - Root
55
+
56
+ 2. hmkrandom.py
57
+ Random generation functions, including:
58
+
59
+ - Dice
60
+ - Random integer from 0 to 100
61
+ - Random decimal from 0 to 100
62
+
63
+ 3. hmkstr.py
64
+ String functions, including:
65
+
66
+ - Character counting
67
+ - Isogram checking
68
+ - Reversing strings
69
+ - Palindrome checking
70
+
71
+ 4. hmkutilities.py
72
+ General utility functions.
73
+
74
+ INSTALLATION
75
+
76
+ PyPI installation:
77
+
78
+ pip install hmkkit
79
+
80
+ Alternatively, download the ZIP distribution
81
+ and extract the package manually.
82
+
83
+ USAGE
84
+
85
+ Import the library:
86
+
87
+ import hmkkit
88
+
89
+ Example:
90
+
91
+ print(hmkkit.average(10, 20, 30))
92
+ print(hmkkit.prime(17))
93
+ hmkkit.inspect("Hello")
94
+
95
+ Import individual modules:
96
+
97
+ from hmkkit import hmkmath
98
+ from hmkkit import hmkrandom
99
+ from hmkkit import hmkstr
100
+
101
+ Example:
102
+
103
+ print(hmkmath.midpoint(10, 20))
104
+ print(hmkrandom.dice())
105
+ print(hmkstr.reverse("Hello"))
106
+
107
+ COPYRIGHT AND LICENSE
108
+
109
+ Copyright © 2026 Hmkings.
110
+
111
+ HmkKit is subject to its accompanying custom
112
+ software license.
113
+
114
+ Personal use, educational use, private copies,
115
+ and private modifications are permitted.
116
+
117
+ Public redistribution and other restricted
118
+ activities require prior written permission.
119
+
120
+ See LICENSE.txt and IMPORTANT.txt for details.
121
+
122
+ CONTACT
123
+
124
+ Primary:
125
+ hmkings37@gmail.com
126
+
127
+ Secondary:
128
+ hmkhmk@gmail.com
129
+
130
+ ==================================================
131
+ HmkKit - Made by Hmkings
132
+ 🦍
133
+
@@ -0,0 +1,13 @@
1
+ IMPORTANT.txt
2
+ LICENSE.txt
3
+ README.txt
4
+ pyproject.toml
5
+ hmkkit/__init__.py
6
+ hmkkit/hmkmath.py
7
+ hmkkit/hmkrandom.py
8
+ hmkkit/hmkstr.py
9
+ hmkkit/hmkutilities.py
10
+ hmkkit.egg-info/PKG-INFO
11
+ hmkkit.egg-info/SOURCES.txt
12
+ hmkkit.egg-info/dependency_links.txt
13
+ hmkkit.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ hmkkit
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "hmkkit"
7
+ version = "1.0.0"
8
+ description = "A collection of useful Python functions created by Hmkings."
9
+ readme = "README.txt"
10
+ requires-python = ">=3.10"
11
+ license = "LicenseRef-HmkKit"
12
+ license-files = ["LICENSE.txt", "IMPORTANT.txt"]
13
+
14
+ authors = [
15
+ {name = "Hmkings", email = "hmkings37@gmail.com"}
16
+ ]
17
+
18
+ keywords = [
19
+ "hmkkit",
20
+ "python",
21
+ "utilities",
22
+ "math",
23
+ "random",
24
+ "strings"
25
+ ]
26
+
27
+ classifiers = [
28
+ "Programming Language :: Python :: 3",
29
+ "Operating System :: OS Independent",
30
+ "Intended Audience :: Developers",
31
+ "Topic :: Software Development :: Libraries :: Python Modules"
32
+ ]
33
+
34
+ [tool.setuptools]
35
+ packages = ["hmkkit"]
hmkkit-1.0.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+