platformdirs API reference
49 public APIs from platformdirs (tox-dev/platformdirs) — 2 classes, 32 functions, 15 methods. Signatures extracted by static analysis of the actual source.
Repository: tox-dev/platformdirs
| Kind | Count |
|---|---|
| Classes | 2 |
| Functions | 32 |
| Methods | 15 |
API list
func
src.platformdirs.__main__.main() -> NoneRun the main entry point.
class
src.platformdirs.android.AndroidPlatform directories for Android.
method
src.platformdirs.android.Android.site_bin_dir() -> strBin directory shared by users, same as `user_bin_dir`.
method
src.platformdirs.android.Android.site_log_dir() -> strLog directory shared by users, same as `user_log_dir`.
method
src.platformdirs.android.Android.user_bin_dir() -> strBin directory tied to the user, e.g.
method
src.platformdirs.android.Android.user_config_dir() -> strConfig directory tied to the user, e.g.
method
src.platformdirs.android.Android.user_data_dir() -> strData directory tied to the user, e.g.
method
src.platformdirs.android.Android.user_desktop_dir() -> strDesktop directory tied to the user e.g.
method
src.platformdirs.android.Android.user_documents_dir() -> strDocuments directory tied to the user e.g.
method
src.platformdirs.android.Android.user_downloads_dir() -> strDownloads directory tied to the user e.g.
method
src.platformdirs.android.Android.user_fonts_dir() -> strFonts directory tied to the user e.g.
method
src.platformdirs.android.Android.user_music_dir() -> strMusic directory tied to the user e.g.
method
src.platformdirs.android.Android.user_pictures_dir() -> strPictures directory tied to the user e.g.
method
src.platformdirs.android.Android.user_projects_dir() -> strProjects directory tied to the user e.g.
method
src.platformdirs.android.Android.user_publicshare_dir() -> strPublic share directory tied to the user e.g.
method
src.platformdirs.android.Android.user_templates_dir() -> strTemplates directory tied to the user e.g.
method
src.platformdirs.android.Android.user_videos_dir() -> strVideos directory tied to the user e.g.
class
src.platformdirs.macos.MacOSPlatform directories for the macOS operating system.
func
src.platformdirs.site_bin_dir() -> str:returns: bin directory shared by users
func
src.platformdirs.site_bin_path() -> Path:returns: bin path shared by users
func
src.platformdirs.user_applications_dir() -> str:returns: applications directory tied to the user
func
src.platformdirs.user_applications_path() -> Path:returns: applications path tied to the user
func
src.platformdirs.user_bin_dir() -> str:returns: bin directory tied to the user
func
src.platformdirs.user_bin_path() -> Path:returns: bin path tied to the user
func
src.platformdirs.user_desktop_dir() -> str:returns: desktop directory tied to the user
func
src.platformdirs.user_desktop_path() -> Path:returns: desktop path tied to the user
func
src.platformdirs.user_documents_dir() -> str:returns: documents directory tied to the user
func
src.platformdirs.user_documents_path() -> Path:returns: documents path tied to the user
func
src.platformdirs.user_downloads_dir() -> str:returns: downloads directory tied to the user
func
src.platformdirs.user_downloads_path() -> Path:returns: downloads path tied to the user
func
src.platformdirs.user_fonts_dir() -> str:returns: fonts directory tied to the user
func
src.platformdirs.user_fonts_path() -> Path:returns: fonts path tied to the user
func
src.platformdirs.user_music_dir() -> str:returns: music directory tied to the user
func
src.platformdirs.user_music_path() -> Path:returns: music path tied to the user
func
src.platformdirs.user_pictures_dir() -> str:returns: pictures directory tied to the user
func
src.platformdirs.user_pictures_path() -> Path:returns: pictures path tied to the user
func
src.platformdirs.user_preference_dir() -> str:returns: preference directory tied to the user
func
src.platformdirs.user_preference_path() -> Path:returns: preference path tied to the user
func
src.platformdirs.user_projects_dir() -> str:returns: projects directory tied to the user
func
src.platformdirs.user_projects_path() -> Path:returns: projects path tied to the user
func
src.platformdirs.user_publicshare_dir() -> str:returns: public share directory tied to the user
func
src.platformdirs.user_publicshare_path() -> Path:returns: public share path tied to the user
func
src.platformdirs.user_templates_dir() -> str:returns: templates directory tied to the user
func
src.platformdirs.user_templates_path() -> Path:returns: templates path tied to the user
func
src.platformdirs.user_videos_dir() -> str:returns: videos directory tied to the user
func
src.platformdirs.user_videos_path() -> Path:returns: videos path tied to the user
func
src.platformdirs.windows.get_win_folder_from_env_vars(csidl_name:str) -> strGet folder from environment variables.
func
src.platformdirs.windows.get_win_folder_from_registry(csidl_name:str) -> strGet folder from the registry.
func
src.platformdirs.windows.get_win_folder_via_ctypes(csidl_name:str) -> strGet folder via :func:`SHGetKnownFolderPath`.
About this data
These signatures were extracted from the public source of tox-dev/platformdirs
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.