Skip to main content

A CMIXF-12 library

Project description

Python package

cmixf

A library to parse CMIXF-12.

For users:

To install from PyPi.

$ pip install cmixf 

This will install a command line interface called cmixf.

$ cmixf --help
Usage: cmixf [OPTIONS] [TEXT]...

Options:
  -d, --debug  Turn on token debugging
  --help       Show this message and exit.

At present this assumes that a number is provided before any unit. To better understand which characters are erroneous you can turn on the debug flag.

  1. Without debugging on:
$ cmixf
cmixf (Ctrl+d to quit) > 1mV
1mV
cmixf (Ctrl+d to quit) > 1oC
1oC
cmixf (Ctrl+d to quit) > 1mM
FAILED:  Line 1: Bad character 'M'
cmixf (Ctrl+d to quit) > 
  1. With debugging turned on:
$ cmixf --debug
cmixf (Ctrl+d to quit) > 1mM
type='REAL', value='1'
type='UNITC', value='m'
FAILED:  Line 1: Bad character 'M'
cmixf (Ctrl+d to quit) > 

For developers:

After cloning the repo do:

  1. pip install -e .[dev]
  2. pre-commit install

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

cmixf-0.2.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

cmixf-0.2.0-py3-none-any.whl (5.9 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