Improved Version Of The Scratch API Wrapper By CubeyTheCube
Project description
scratchclientImproved
Improved Version Of The Scratch API Wrapper By CubeyTheCube. I will mainly fix errors.
Installation
Go Yo Your Terminal (Not Your Python Shell) And Execute This Command:
pip install scratchclientImproved
If this didn't work for whatever reason, open your python shell and run the following:
import os; os.system("pip install scratchclientImproved")
Example Usage
Basic Usage
from scratchclientImproved import ScratchSession
session = ScratchSession("UwU", "--uwu--")
# Post Comments
session.get_user("Paddle2See").post_comment("OwO")
# Lots Of Other Stuff
print(session.get_project(450216269).get_comments()[0].content)
print(session.get_project(450216269).get_comments()[0].get_replies()[0].content)
print(session.get_studio(29251822).description)
Cloud Connection
from scratchclientImproved import ScratchSession
session = ScratchSession("griffpatch", "SecurePassword7")
connection = session.create_cloud_connection(450216269)
connection.set_cloud_variable("variable name", 5000)
@connection.on("set")
def on_set(variable):
print(variable.name, variable.value)
print(connection.get_cloud_variable("other variable"))
Documentation is available at https://StellarSt0rm.github.io/scratchclientImproved.
All bugs should be reported to the github repository. If you need help or guideance, check out the forum topic.
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
scratchclientImproved-1.0.tar.gz
(23.9 kB
view hashes)
Built Distribution
Close
Hashes for scratchclientImproved-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ce48aa9e27ad58241b500860aa07cacce84db44244a8dd5990c3dccfd21580 |
|
MD5 | 906cb7572a81c6f6cbe4b849925444b6 |
|
BLAKE2b-256 | 593f42e6f3cc4d628e2eefc73395e0e0569073a14d8aa4be330a49c255fa4397 |
Close
Hashes for scratchclientImproved-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08961976a3b2399cfc4465709cd0644a596afe824d2b28e6d5032940e6007923 |
|
MD5 | 8733cfe3ca6074e9fb3ab12f5fb0e58f |
|
BLAKE2b-256 | 4abf54ab721dd5e2910c76ee8b8b059bbd5e8ff09d105cfd73226946f4b09193 |