A simple package for displaying calculation results in a textbased table
Project description
resf - Result Formatter
A simple package for displaying calculation results in a textbased table
How to use
Basics
from resf import *
initRes() # Initializes new Table
addRes('Name', value, 'Unit', precision) # add a value to the table
addRes('Name', value) # unit and precision are not required
printRes() # prints the resulting table
Sample 1
foo = 15
bar = 123 / 13
initRes()
addRes('Foo', foo, 'V')
addRes('5 digits of Bar', bar, precision=5)
printRes()
Output 1
 +-----------------+----------------+
 | Name            | Value [Unit]   |
 |-----------------+----------------|
 | Foo             | 15.00 V        |
 | 5 digits of Bar | 9.46154        |
 +-----------------+----------------+
Uses tabulate to generate the table
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
resf-0.1.3.tar.gz
(1.9 kB
view details)
Built Distribution
resf-0.1.3-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file resf-0.1.3.tar.gz
.
File metadata
- Download URL: resf-0.1.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a9f0fa47e52c4dc3b013992f82d9003f55122d7ae65623843c8567e9ba774a |
|
MD5 | 9b4f8af460426deadb488e703f2d4783 |
|
BLAKE2b-256 | bde16c4b415f3429ffce07801e307328106cae1813be5a21391488f509563fa2 |
File details
Details for the file resf-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: resf-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7dfa3ca795b2027dcaa5fddbdf8580be8855c92fac48744c420f50f974c28a |
|
MD5 | b14894f696bdf3e9e504a386971d8627 |
|
BLAKE2b-256 | 41313f65099c8ed47f4d2167f4ab77c7513a8e42216348013b2bdb132ce67ce8 |