Skip to main content

A python library for interfacing with a stashapp's API

Project description

stashapp-tools

This library primarily serves as a API wrapper for Stash written in python

Requirements

Developed using python 3.11.X with attempts to make things as backwards compatible where possible, if you are having issues please try using python 3.11

Installation

To install from PyPI use this command:

pip install stashapp-tools

To install directly from this repo use this command:

pip install git+https://github.com/stg-annon/stashapp-tools

Usage

import stashapi.log as log
from stashapi.stashapp import StashInterface

stash = StashInterface({
    "scheme": "http",
    "host":"localhost",
    "port": "9999",
    "logger": log
})

scene_data = stash.find_scene(1234)
log.info(scene_data)

This example creates a connection to Stash query's a scene with ID 1234 and prints the result to Stash's logs

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

stashapp-tools-0.2.42.tar.gz (30.4 kB view hashes)

Uploaded Source

Built Distribution

stashapp_tools-0.2.42-py3-none-any.whl (32.2 kB view hashes)

Uploaded Python 3

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