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

Built distribution (wheel)

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

Total release size: 5.2 kB

Release files / nice_path-0.2.0.tar.gz

Download URL nice_path-0.2.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9fc7d6eec3498ba01598eff8a77f72f99c6e06a358fd3db86e4366b2c75a7744
BLAKE2b-256 checksum
How to use checksums
1e4661e49b2d5114eea2d4a57ec1235bf4d5b6ac47d03a7f94218fca3eab1308
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.2.0-py3-none-any.whl

Download URL nice_path-0.2.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6434e3e64cc4e5f4b154a21148f8ce92860c8084a1805a5e17bf960fd9aad0ea
BLAKE2b-256 checksum
How to use checksums
9d460ef1e6b5c5ff2cf080e5edc6c03c2e9986b1ad60b7bffc74f4fc8b79375e
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.2.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.

Full provenance

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

Select from 2 files

Attestation for nice_path-0.2.0.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