studybuddy-tools 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.
studybuddy/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ # This makes the studybuddy folder a Python module!
2
+ from . import math_helper
3
+ from . import string_helper
@@ -0,0 +1,22 @@
1
+ # Math Utility Functions for Students!
2
+
3
+ def add_numbers(a, b):
4
+ # This function helps you add two numbers together
5
+ return a + b
6
+
7
+ def percentage(marks, total):
8
+ # This function helps you calculate your percentage from marks obtained and total marks!
9
+ if total == 0:
10
+ return 0.0 # Avoid division by zero!
11
+ return (marks / total) * 100
12
+
13
+ def average(numbers_list):
14
+ # This function returns the average of a list of numbers
15
+ if len(numbers_list) == 0:
16
+ return 0.0
17
+ total_sum = sum(numbers_list)
18
+ return total_sum / len(numbers_list)
19
+
20
+ def is_even(n):
21
+ # This function returns True if a number is even, False if it is odd
22
+ return n % 2 == 0
@@ -0,0 +1,18 @@
1
+ # String Utility Functions for Students!
2
+
3
+ def greet(name):
4
+ # This function returns a friendly greeting message
5
+ return f"Hello, {name}! Welcome."
6
+
7
+ def count_words(sentence):
8
+ # This function counts the number of words in a sentence
9
+ words = sentence.split()
10
+ return len(words)
11
+
12
+ def reverse_string(text):
13
+ # This function reverses any given string
14
+ return text[::-1]
15
+
16
+ def make_uppercase(text):
17
+ # This function converts a string to all uppercase letters
18
+ return text.upper()
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: studybuddy-tools
3
+ Version: 0.1.0
4
+ Summary: A beginner-friendly Python library with helpful utility functions for students — covering math, strings, and everyday calculations.
5
+ Author: Sehrish Nasir
6
+ Author-email: fsehrish287@gmail.com
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.6
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: license-file
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ # studybuddy-tools
23
+
24
+ A beginner-friendly Python library with helpful utility functions for students — covering math, strings, and everyday calculations.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install studybuddy-tools
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ from studybuddy import math_helper, string_helper
36
+
37
+ # Calculate your percentage
38
+ print(math_helper.percentage(85, 100)) # Output: 85.0
39
+
40
+ # Get a friendly greeting
41
+ print(string_helper.greet("Sehrish")) # Output: Hello, Sehrish! Welcome.
42
+ ```
@@ -0,0 +1,8 @@
1
+ studybuddy/__init__.py,sha256=ych0ZIiM27UyLX91Q7Izzzhio8c6-ElYuGyH7CwaDGw,106
2
+ studybuddy/math_helper.py,sha256=b-lEV0xnmwcN2chUex_-dbx1elom0Z-IZSsq_B9BdDM,682
3
+ studybuddy/string_helper.py,sha256=Z_2cT9Y8PXoAJ3u3Vb7LnbMhq8DZ-zsHkhRhhO_OWY4,502
4
+ studybuddy_tools-0.1.0.dist-info/licenses/LICENSE,sha256=jctRJuwJWKA1nnqkYa16siPdaCEyf1DT_qzUH7-2KYg,1070
5
+ studybuddy_tools-0.1.0.dist-info/METADATA,sha256=tPKtAg8FnN1c-6cmAf84vKS-FST322JWAhFQbYh6p28,1185
6
+ studybuddy_tools-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
7
+ studybuddy_tools-0.1.0.dist-info/top_level.txt,sha256=l6J4afYKvkfFA0e2hGgx9Km6Sy6cvq2_9X6g4gBAzoU,11
8
+ studybuddy_tools-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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sehrish Nasir
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ studybuddy