A simple utility package with basic math and string operations
Project description
shehzaib007
A simple utility package providing basic math and string operations.
Features
-
Math Operations Module: Functions for basic mathematical calculations
square(x)- Calculate the square of a numbercube(x)- Calculate the cube of a numberadd(a, b)- Add two numbersmultiply(a, b)- Multiply two numbers
-
String Operations Module: Functions for basic string manipulation
reverse_string(text)- Reverse a stringcount_vowels(text)- Count vowels in a stringto_uppercase(text)- Convert string to uppercaseword_count(text)- Count words in a string
Installation
You can install shehzaib007 from PyPI using pip:
pip install shehzaib007
Usage
Math Operations
from shehzaib007 import square, cube, add, multiply
# Calculate square
result = square(5) # Returns 25
# Calculate cube
result = cube(3) # Returns 27
# Add numbers
result = add(10, 5) # Returns 15
# Multiply numbers
result = multiply(4, 7) # Returns 28
String Operations
from shehzaib007 import reverse_string, count_vowels, to_uppercase, word_count
# Reverse a string
result = reverse_string("hello") # Returns "olleh"
# Count vowels
result = count_vowels("hello world") # Returns 3
# Convert to uppercase
result = to_uppercase("hello") # Returns "HELLO"
# Count words
result = word_count("hello world python") # Returns 3
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Shehzaib
Version
0.1.0
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 shehzaib007-0.1.0.tar.gz.
File metadata
- Download URL: shehzaib007-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb79dd18d0f1e2256e5bd6a12d613e092126d9d7e0bc1bd242a4fc5c1c6c8daa
|
|
| MD5 |
022156f38275bbd1be82f3ed511dba91
|
|
| BLAKE2b-256 |
567da2f7b19847d3e65124ee58b9fe73580af8f5a4c2c60221ddb57dd42cfcd8
|
File details
Details for the file shehzaib007-0.1.0-py3-none-any.whl.
File metadata
- Download URL: shehzaib007-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5899dcf9c6d01df106aff209c0f73651419334661fbbe83be630a838d946abb
|
|
| MD5 |
22b3e44df5aa78ed65107d94d5718b90
|
|
| BLAKE2b-256 |
54d9567ff223ec840f853dbabf343f3be1e7325dd1a27cbb0148d1cdefa8e861
|