StashConnect
StashConnect is an easy-to-use API wrapper for stashcat and schul.cloud.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stashconnect-0.9.7.6.tar.gz
(21.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stashconnect-0.9.7.6.tar.gz.
File metadata
- Download URL: stashconnect-0.9.7.6.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
674d9cf3f8922b6349edcdea5e816da910a36ab1bacd2f30a7296cf7cc3726d1
|
|
| MD5 |
d81c48ed86b7efa200f2756e185b0c19
|
|
| BLAKE2b-256 |
d1ab4990b5a33e155d8e5e8cc8ddc1ac2cbd8b770b21045ad386a309a5ab9be7
|
File details
Details for the file stashconnect-0.9.7.6-py3-none-any.whl.
File metadata
- Download URL: stashconnect-0.9.7.6-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef7b7bb10e46e1fbd1194496cfa625301601f5a2357c5cbe01634ffded53bf33
|
|
| MD5 |
edbb2afcb6030bad75467cc640571a5e
|
|
| BLAKE2b-256 |
4e4a052c62dff04445cf7d6a57a315df1fa3044f0b7eb344bda212ed6e3ab5b7
|