A simple Python sorting library
Project description
sortlab
sortlab is a simple Python package that provides utility functions for temperature conversion and sorting algorithms. It is designed for learning, practice, and quick development tasks.
Features
- Convert temperatures between Celsius and Fahrenheit:
to_celsius(fahrenheit)to_fahrenheit(celsius)
- Implement common sorting algorithms (future versions will include more):
- Bubble Sort (and others can be added)
Installation
You can install the package directly from PyPI:
pip install sortlab
from sortlab import to_celsius, to_fahrenheit
# Convert Fahrenheit to Celsius
print(to_celsius(98.6)) # Output: 37.0
# Convert Celsius to Fahrenheit
print(to_fahrenheit(37)) # Output: 98.6
from sortlab import bubble_sort
arr = [5, 3, 1, 4]
sorted_arr = bubble_sort(arr)
print(sorted_arr) # Output: [1, 3, 4, 5]
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
sortlab-0.4.0.tar.gz
(1.8 kB
view details)
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 sortlab-0.4.0.tar.gz.
File metadata
- Download URL: sortlab-0.4.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd1b13f625046f54302ef0472cb12aa61717c0cfad2afb886d7e8aa26c1dcf4
|
|
| MD5 |
7e359103322c8d7fd2762c69739e8ba9
|
|
| BLAKE2b-256 |
b19a1e5bbc166bcebba0d3419e918243eec1ec48d316e6e6a544caab64ff4f9b
|
File details
Details for the file sortlab-0.4.0-py3-none-any.whl.
File metadata
- Download URL: sortlab-0.4.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3efabbd491ba04cadb2570aeba9905951db8362dacb9a15874a7e4579cc7d0e8
|
|
| MD5 |
9aae0215c7720938e8e8d89f5d35193b
|
|
| BLAKE2b-256 |
97e8eae8e0b428c0b412041b62a2fc1e7a389c5e0820b5659149207dc7b8ef8b
|