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'
Release files for platform_utils 1.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| platform_utils-1.6.3.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| platform_utils-1.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.4 kB
Release files / platform_utils-1.6.3.tar.gz
| Download URL | platform_utils-1.6.3.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3782597b34642af86641af4576ee24b29db7da4a81365b108766501d58c83bf3
|
|
BLAKE2b-256 checksum How to use checksums |
654fd85d019ab78decb26cc9de50fb963125584febe583320f0d7d1f2e7dfac2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / platform_utils-1.6.3-py3-none-any.whl
| Download URL | platform_utils-1.6.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0be07c347d572100b4f4d746cbf4126f30f39f3079b02a824a4a6cfc6c9ec10
|
|
BLAKE2b-256 checksum How to use checksums |
c99b63c8c41e8660ee0d112952ecbc55499781903a8067d2de8815c14b7e5230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|