C-extension module for efficient writing of fixed width text
Project description
Project Overview
Hollerith is a small python library that supports fixed-width formatting of some value types and tables. It is named after Herman Hollerith, the inventor of punch cards.
Installation
Include installation directions. Note that this README will be included in your PyPI package, so be sure to include pip directions along with developer installation directions. For example.
Install hollerith with:
pip install hollerith
Alternatively, clone and install in development mode with:
git clone https://github.com/pyansys/hollerith
cd hollerith
pip install .
Documentation
Include a link to the full sphinx documentation. For example PyAnsys
Usage
It’s best to provide a sample code or even a figure demonstrating the usage of your library. For example:
>>> import io
>>> import hollerith as holler
>>> s = io.StringIO()
>>> holler.write_float(s, 1.2099, 10)
>>> holler.write_int(s, 2803, 10)
>>> holler.write_float(s, float("nan"), 10)
>>> holler.write_int(s, 0, 10)
>>> s.getvalue()
' 1.2099 2803 0'
License
hollerith is licensed under the MIT license.
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
Built Distributions
Hashes for hollerith-0.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73da5362491bfec4e8c3fb7384e79270ed8f67dd26e77569009b83a9d738167f |
|
MD5 | 6901eced530ad627c8b82f3b71cd2256 |
|
BLAKE2b-256 | 0b608629a494b68cdcc64cdcd92e4a70a71558a8474ddabebc9ae0278f84e100 |
Hashes for hollerith-0.1.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6bafa6a56c86146274b9bbe589fe6d6527aa340588f3f0ca155a27822158eb |
|
MD5 | 8fc239199c14cbff52df59d4e562eb20 |
|
BLAKE2b-256 | f9c64252813bdd699bd3b4221faec4d742469fe1f6123a15aa5e38d6a108110e |
Hashes for hollerith-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f83e65a6bc46b0c327da686d949716097a4e3f2e4f6fe76bd0e8f1cc39c28a7 |
|
MD5 | f27cab648512b634dfda13654df85c31 |
|
BLAKE2b-256 | f500f375c014ee872f41473093c7c637e67312faf7df2f92f3659e6c5b1e44e3 |
Hashes for hollerith-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a4768c618b5acd551d2580c88bc68251d03860ae62c2f4aa9640dc24ec5214 |
|
MD5 | 6770226a84c366166c2297fe29f99268 |
|
BLAKE2b-256 | f45e1d87bf3ca74a55208486325cec90c23b455e57ceec73ec928a1678fd93d3 |
Hashes for hollerith-0.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60e7c6fe3853380fce9ffcfc01428c623f7af297725337a49ed5c8af0417107 |
|
MD5 | f7ff5223131b85644901c6f7735b43f9 |
|
BLAKE2b-256 | 90b72ee826314b29d7b7ecda63ed19d1576c50c3167d6c316e15d29e76c5b167 |
Hashes for hollerith-0.1.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a13dc2779fa429dcaf7c498afc1a4dd6aa5059ee9b699594225748e4304d2a |
|
MD5 | 4db42d887525b94288fab08191f25563 |
|
BLAKE2b-256 | 7cbbb7c893214558afaa092477d93a617b56cace12e58aa9d52324f38e40c12a |
Hashes for hollerith-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc27a6f179ecd3166aee36597b8df71ef8374abe9ac9b28dfc542d95b8ce84b |
|
MD5 | e917b481a9daf1d44ffbb6d6a40c6f85 |
|
BLAKE2b-256 | 5e720744e712b1f0a3ee228b1a6570e939f5802262181ec85672d962f725ef57 |
Hashes for hollerith-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d90a7a8509b69db2cb256defd8a3d401fb2647e7c0a164bd15f89b05332175 |
|
MD5 | 73b4e7fd2332a043b0979663af2c9a60 |
|
BLAKE2b-256 | 24e759174c20646ec8df045d57366877e86295224e3abce672d216f2cd6def9b |
Hashes for hollerith-0.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5235b504a9a0ca1d1e0f7a0fc09bca9466706a174158f30795ce096bbcaa5b8 |
|
MD5 | 906118eee3315356840e897b52e461c6 |
|
BLAKE2b-256 | 023d7e8ff931dd9d0cb8e1606ddbf0303bf79658b420fbfe3d46fa1964f5d326 |
Hashes for hollerith-0.1.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a691162897f5ae5ed3eb82502b1ac1a585a51047c9df192909162d2ae281996 |
|
MD5 | d2611cd848fd18aa38fc45983b2abaa3 |
|
BLAKE2b-256 | 27632252f0a202e35493f23c819722eb4203cb9c3d2e1c171d701580eedc3a7c |
Hashes for hollerith-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff99edd6212de3f9232ff3a33370476f92c8845c41014912bcb5b82a7f0c3b5d |
|
MD5 | fcda32b45a795f785a5f84375bc03284 |
|
BLAKE2b-256 | 3434ff4c278e8f76c941249a9ce7b425097b8b0d9806abb6dc5d1babd4a60612 |
Hashes for hollerith-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7de0a2c46680f86558d53ab32c5f974975b85cf45fa500b44b4561dc50085a2 |
|
MD5 | 5ab274c689885041cb46f32a02544da3 |
|
BLAKE2b-256 | 74408b728c34c4140ba550fb27f6abdd8e7fd7872d069d17edfa8f7bf5805196 |
Hashes for hollerith-0.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dae7c1b856075586661ee5e5009c7d3a6009fc4a19d1f5aa964bf353526011 |
|
MD5 | 5f54c6d5b24bf8c91ccb35793ac2fde4 |
|
BLAKE2b-256 | 3fa0287040c146bcdf4c1f1e66693707b5b3406e5ea2d9b7aeb41d940f5e66a3 |
Hashes for hollerith-0.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d0404208999b0c431ad80d40285961add0e445aad0a7ba14df29a3fa0cfb4e |
|
MD5 | 623606535a192416d7c130d0fd48100d |
|
BLAKE2b-256 | 83f5001e28d7a34051d721e54bc7fe69cf6eac19269dd576bfd52dd7bc69b680 |
Hashes for hollerith-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06970544574e23c0e0d678af24568cf0578ca8d85ac5180032360f1c0769dd4b |
|
MD5 | 51d2d3b4982c6df33f20bd56bcb5853e |
|
BLAKE2b-256 | 75b4a44a0b2ffaa7d8aae8e3b8ba0e36bba5cd5aa1bf86df33e6a2ab6bd80dac |
Hashes for hollerith-0.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40298c3fddeba60ad1cc40da9f202752baa16fdc72419e15c138055c3623dbb |
|
MD5 | 1b16d002382c711cd48a81c568ced8da |
|
BLAKE2b-256 | ff0abc97b2f0e517f846f97cbf1a3d550ef6a95c3a6a5a05477d5b869361a253 |