A package for converting imperial lengths and weights
Project description
Impyrial
A package for converting between imperial unit lengths and weights.
This package was created for the [DataCamp] (https://www.datacamp.com) course "Developing Python Packages".
Features
- Convert lengths between miles, yards, feet and inches.
- Convert weights between hundredweight, stone, pounds and ounces.
Usage
import impyrial
# Convert 500 miles to feet
impyrial.length.convert_unit(500, from_unit='yd', to_unit='ft') # returns 1500.0
# Convert 100 ounces to pounds
impyrial.weight.convert_unit(100, from_unit='oz', to_unit='lb') # returns 6.25
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
impconverter1.0-0.1.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for impconverter1.0-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a843e3a4422385e3a0f61f0d2aaaa54b12807a3846ab5788114649378dc3f7a |
|
MD5 | 5d72ef2e6a5caf786bf33d84e8a3d7ae |
|
BLAKE2b-256 | e562e1f795bcbd4c543239483c65861f136fe3c10981b203edfa160ee9a15ac9 |