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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file impconverter1.0-0.1.0.tar.gz.

File metadata

  • Download URL: impconverter1.0-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for impconverter1.0-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d4fe742c805fd092be6b292db0e779f5d770fad2a06a03ac88c2a378bddcfbf
MD5 7de3e836206c0150d3af899a661eecc9
BLAKE2b-256 26caf6cc7efbcc1ea5548ffaba03e7902691d223601d0b908927d5f9abff6188

See more details on using hashes here.

File details

Details for the file impconverter1.0-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for impconverter1.0-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a843e3a4422385e3a0f61f0d2aaaa54b12807a3846ab5788114649378dc3f7a
MD5 5d72ef2e6a5caf786bf33d84e8a3d7ae
BLAKE2b-256 e562e1f795bcbd4c543239483c65861f136fe3c10981b203edfa160ee9a15ac9

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