Skip to main content

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


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)

Uploaded Source

Built Distribution

impconverter1.0-0.1.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page