Skip to main content

customizable converter tool to convert <source> to <target>

Project description

converterpy

converterpy is designed as a customizable conversion tool to convert one thing to another.

Usage

usage: convert <value> <source> to <target> [optional arguments]

    optional arguments:
    -h, --help          show help message
    -v                  verbose mode

Example

$ convert 3600 seconds to minutes

60

Features

There are some built-in converters to use;

  • SITimeConverter (converts the following units: seconds, minutes, hours)
  • SILengthConverter (converts the following units: millimeter, centimeter, meter, kilometer)
  • SIMassConverter (converts the following units: milligram, gram, kilogram)
  • TimestampToDateConverter (converts unix timetstamp to date format)

Installation

converterpy requires Python 3.5+ to run.

Install with pip

$ pip install converterpy

Custom Converters

Please follow the instructions in custom converter documentation.

License

MIT

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

converterpy-0.0.1.dev2.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

converterpy-0.0.1.dev2-py3-none-any.whl (13.1 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