Skip to content

saqib777/python-utility-belt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ Python Utility Belt

A beginner-friendly collection of small but useful Python tools. Think of it like Batman’s belt – a set of little gadgets you can pull out whenever needed.

✨ Features

  • Simple string helpers (reverse, palindrome check, etc.)
  • Basic math helpers (factorial, prime checker, etc.)
  • Easy to read, easy to learn from
  • Each function comes with examples & docstrings

πŸ“‚ Project Structure

utils/
 β”œβ”€β”€ string_tools.py
 β”œβ”€β”€ math_tools.py
 └── file_tools.py
tests/
 β”œβ”€β”€ test_string_tools.py
 β”œβ”€β”€ test_math_tools.py

πŸš€ Usage

from utils.string_tools import reverse_string, is_palindrome
from utils.math_tools import factorial, is_prime

print(reverse_string("hello"))  # 'olleh'
print(is_palindrome("madam"))   # True
print(factorial(5))             # 120
print(is_prime(7))              # True

πŸ§ͺ Running Tests

python -m unittest discover tests

🀝 Contributing

Want to add your own gadget to the belt?

  • Fork the repo
  • Add your function in utils/
  • Write a test in tests/
  • Open a pull request

πŸ“œ License

MIT License – free to use, share, and modify.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages