Explore historical, quirky, and unconventional units of measurement with this easy-to-use Python library.
Project description
UnitCurious
Explore historical, quirky, and unconventional units of measurement with this easy-to-use Python library.
Installation
$ pip install unit_curious
Usage
UnitCurious lets you convert between several unusual units.
import unitcurious
# Calculate length in ancient Egyptian cubits
result_feet = unitcurious.cubit(1.8) # Assumes ~1.8 cubits for a forearm
print(f"Result in feet: {result_feet}")
# Smoots are serious business at MIT...
bridge_length = unitcurious.smoot(364.4, to="meter")
print(f"That's {bridge_length} meters in smoots!")
# How many barleycorns fit in an inch?
inch_in_barleycorns = unitcurious.barleycom(1, to="inches")
print(inch_in_barleycorns)
Currently supported units:
Cubit (ancient length)
Barleycorn (English length)
Smoot (humorous MIT unit)
Stone (British weight)
Coming Soon to UnitCurious
We're always exploring new horizons at UnitCurious, and we've got some exciting features and functions in the pipeline designed to make your experience even more fascinating and fun.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
UnitCurious was created by Rajaa Lebchiri. It is licensed under the terms
of the 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
File details
Details for the file unit_curious-0.0.3.tar.gz.
File metadata
- Download URL: unit_curious-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
614470f8733859552ad6419833565c4b6efac83437737a61ea01454570264787
|
|
| MD5 |
126054ce9251d42fbe4187c87aca21c0
|
|
| BLAKE2b-256 |
8892b5b661d7add0edfe35ba500560d7f87fc587621fbe3ff8d4745058ae2b4f
|