Skip to main content

A package for taking requests from a Scratch project.

Project description

srequests

A package for taking requests from a Scratch project

PyPI Version Forks License

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

Project details


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.3.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

srequests-0.0.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file srequests-0.0.3.tar.gz.

File metadata

  • Download URL: srequests-0.0.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for srequests-0.0.3.tar.gz
Algorithm Hash digest
SHA256 559bcd7a256f380ae3dcd5c0d38942d8402c9e9e20e11dc70cdcf10c64b934b2
MD5 e75858b57f48e59341cef515a1e06d07
BLAKE2b-256 d98d4d84d5e5168919bd932f2ea6aa4f668d5a06beb663910cbb3ea9b875d047

See more details on using hashes here.

File details

Details for the file srequests-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: srequests-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for srequests-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2c42dbc71b3a2f6793354de846dae36bcd7b3372e670597b8d904c68360097d2
MD5 284ca7ec08334f2bf8e8f5098f3345f0
BLAKE2b-256 6d76d2805c1a67b326485430f6b88ea48ef1832525dd850feea466a76ab3c4d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page