A simple helper library containing mathematical and string processing utilities for educational purposes.
Project description
py_edu_helpers_pkg
py_edu_helpers_pkg is an educational Python library designed to provide common math and string utilities for students and developers.
Installation
Install the package via pip:
pip install py_edu_helpers_pkg
Modules and Functions
1. math_utils
is_prime(n): Checks if a given integer is a prime number.fibonacci(n): Generates the firstnnumbers in the Fibonacci sequence.calculate_stats(numbers): Calculates the mean, median, and mode of a list of numbers.solve_quadratic(a, b, c): Solves a quadratic equation and returns its real roots.
2. string_utils
reverse_words(text): Reverses the order of words in a sentence.count_vowels_consonants(text): Counts the number of vowels and consonants in a string.is_palindrome(text): Checks if a given string is a palindrome.generate_slug(text): Converts a string to a URL-friendly slug.
Quick Usage Example
from py_edu_helpers import math_utils, string_utils
# Math utility usage
print(math_utils.is_prime(17)) # Returns True
# String utility usage
print(string_utils.generate_slug("Hello World! PyPI Package")) # Returns "hello-world-pypi-package"
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_edu_helpers_pkg-0.1.0.tar.gz.
File metadata
- Download URL: py_edu_helpers_pkg-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499fd6a495fae51f0bb6d2f607a0f73fa5205e961d4535625c09b960ff0b6604
|
|
| MD5 |
96e71a1c2ca1d1201ceb228c93a41ff4
|
|
| BLAKE2b-256 |
9869ac1bd143e633c91dfa59474e3c58ac479cf343bf6d0950ea8a3fe2265484
|
File details
Details for the file py_edu_helpers_pkg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_edu_helpers_pkg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47cca1d4820319e2edbbdbf2357dc12ef50760fb3f61780cb1370463ec815dd6
|
|
| MD5 |
35eebc5d24d412decdad48c06dab867f
|
|
| BLAKE2b-256 |
40f16e5a59075af0c4676c529cad9a8fcab4d6fd28daa8f2f0e47ed878760c03
|