Cross Platform Toolkit for Windows and Linux in order to make variables and shortcuts easy
Project description
Python Cross Platform Toolkit for Windows and Linux variables, shortcuts and start menu shortcuts
Simple Cross Platform creation of shortcuts and Persistent Environment Variables
Installing
Install and update using pip:
pip install pycrosskit
or
pip3 install pycrosskit
Supported Platforms:
- Linux
- Windows
Shortcuts usage:
# Will Create shortcut
# * at Desktop if desktop is True
# * at Start Menu if start_menu is True
Shortcut(shortcut_name, exec_path, description,
icon_path, desktop, start_menu)
# Will Delete shortcut
# * at Desktop if desktop is True
# * at Start Menu if start_menu is True
Shortcut.delete(shortcut_name, desktop, start_menu)
Environment Variables usage:
# Will Set Persistent Value for Variable in System
# * subkey works only for windows like file in folder
# * reg_path works only for windows as register path (is ignored if registry=False)
# * registry works only for windows, if is False variable is saved to User Envirnoment Variables
SysEnv.set_var(name, value, subkey, reg_path=default_reg_path, registry=True)
# Will Get Persistent Value for Variable in System
# * reg_path works only for windows as register path
# * delete, deletes key from environment and its subkeys after read
# * registry works only for windows, if is False variable is obrained from User Envirnoment Variables
SysEnv.get_var(name, reg_path=default_reg_path, delete=False, registry=True)
Did I made your life less painfull ?
Support my coffee addiction ;)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycrosskit-1.0.4.5.tar.gz
(8.5 kB
view details)
Built Distribution
pycrosskit-1.0.4.5-py3.9.egg
(20.0 kB
view details)
File details
Details for the file pycrosskit-1.0.4.5.tar.gz
.
File metadata
- Download URL: pycrosskit-1.0.4.5.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4813811fd79f6fe665c5ab684172da08cf29df0ab4b65455a80e6c8c40482665 |
|
MD5 | 24946f99922cbe41d3f280f3596c1d04 |
|
BLAKE2b-256 | 450dd110aa0c20cdebfb983b92eae6c9a39885c71cd1d16e1faa4c7fbe8ca6f1 |
Provenance
File details
Details for the file pycrosskit-1.0.4.5-py3.9.egg
.
File metadata
- Download URL: pycrosskit-1.0.4.5-py3.9.egg
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39f8f8119c19715c5e07c5711e9071dd75b63d56f15d872bc936fb5bc303fd1 |
|
MD5 | 803c8e27c8d86f9900438a889777ca8f |
|
BLAKE2b-256 | ea7352dde7b081ffb04619eded7cba1659e49df90cbd66aa6a03c5d6650f37a3 |