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
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.2.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stlib-plugins-1.2.2.tar.gz.
File metadata
- Download URL: stlib-plugins-1.2.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f211ae33f4d4dd137f5f761c59334307a90fb167e5473a49e4ab32b53f77dd
|
|
| MD5 |
bbe08dfc6f6c771c5c6b81d4fa17d5ab
|
|
| BLAKE2b-256 |
d7e179485ff6de13942d581cd58189f3159668f60e06b28a57aa059ca2512e13
|
File details
Details for the file stlib_plugins-1.2.2-py3-none-any.whl.
File metadata
- Download URL: stlib_plugins-1.2.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7cd1cac25a04eac6c24bebc8f5263729243ed06458fcac89290a714acd11d0c
|
|
| MD5 |
0ad19218069e4b6e280290b213dd83d3
|
|
| BLAKE2b-256 |
03325bbf576efe008ee4e4689e960a943f30cde4c5bd1ee86715ae25b59fc8de
|