Add a PixlStash Remote plugin#864
Open
lindkvis wants to merge 2 commits into
Open
Conversation
Introduce a plugin system that lets datasets be browsed and imported from external services directly in the UI. - toolkit/dataset_sources/: base class, registry, and a CLI bridge that the Next.js API routes call to list plugins, browse items, fetch thumbnails, and build import job configs. Plugins live in extensions/ and self-register from their __init__.py, so they are only loaded on demand. - ui: a RemoteSourceBrowseModal plus /api/datasets/remote/* routes for listing plugins, browsing, thumbnails, and importing, with the settings page driven by each plugin's settings_schema. The framework is plugin-agnostic; no plugin is bundled here.
A reference plugin for the remote dataset source framework that browses and
imports training images from a PixlStash server.
- Browse characters and picture sets, import selected groups as a dataset.
- Captions are built from each picture's natural-language description and WD14
tags, read per-picture from GET /pictures/{id}/metadata (the listing
endpoints only return scalar grid fields).
- Supports SSL and configurable API paths.
Also un-ignores extensions/pixlstash in .gitignore so the plugin is tracked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It should be possible for someone to add any other image source plugin.