Cross-platform utilities for accomplishing some tasks that the stdlib isn't equipped to provide
Project description
Platform_utils is a library which provides several cross-platform utilities, including:
path manipulation - allows you to do several things with paths including getting the path to store application data, creating the application data directory, checking whether the app is frozen, etc.
clipboard - allows getting/setting clipboard text.
idle - allows getting the user idle time on Windows.
process - allows killing processes on Windows and Unix.
shell_integration - adds something to the context menu on Windows.
blackhole - disables stdout/stderr when using py2exe.
Examples
Check whether the app is frozen:
>>> import platform_utils.paths
>>> platform_utils.paths.is_frozen()
False
Find the recommended directory where user data files should be stored:
>>> import platform_utils.paths
>>> platform_utils.paths.app_data_path("app name")
u'C:\\Users\\user\\AppData\\Roaming\\app name'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for platform_utils-1.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837a7fe668b2be73340ed3612986c4f41f2e78aef2eb2a807ab62f5efd8d0c92 |
|
MD5 | 105b6c75166b558b59b659e04c87b2c5 |
|
BLAKE2b-256 | e53c0fdc5d73f802bfc4027ce90a61f24374709d50aa0333a49735aef75964b5 |