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.4

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.4
File Size Uploaded Provenance Actions
nice_path-0.1.4.tar.gz 2.3 kB Without provenance Details for nice_path-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 5.2 kB

Release files / nice_path-0.1.4.tar.gz

Download URL nice_path-0.1.4.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60014b3d018506164d8829513cbe9145580f6a872b5c16ae7744879cf54b2457
BLAKE2b-256 checksum
How to use checksums
5341385ddbd6a63c1f69a56e89defe89fa55afe8199dc28e7f67ab7d8048bec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL nice_path-0.1.4-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a70aa7e84ce2f5baa86cbe808d96336a42a657f7cc49b4c4709bf5d98669e6d
BLAKE2b-256 checksum
How to use checksums
4a06028f37f2e900d47a6fcf650b825ad568a54d7249baff18fb826d30c2d5dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nice-path 0.1.4

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.

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