Cross-platform access to a user's special folders
The userpaths module provides cross-platform access to a user's special folders (or directories) like My Documents, Desktop, and Application Data. It is primarily intended to simplify development of desktop application software.
A quick usage example:
# Get the user's My Documents folder import userpaths my_docs = userpaths.get_my_documents()
Both Python 2 and 3 are supported, on Windows and Unix platforms.
||Return the current user's roaming Application Data folder.|
||Return the current user's Desktop folder.|
||Return the current user's Downloads folder.|
||Return the current user's local Application Data folder.|
||Return the current user's My Documents folder.|
||Return the current user's My Music folder.|
||Return the current user's My Pictures folder.|
||Return the current user's My Videos folder.|
||Return the current user's profile folder.|
The userpaths API was inspired by, and is partly compatible with, Ryan Ginstrom's winpaths. However, userpaths is not intended as a direct replacement for that module.
The userpaths module was originally designed from a Windows-centric perspective. Because of the many differences between the two systems, there are some Windows paths that do not have a direct equivalent on Unix, and vice versa. In these cases, userpaths attempts to return the nearest functional equivalent, but it is up to the user to ensure their application is using the appropriate path for what it seeks to do.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size userpaths-0.1.3-py2.py3-none-any.whl (6.8 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size userpaths-0.1.3.tar.gz (4.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for userpaths-0.1.3-py2.py3-none-any.whl