A CMIXF-12 library
Project description
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.
- 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) >
- 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:
- pip install -e .[dev]
- pre-commit install
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
cmixf-0.2.0-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file cmixf-0.2.0.tar.gz
.
File metadata
- Download URL: cmixf-0.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5c83e4f160e726ad24edf5faa87129253d3e5872681f9def74688aff2ef4c4 |
|
MD5 | e300d416ddec330ce11f8aab14cb14ed |
|
BLAKE2b-256 | 6b1e665caeae8770ebb2b90032aa5737407935fbf26f9b26509a47d4ba5ae97f |
File details
Details for the file cmixf-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: cmixf-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f0e5ddbd53e1c3843d70994b1630395385238f020e2743847ab470a6e419c2 |
|
MD5 | c41cf4b48306bd9846803db1ba75b37f |
|
BLAKE2b-256 | 5b8697cf993cfad4ca51ea6b2cbcb1263273ae7bb510ef43fbf503cb55c78ae4 |