fixfmt


Namefixfmt JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/alexhsamuel/fixfmt
Summaryfixed-width formatters for C++ and Python
upload_time2017-08-27 17:06:50
maintainer
docs_urlNone
authorAlex Samuel
requires_python
licenseApache 2.0
keywords formatting
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
A C++ and Python library for formatting values (numbers, strings, etc.)
in fixed-width fields. Useful for printing tabular data and similar.

For example, strings:

.. code:: py

    >>> fmt = fixfmt.String(10)
    >>> fmt("testing")
    'testing   '
    >>> fmt("Hello, world!")
    'Hello, wo…'

and numbers:

.. code:: py

    >>> fmt = fixfmt.Number(3, 3)
    >>> fmt(math.pi)
    '   3.142'

Includes C++ and Python libraries.  Requires a C++14 compiler and GNU Make to
build.

            

Raw data

            {
    "maintainer": "", 
    "docs_url": null, 
    "requires_python": "", 
    "maintainer_email": "", 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "formatting", 
    "upload_time": "2017-08-27 17:06:50", 
    "author": "Alex Samuel", 
    "home_page": "https://github.com/alexhsamuel/fixfmt", 
    "github_user": "alexhsamuel", 
    "download_url": "https://pypi.python.org/packages/87/8b/eca3d621969c5d1d96b18e71b97999feb5935710fcd1afed08305720d7e4/fixfmt-0.6.0.tar.gz", 
    "platform": "", 
    "version": "0.6.0", 
    "cheesecake_documentation_id": null, 
    "description": "\nA C++ and Python library for formatting values (numbers, strings, etc.)\nin fixed-width fields. Useful for printing tabular data and similar.\n\nFor example, strings:\n\n.. code:: py\n\n    >>> fmt = fixfmt.String(10)\n    >>> fmt(\"testing\")\n    'testing   '\n    >>> fmt(\"Hello, world!\")\n    'Hello, wo\u2026'\n\nand numbers:\n\n.. code:: py\n\n    >>> fmt = fixfmt.Number(3, 3)\n    >>> fmt(math.pi)\n    '   3.142'\n\nIncludes C++ and Python libraries.  Requires a C++14 compiler and GNU Make to\nbuild.\n", 
    "lcname": "fixfmt", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": false, 
    "name": "fixfmt", 
    "license": "Apache 2.0", 
    "travis_ci": true, 
    "github_project": "fixfmt", 
    "summary": "fixed-width formatters for C++ and Python", 
    "split_keywords": [
        "formatting"
    ], 
    "author_email": "alexhsamuel@gmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2017-08-27T17:06:50", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/87/8b/eca3d621969c5d1d96b18e71b97999feb5935710fcd1afed08305720d7e4/fixfmt-0.6.0.tar.gz", 
            "md5_digest": "66c87393e87e1b1fecc6a6d35994451b", 
            "downloads": 0, 
            "filename": "fixfmt-0.6.0.tar.gz", 
            "packagetype": "sdist", 
            "path": "87/8b/eca3d621969c5d1d96b18e71b97999feb5935710fcd1afed08305720d7e4/fixfmt-0.6.0.tar.gz", 
            "size": 112102
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}