windows_pathlib
Best Practices for Handling Paths in Windows.
Have you written code like this?
import os
import pathlib as Path
# In Windows, the desktop can be changed to any location. The desktop is not necessarily located in the home directory.
print(Path(os.path.expanduser("~/Desktop")))
# This does not work.
print(Path("%APPDATA%/Microsoft"))
windows_pathlib can be used for concise writing.
from windows_pathlib import WindowsPathlib as Path
# C:\Users\username\Desktop
print(Path.desktop())
# C:\Users\username\AppData\Roaming\Microsoft
print(Path("%APPDATA%/Microsoft"))
Metadata
Release files for windows-pathlib 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| windows_pathlib-0.0.1.tar.gz | 2.5 kB | Without provenance | Details for windows_pathlib-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| windows_pathlib-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for windows_pathlib-0.0.1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / windows_pathlib-0.0.1.tar.gz
| Download URL | windows_pathlib-0.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a65d0e722b8d3d10ae20ed982df055fdb56727c2798df55ae418c7504f7f836
|
|
BLAKE2b-256 checksum How to use checksums |
fa2ae0733dbad368b96561cdf6b72fe9efa8d1d7cf66bd34627b2fdc055db579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / windows_pathlib-0.0.1-py3-none-any.whl
| Download URL | windows_pathlib-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed82734d9cca6760ee3e17fbfe1dddb24f74b6b718442034af01562f2e17c53b
|
|
BLAKE2b-256 checksum How to use checksums |
be7b79e4b80a32e92ab00ed3dda2c291a45b40aa1cdb78af05c2df65983a3bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for windows-pathlib 0.0.1
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.