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.3.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for stlib_plugins-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a6e6182f0b029797e6d2739ec560fa62fafd80aadadcd48ccfda14170bb070 |
|
MD5 | b464df32bd5f5b9657128a28822c64d4 |
|
BLAKE2b-256 | 3ded95b960d8ed99e5405944904b2845d7731486cbc9706faeef12db61a2b157 |