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)
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
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 unit_curious-0.0.1.tar.gz.
File metadata
- Download URL: unit_curious-0.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40bd7ffa063f937255cb6631f85644c8e6b265aaf54d9e4491510375096215d5
|
|
| MD5 |
2cea2f0f8203d6b3c339f86192663601
|
|
| BLAKE2b-256 |
6c63ebec44e6137934f8761d25428340dc93aab4d1d60132b4863d1383113673
|
File details
Details for the file unit_curious-0.0.1-py3-none-any.whl.
File metadata
- Download URL: unit_curious-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c64760a20b05d19a226922a512685ec6b5acd2030179e542aaa380354d0f1faf
|
|
| MD5 |
9712d6e7d66439269d41717ddb3eba39
|
|
| BLAKE2b-256 |
b5ccb9a8c99155f0b387f641a38a0b033f63d8a6423edf976ee1c02a250711b6
|