Skip to main content

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.3.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

sortlab-0.3.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file sortlab-0.3.0.tar.gz.

File metadata

  • Download URL: sortlab-0.3.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for sortlab-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e8ddedc04849f8f13c759c6b72abc1fbce63286dbc445d7ffa82702643d16776
MD5 3bbbfe799886f509234a88dc9908e524
BLAKE2b-256 b7e9cbbe3257203bf3699e0c4e840cb9b5f5e05421fd10c39e89d1d831e77b72

See more details on using hashes here.

File details

Details for the file sortlab-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sortlab-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for sortlab-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe55be921f79dd74c041a555d8a29d93cae2f82e893bf794cf896058238263d2
MD5 3b124148b1f88c2edd3589db17dcd908
BLAKE2b-256 5c416553eae8acdcddf110a267491e5a9477369ecaada276596e0968402be993

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