Skip to main content

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

hollerith-0.1.1.tar.gz (68.0 kB view hashes)

Uploaded Source

Built Distributions

hollerith-0.1.1-cp311-cp311-win_amd64.whl (35.0 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

hollerith-0.1.1-cp311-cp311-win32.whl (31.3 kB view hashes)

Uploaded CPython 3.11 Windows x86

hollerith-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (164.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hollerith-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl (33.3 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

hollerith-0.1.1-cp310-cp310-win_amd64.whl (36.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

hollerith-0.1.1-cp310-cp310-win32.whl (32.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

hollerith-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (166.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hollerith-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl (34.5 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

hollerith-0.1.1-cp39-cp39-win_amd64.whl (36.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

hollerith-0.1.1-cp39-cp39-win32.whl (32.2 kB view hashes)

Uploaded CPython 3.9 Windows x86

hollerith-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (169.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

hollerith-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl (34.5 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

hollerith-0.1.1-cp38-cp38-win_amd64.whl (36.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

hollerith-0.1.1-cp38-cp38-win32.whl (32.7 kB view hashes)

Uploaded CPython 3.8 Windows x86

hollerith-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (182.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

hollerith-0.1.1-cp38-cp38-macosx_10_9_x86_64.whl (34.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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