An API wrapper for stashcat and schul.cloud.
Project description
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.
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(21.3 kB
view details)
Built Distribution
File details
Details for the file stashconnect-0.9.7.5.tar.gz
.
File metadata
- Download URL: stashconnect-0.9.7.5.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b077deb4f57355c383b04d4f8dad07462122a2dac5b0fce731d134f1547c9796 |
|
MD5 | 4e77c4e4090f5a4954981d990b33cad0 |
|
BLAKE2b-256 | 5b7c236a7794af71e2c41864274e51988a5950e56a3fc256eb15aa3790dbd22b |
File details
Details for the file stashconnect-0.9.7.5-py3-none-any.whl
.
File metadata
- Download URL: stashconnect-0.9.7.5-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.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc16c8f987671e3659ba7dc29606e440364baca6ed754ca0e1fc2479cb167a42 |
|
MD5 | 91782e80ac448420d5bcbb87ca6b8758 |
|
BLAKE2b-256 | 3486d68317d0b156016f43ad1e7dccbd131ef9cf509c15708a829bd798a4cad7 |