Skip to content

This repo is about about package structure and the extra files needed to turn loose code into convenient packages. It also exhibits import structure, documentation, and how to maintain code style using flake8.

License

Notifications You must be signed in to change notification settings

gokhankesler/impyrial-dev

Repository files navigation

impyrial

A package for converting between imperial unit lengths and weights.

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

About

This repo is about about package structure and the extra files needed to turn loose code into convenient packages. It also exhibits import structure, documentation, and how to maintain code style using flake8.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published