srequests
A package for taking requests from a Scratch project
Documentation
For making a project, open this project and backpack the main sprite
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()
Get user info (new in 0.0.3)
You can also get info of the user that sent the request.
To get the user's name you can use the Request.User.GetName() function, which returns the name of the user.
To get more user info , you can also use the Request.User.GetData() function.
Attributes of GetData
user.join_date
user.about_me
user.wiwo
user.country
user.icon_url
Metadata
Release files for srequests 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| srequests-0.0.3.tar.gz | 14.9 kB | Without provenance | Details for srequests-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| srequests-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for srequests-0.0.3-py3-none-any.whl |
Total release size: 29.9 kB
Release files / srequests-0.0.3.tar.gz
| Download URL | srequests-0.0.3.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
559bcd7a256f380ae3dcd5c0d38942d8402c9e9e20e11dc70cdcf10c64b934b2
|
|
BLAKE2b-256 checksum How to use checksums |
d98d4d84d5e5168919bd932f2ea6aa4f668d5a06beb663910cbb3ea9b875d047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / srequests-0.0.3-py3-none-any.whl
| Download URL | srequests-0.0.3-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c42dbc71b3a2f6793354de846dae36bcd7b3372e670597b8d904c68360097d2
|
|
BLAKE2b-256 checksum How to use checksums |
6d76d2805c1a67b326485430f6b88ea48ef1832525dd850feea466a76ab3c4d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for srequests 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.