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.59.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stashapp_tools-0.2.59-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file stashapp-tools-0.2.59.tar.gz.

File metadata

  • Download URL: stashapp-tools-0.2.59.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for stashapp-tools-0.2.59.tar.gz
Algorithm Hash digest
SHA256 639d98b9e587a7c0b616c9c9d3560c064cf83b6cf877b441782b30586afc4a36
MD5 9c1b9ffb93b785ba65566360dc692cf5
BLAKE2b-256 ada860680ce6651cb66aa982720366b08ce23237b084078d787f7edfaf023a1c

See more details on using hashes here.

File details

Details for the file stashapp_tools-0.2.59-py3-none-any.whl.

File metadata

File hashes

Hashes for stashapp_tools-0.2.59-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe7819399d4cd264c87de71f23b2bc9338c55e5ae0c8966c2aa7b1ff9202323
MD5 68379d26b7098f11b3fa0df0f54285c3
BLAKE2b-256 644d7262a8dd1f96c012c4b3271453d4c3cbde7caa6b291d18b00553fc6ad64a

See more details on using hashes here.

Supported by

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