nice-list 1.1.0
pip install nice-list
Latest version
Released:
Pretty prints Python lists
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Philipp Ploder
- Tags lists
Classifiers
- Development Status
- License
- Programming Language
Project description
Pretty prints Python lists.
Usage
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
pip install nice_list
Testing
python nice_list_test.py
License
MIT.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Philipp Ploder
- Tags lists
Classifiers
- Development Status
- License
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nice_list-1.1.0.tar.gz
.
File metadata
- Download URL: nice_list-1.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e3840e5c2538c69ca35a3a9c07bad925a36f0e26e0243fb86ea268acb19bc4 |
|
MD5 | 6a9e0de4ac8244c31b78039f484c830d |
|
BLAKE2b-256 | d4dfaddb37c2ecf43dfd5f6e7e7a4751ee68f3cb60a5798fad3cb5db8c5430a3 |
File details
Details for the file nice_list-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: nice_list-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d82fa710244df9522f0a3982ec697e1ffa4774734037667707c12ff292a613 |
|
MD5 | dc5853ad67ba521209e3b0592aea22c0 |
|
BLAKE2b-256 | 4f246e750ff0709608a53d85ba06fc7030ffe9eee623088f0f5c58d24e420340 |