Current plugins:
- SteamTrades
- SteamGifts
Just create a new class by extending the class utils.Base
from stlib
.
Nothing special here, you can use stlib-plugins as an example.
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
The stlib-plugins is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The stlib-plugins is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Lara Maia dev@lara.monster 2015 ~ 2023