Skip to content

A conversion tool to convert to a reasonable system of units (aka. the metric system). Written in python3.

License

Notifications You must be signed in to change notification settings

tjarkdoering/pycon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pycon

A conversion tool. To convert to a reasonable sysem of units (aka. the metric system). Written in python3.

It only converts to metric as other conversions should not be done anyway. Thank you for converting to the metric system.

Supported conversions

The amount of supported units is embarrassingly low. New units come when I need them. Or someone suggests them. Here are the currently supported ones.

From To
F Fahrenheit °C Celsius, K Kelvin
in inch mm Millimeter, m Meter
psi Pounds per squre inch kPa Kilopascal, bar Bar
oz Ounces (mass) kg Kilogram

Setup

  1. Have python3 installed.
  2. Copy pycon to any of your local bin paths.
  3. Make pycon executable.
  4. Convert to the metric system.

Usage

pycon [-v] N U

Options:
 -v          Verbose output
 -h, --help  Shows this help message

Arguments:
 N           A number to convert
 U           The corresponding unit

Example

$ pycon 40 F
4.44 °C
277.59 K

About

A conversion tool to convert to a reasonable system of units (aka. the metric system). Written in python3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages