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.2.0.tar.gz
(1.4 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.2.0.tar.gz.
File metadata
- Download URL: sortlab-0.2.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3730c1fcf354b257aa483e6fbbe195e62dfa8970d831686adf895e51fad5a2e3
|
|
| MD5 |
82d7a2618fa333a54077083fc7fbbb3e
|
|
| BLAKE2b-256 |
f4c1c0a50bcca60dfe8deae2e1976d02510afce0c57839d18bd015bcd429294e
|
File details
Details for the file sortlab-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sortlab-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.5 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 |
4cc82c95d5cf11dcf7d4f4f5b54d4c99717845dce2c09787edad68318ed9a2b7
|
|
| MD5 |
3feaff452cf99cdbb32685d36a351e51
|
|
| BLAKE2b-256 |
f09b926dede710f26c50142c5450785d8b9cc85af43598030676e276a7c38e6a
|