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
File details
Details for the file platform_utils-1.5.1.tar.gz
.
File metadata
- Download URL: platform_utils-1.5.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f529220ec09f8c3db2ded7ed7ccbd7460b85f7d9c934f9247766ab1d2883aa7a |
|
MD5 | 191c7a93419272ba7cc76dca96906a8c |
|
BLAKE2b-256 | ffa282a36ef7b5231bbd61e9d562116319ac27e7a510bcb5814ca4776e7343fc |
File details
Details for the file platform_utils-1.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: platform_utils-1.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b47255f10dcced43f5a880597f9f22ebb0c160dd71fbf46dc8ee4f45e07bfdb |
|
MD5 | 0fb6804a97799b876cdbaf4c1b6f7137 |
|
BLAKE2b-256 | 811a362a535aa6a98267b95c7738e0b2bcb21ebf22d02c7b646f38ffb85b95b5 |