A package for taking requests from a Scratch project.
Project description
srequests
A package for taking requests from a Scratch project.
Documentation
For making a project, open this project and backpack the main sprite: https://scratch.mit.edu/projects/759181792/
Connect to a project
To connect to a project, import the library and connect to a project with your credentials.
from srequests import srequests
sr = srequests.SRequests("Username","Pass","ProjectID")
Check if request is unanswered.
To check if there is an unanswered request, use Request.IsPending().
if sr.Request.IsPending():
print("Request unanswered!")
Respond to a request
To reply, use the function Request.Respond().
if sr.Request.IsPending():
sr.Request.Respond("Response")
Get request data
To get the request info & content, use Request.GetName() and Request.GetContent().
name = sr.Request.GetName()
content = sr.Request.GetContent()
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
srequests-0.0.2.tar.gz
(14.5 kB
view details)
Built Distribution
srequests-0.0.2-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file srequests-0.0.2.tar.gz
.
File metadata
- Download URL: srequests-0.0.2.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095feccd586080794dc9ef6435509c7bb46f1e9bedc692e7caa9652cc2ccf15b |
|
MD5 | 2ac98a5153c2758693980e8eb69e8af7 |
|
BLAKE2b-256 | 783e4e6672fe8ec0d525ece7e07e8055ed0bdc327e7b126a543119435af4d824 |
File details
Details for the file srequests-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: srequests-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d873bec72b4b593ccb32b31ae7a55896328feb3537a35eb6eebe864f57efc3b |
|
MD5 | ad28c41cef9be4bec0e8cd92ce07691f |
|
BLAKE2b-256 | 5086814071d2e5b46ac031643d8fd6b2f0d352e8308a617cffb18317780911c5 |