Metadata-Version: 2.0
Name: nice-list
Version: 1.1.0
Summary: Pretty prints Python lists
Home-page: https://github.com/Fylipp/nice-list
Author: Philipp Ploder
Author-email: UNKNOWN
License: UNKNOWN
Keywords: lists
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3

nice-list
=========

.. image:: https://travis-ci.org/Fylipp/nice-list.svg?branch=master
    :target: https://travis-ci.org/Fylipp/nice-list
    :alt: Build Status

Pretty prints Python lists.

Usage
-----

.. code-block:: python

    from nice_list import nice_print, nice_format

    nice_print([1, 2, 3, 4])
    # -> 1, 2, 3 and 4

    nice_print(["Alice", "Bob", "Charles"])
    # -> Alice, Bob and Charles

    nice_print(["Alice", "Bob", "Charles"], use_and=False)
    # -> Alice, Bob, Charles

    nice_print(["Alice", "Bob", "Charles", 20], string_quotes='"')
    # -> "Alice", "Bob", "Charles" and 20

    nice_print([1, 2, 3, 4], oxford_comma=True)
    # -> 1, 2, 3, and 4

    print(nice_format(["Alice", "Bob", "Charles"]))
    # -> Alice, Bob and Charles


Installation
------------

.. code-block:: bash

    pip install nice_list


Testing
-------

.. code-block:: bash

    python nice_list_test.py


License
-------

MIT.


