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
client = stashconnect.Client(
email="your email", password="your password",
encryption_password="encryption password",
)
# 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
- All code currently 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.tar.gz
(20.9 kB
view details)
Built Distribution
File details
Details for the file stashconnect-0.9.7.tar.gz
.
File metadata
- Download URL: stashconnect-0.9.7.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed5a7808250baeeb6f2e9350c75b16fc3792e8f92305068c4c98f37704544a1 |
|
MD5 | edf97390476bd0f8045fd16f1adbb6e5 |
|
BLAKE2b-256 | 00f28ad9fd83429b5f807d806f788dceea595b6baeb076eef686cd99a1b379ef |
File details
Details for the file stashconnect-0.9.7-py3-none-any.whl
.
File metadata
- Download URL: stashconnect-0.9.7-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00015ae3d3ce590c11623751d2a82647fa56b26d043259f41bd79d04dd2b05d8 |
|
MD5 | 0c7a37f50ed92f02a2b1cc44e16b763b |
|
BLAKE2b-256 | bfeea4ce17d7db8a7adf4725773406538e8c1c6c6b7e1622b3f705be2b3e6414 |