Skip to main content

nice_path

A Python library for formatting a path in a nice way. If a path is relative to the users home directory it will rewrite it to use ~.

Examples

from nice_path import nice_path
from pathlib import Path

nice_path("/Users/<user>/.config/something")  # "~/.config/something"

nice_path("/Users/<user>/")  # "~"

nice_path("/tmp")  # "/tmp"

nice_path(Path("/Users/<user>/Documents"))  # "~/Documents"

License

This project is licensed under the MIT License.

Metadata

Release files for nice-path 0.1.5

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-path 0.1.5
File Size Uploaded Provenance Actions
nice_path-0.1.5.tar.gz 2.3 kB With provenance Details for nice_path-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nice-path 0.1.5
File Interpreter ABI Platform Actions
nice_path-0.1.5-py3-none-any.whl Python 3 none any Details for nice_path-0.1.5-py3-none-any.whl

Total release size: 5.2 kB

Release files / nice_path-0.1.5.tar.gz

Download URL nice_path-0.1.5.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d3a2a96508884945771582c94ebf0c89ec2d7ab2eb111e0bd8302a641d15e14b
BLAKE2b-256 checksum
How to use checksums
83bcbfcca92bb417603916f36104598f34f977c4fa92846f15c3075b5e40b67e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / nice_path-0.1.5-py3-none-any.whl

Download URL nice_path-0.1.5-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88c4ebf43db6d91a9ea03b0b9f11b01eac11d2fa76119388baec44ca13313f7d
BLAKE2b-256 checksum
How to use checksums
a43d71fd9326a55dce907e9fab54ea223169a9131691ddb0747a2831f3f6e793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for nice-path 0.1.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nice_path-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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.

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