mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Example python plugin (#825)
* Add example python plugin * Fix log incorrectly detecting as progress level
This commit is contained in:
29
pkg/plugin/examples/python/pyraw.yml
Normal file
29
pkg/plugin/examples/python/pyraw.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# example plugin config
|
||||
name: Hawwwwt Tagger (Raw Python edition)
|
||||
description: Python Hawwwwt tagging utility (using raw interface).
|
||||
version: 1.0
|
||||
url: http://www.github.com/stashapp/stash
|
||||
exec:
|
||||
- python
|
||||
- "{pluginDir}/pyplugin.py"
|
||||
interface: raw
|
||||
tasks:
|
||||
- name: Add hawwwwt tag to random scene
|
||||
description: Creates a "Hawwwwt" tag if not present and adds to a random scene.
|
||||
defaultArgs:
|
||||
mode: add
|
||||
- name: Remove hawwwwt tag from system
|
||||
description: Removes the "Hawwwwt" tag from all scenes and deletes the tag.
|
||||
defaultArgs:
|
||||
mode: remove
|
||||
- name: Indefinite task
|
||||
description: Sleeps indefinitely - interruptable
|
||||
# we'll try command-line argument for this one
|
||||
execArgs:
|
||||
- indef
|
||||
- "{pluginDir}"
|
||||
- name: Long task
|
||||
description: Sleeps for 100 seconds - interruptable
|
||||
defaultArgs:
|
||||
mode: long
|
||||
|
||||
Reference in New Issue
Block a user