Skip to main content

stashapi

This library primarily serves as an 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

Should be fully supported up to and including Python 3.13. Stash currently bundles Python 3.12.7

Installation

To install from PyPI use this command:

pip install stashapi

To install directly from this repo use this command:

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

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

Metadata

Release files for stashapi 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stashapi 0.1.5
File Size Uploaded Provenance
stashapi-0.1.5.tar.gz 66.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stashapi 0.1.5
File Interpreter ABI Platform
stashapi-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 104.6 kB

Release files / stashapi-0.1.5.tar.gz

Download URL stashapi-0.1.5.tar.gz
Size 66.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c1aeca73c4aecd3191d404d2794f7eb3aa4bf9b563cdf0aa3796bfb3aeb0c2aa
BLAKE2b-256 checksum
How to use checksums
4179960a7e610e9260813f08217a5f8d4285bb35c234a1bc8aa0ef73dde3f70f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.1

Release files / stashapi-0.1.5-py3-none-any.whl

Download URL stashapi-0.1.5-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73340b56f467ff07f82d1bec7f770ef4e64e2348ce3248dad620ef3f9637be56
BLAKE2b-256 checksum
How to use checksums
9915e2db9f4425473a21a854caceed2c7430ade64893168d6d395662b45336b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.1

Security for stashapi 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page