Skip to main content

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 number
    • cube(x) - Calculate the cube of a number
    • add(a, b) - Add two numbers
    • multiply(a, b) - Multiply two numbers
  • String Operations Module: Functions for basic string manipulation

    • reverse_string(text) - Reverse a string
    • count_vowels(text) - Count vowels in a string
    • to_uppercase(text) - Convert string to uppercase
    • word_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shehzaib007-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shehzaib007-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for shehzaib007-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb79dd18d0f1e2256e5bd6a12d613e092126d9d7e0bc1bd242a4fc5c1c6c8daa
MD5 022156f38275bbd1be82f3ed511dba91
BLAKE2b-256 567da2f7b19847d3e65124ee58b9fe73580af8f5a4c2c60221ddb57dd42cfcd8

See more details on using hashes here.

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

Hashes for shehzaib007-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5899dcf9c6d01df106aff209c0f73651419334661fbbe83be630a838d946abb
MD5 22b3e44df5aa78ed65107d94d5718b90
BLAKE2b-256 54d9567ff223ec840f853dbabf343f3be1e7325dd1a27cbb0148d1cdefa8e861

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page