Skip to main content

StashConnect

StashConnect is an easy-to-use API wrapper for stashcat and schul.cloud.

PyPI - Downloads PyPI - Version PyPI - Status

Installation

To install StashConnect, use pip in your shell:

pip install -U stashconnect

Example Usage

import stashconnect

# without proxy / cert
client = stashconnect.Client(
    email="your email", password="your password",
    encryption_password="encryption password"
)

# with proxy & cert
proxies = {
  'http': 'http://1.2.3.4:8080',
  'https': 'http://5.6.7.8:8443',
}

client = stashconnect.Client(
    email="your email", password="your password",
    encryption_password="encryption password",
    proxy = proxies, 
    cert_path = 'path/to/CA.pem'
)

# change account settings
client.account.change_status("new status")
client.account.change_password("new", "old")

# upload or download files
client.files.upload("conversation_id", "hello.png")
client.files.download("file_id")

client.messages.send("conversation_id", "hello")

# get the last 30 messages of a chat
last_messages = client.messages.get_messages("channel_id/conversation_id")
for message in last_messages:
    print(message.content)

Features to be added

  • docstrings
  • account functions
  • documentation
  • bot class

Contributors

  • Most code written by BuStudios
  • Create a pull request to contribute code yourself

Disclaimer

StashConnect is not affiliated with Stashcat GmbH or any of its affiliates.

Metadata

Release files for stashconnect 0.9.7.6

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

Source distribution (sdist)

Source distribution for stashconnect 0.9.7.6
File Size Uploaded Provenance
stashconnect-0.9.7.6.tar.gz 21.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 46.8 kB

Release files / stashconnect-0.9.7.6.tar.gz

Download URL stashconnect-0.9.7.6.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
674d9cf3f8922b6349edcdea5e816da910a36ab1bacd2f30a7296cf7cc3726d1
BLAKE2b-256 checksum
How to use checksums
d1ab4990b5a33e155d8e5e8cc8ddc1ac2cbd8b770b21045ad386a309a5ab9be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / stashconnect-0.9.7.6-py3-none-any.whl

Download URL stashconnect-0.9.7.6-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef7b7bb10e46e1fbd1194496cfa625301601f5a2357c5cbe01634ffded53bf33
BLAKE2b-256 checksum
How to use checksums
4e4a052c62dff04445cf7d6a57a315df1fa3044f0b7eb344bda212ed6e3ab5b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for stashconnect 0.9.7.6

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