Skip to content

rehabyte/StashConnect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An API wrapper for stashcat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%