Official stlib plugins
Project description
Official stlib plugins
Current plugins:
- SteamTrades
- SteamGifts
How to Create Plugins
Just create a new class by extending the class utils.Base
from stlib
.
Nothing special here, you can use stlib-plugins as an example.
How to Use Plugins
from stlib import plugins
# You can modify the default search path prior the plugin manager initialization
# Must be called before use any method from 'plugins' module
# Warning: Your custom search paths will take precedence over default search paths
plugins.add_search_paths(<mypath>, <anotherpath>, ...)
# You can get a list of all available plugins
all_plugins = plugins.get_available_plugins()
# You can check if there has a plugin called <plugin_name>
if plugins.has_plugin(<plugin_name>):
# So you can load the plugin by plugin name
plugin = plugins.get_plugin(<plugin_name>)
Default search paths are:
# For Windows:
<current_directory>\\plugins
%LOCALAPPDATA%\\stlib\\plugins
# For Linux:
<current_directory>/plugins
/usr/share/stlib/plugins
$HOME/.local/share/stlib/plugins
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
stlib-plugins-1.2.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for stlib_plugins-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6fcee41a2b92176a2a8e6c9a5852ede64bed0351ae6e30bc4998822bd1946e |
|
MD5 | d16604dc3a8ba27d39fa94a49b9f4874 |
|
BLAKE2b-256 | 170e0ccbfab1ca5b22f44d0e12305b2bb5f9c99dfd61bd28c5fc3056644a006d |