A simple Python utility library for mathematical and string operations
Project description
My Library
A simple example Python library that provides basic mathematical and string utilities.
Installation
pip install my_library
Usage
from my_library import Calculator, StringUtils, fibonacci, factorial
# Calculator usage
calc = Calculator()
print(calc.add(5, 3)) # Output: 8
print(calc.multiply(4, 7)) # Output: 28
# String utilities
utils = StringUtils()
print(utils.reverse("hello")) # Output: "olleh"
print(utils.is_palindrome("racecar")) # Output: True
# Math functions
print(fibonacci(5)) # Output: [0, 1, 1, 2, 3]
print(factorial(5)) # Output: 120
Features
- Calculator: Basic arithmetic operations
- StringUtils: String manipulation utilities
- Math Functions: Fibonacci sequence and factorial calculations
- Error Handling: Proper error handling for edge cases
Development
To build and install locally:
python setup.py sdist bdist_wheel
pip install -e .
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 jack_wong_library-1.0.0.tar.gz.
File metadata
- Download URL: jack_wong_library-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d850b794e033766424fae93a21167895a9584df6b3c6a1abde7e4b60bce956d4
|
|
| MD5 |
bb8d44087456d6ad94c15041eea46faf
|
|
| BLAKE2b-256 |
abdd0e261792665b5ef3b093bf21c3e67f7f9d071d3c50ac229125fcf0ba7cdb
|
File details
Details for the file jack_wong_library-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jack_wong_library-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a3ea3e1dae0ef7056e00c0d3dde0a22fea4bd587428e7862fbf827c1fd14d1b
|
|
| MD5 |
4862c4239a6932a793483544a22ad073
|
|
| BLAKE2b-256 |
05e9881c4ef37d2bb26028db0da269908b92faebfca3a350006d5f4266388b5e
|