Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjarkdoering/pycon
A conversion tool to convert to a reasonable system of units (aka. the metric system). Written in python3.
https://github.com/tjarkdoering/pycon
Last synced: about 1 month ago
JSON representation
A conversion tool to convert to a reasonable system of units (aka. the metric system). Written in python3.
- Host: GitHub
- URL: https://github.com/tjarkdoering/pycon
- Owner: tjarkdoering
- License: gpl-3.0
- Created: 2021-02-15T18:00:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T08:06:15.000Z (almost 4 years ago)
- Last Synced: 2024-10-31T13:13:09.714Z (3 months ago)
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pycon
![](https://byob.yarr.is/tjarkdoering/pycon/treebadge)
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.
3. Convert to the metric system.## Usage
pycon [-v] N U
Options:
-v Verbose output
-h, --help Shows this help messageArguments:
N A number to convert
U The corresponding unit### Example
$ pycon 40 F
4.44 °C
277.59 K