Skip to main content

nice-list

Build Status

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.

Metadata

Release files for nice-list 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nice-list 1.1.0
File Size Uploaded Provenance
nice_list-1.1.0.tar.gz 2.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nice-list 1.1.0
File Interpreter ABI Platform
nice_list-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / nice_list-1.1.0.tar.gz

Download URL nice_list-1.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
70e3840e5c2538c69ca35a3a9c07bad925a36f0e26e0243fb86ea268acb19bc4
BLAKE2b-256 checksum
How to use checksums
d4dfaddb37c2ecf43dfd5f6e7e7a4751ee68f3cb60a5798fad3cb5db8c5430a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nice_list-1.1.0-py3-none-any.whl

Download URL nice_list-1.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06d82fa710244df9522f0a3982ec697e1ffa4774734037667707c12ff292a613
BLAKE2b-256 checksum
How to use checksums
4f246e750ff0709608a53d85ba06fc7030ffe9eee623088f0f5c58d24e420340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nice-list 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page