Skip to main content

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)

Source distribution for windows-pathlib 0.0.1
File Size Uploaded
windows_pathlib-0.0.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for windows-pathlib 0.0.1
File Interpreter ABI Platform
windows_pathlib-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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