datafun-muhammadbilal 0.1.0__py3-none-any.whl

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.
datafun/__init__.py ADDED
@@ -0,0 +1,12 @@
1
+ """
2
+ datafun - A simple library for additional math and string operations
3
+ """
4
+
5
+ from .math_helpers import square, cube, is_even, is_odd
6
+ from .string_helpers import count_vowels, is_palindrome, to_lowercase, capitalize_words
7
+
8
+ __version__ = "0.1.0"
9
+ __all__ = [
10
+ 'square', 'cube', 'is_even', 'is_odd',
11
+ 'count_vowels', 'is_palindrome', 'to_lowercase', 'capitalize_words'
12
+ ]
@@ -0,0 +1,15 @@
1
+ def square(n):
2
+ """Returns the square of a number."""
3
+ return n * n
4
+
5
+ def cube(n):
6
+ """Returns the cube of a number."""
7
+ return n * n * n
8
+
9
+ def is_even(n):
10
+ """Returns True if the number is even, False otherwise."""
11
+ return n % 2 == 0
12
+
13
+ def is_odd(n):
14
+ """Returns True if the number is odd, False otherwise."""
15
+ return n % 2 != 0
@@ -0,0 +1,17 @@
1
+ def count_vowels(text):
2
+ """Returns the number of vowels in a string."""
3
+ vowels = "aeiouAEIOU"
4
+ return sum(1 for char in text if char in vowels)
5
+
6
+ def is_palindrome(text):
7
+ """Returns True if the string is a palindrome, False otherwise."""
8
+ cleaned = ''.join(char.lower() for char in text if char.isalnum())
9
+ return cleaned == cleaned[::-1]
10
+
11
+ def to_lowercase(text):
12
+ """Converts a string to lowercase."""
13
+ return text.lower()
14
+
15
+ def capitalize_words(text):
16
+ """Capitalizes the first letter of each word in a string."""
17
+ return text.title()
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: datafun-muhammadbilal
3
+ Version: 0.1.0
4
+ Summary: A simple library for basic list and dict operations
5
+ Author: Muhammad Bilal
6
+ Author-email: evolvoria@gmail.com
7
+ Requires-Python: >=3.6
8
+ Dynamic: author
9
+ Dynamic: author-email
10
+ Dynamic: requires-python
11
+ Dynamic: summary
@@ -0,0 +1,7 @@
1
+ datafun/__init__.py,sha256=36YGGNSLVkJRb1LgqqhFULeYfJZWdvroxErRfbBgtHs,374
2
+ datafun/math_helpers.py,sha256=NqTmY8HmiHUG0gAsiLdIQ6dwyEgZEliENUdDvEoLkvA,351
3
+ datafun/string_helpers.py,sha256=uF5NRAzQes-jlUNNe3HidD2nx4xLd2-GxwM4TwzoQ8A,568
4
+ datafun_muhammadbilal-0.1.0.dist-info/METADATA,sha256=-S1OOq8jeJ-pNmWHgX4cdtJ_IcfTdrPY02VbYTK-Oyc,297
5
+ datafun_muhammadbilal-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ datafun_muhammadbilal-0.1.0.dist-info/top_level.txt,sha256=u8iiAmElhJnaH1PV1_VLIuuN5Q5JwvJ-UwI4NTIETj4,8
7
+ datafun_muhammadbilal-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ datafun