Skip to main content

Official stlib plugins

Project description

Official stlib plugins

build status Quality GitHub license

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


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 details)

Uploaded Source

Built Distribution

stlib_plugins-1.2.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file stlib-plugins-1.2.3.tar.gz.

File metadata

  • Download URL: stlib-plugins-1.2.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for stlib-plugins-1.2.3.tar.gz
Algorithm Hash digest
SHA256 3bb68163e3311369d5c0e904d17e926137e644be316bc81525b958309528f966
MD5 6c8c9441e5f2be63f77892d5f56adacb
BLAKE2b-256 280a7b9044f55336f2a0382ebbaa8e4512690de09977c37dc118e5f2c6c4bd92

See more details on using hashes here.

File details

Details for the file stlib_plugins-1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for stlib_plugins-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71a6e6182f0b029797e6d2739ec560fa62fafd80aadadcd48ccfda14170bb070
MD5 b464df32bd5f5b9657128a28822c64d4
BLAKE2b-256 3ded95b960d8ed99e5405944904b2845d7731486cbc9706faeef12db61a2b157

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page