Skip to main content

ScratchAPI is a Scratch API interface written in Python

Project description

ScratchAPI

Scratch API Interface

ScratchAPI is a scratch API interface written in Python.

To get started, install it with pip install scratchapi

Logging in

To use the api, you must log in to your scratch account:

import scratchapi scratch = scratchapi.ScratchUserSession(‘Username’, ‘password’)

Now, you can verify your session to see if you logged in correctly:

scratch.tools.verify_session()

There are a lot of things you can you when you’re logged in!

Take ownership of a new project:

scratch.lib.utils.request(path=’/internalapi/project/new/set/?v=v442&title=Project’, server=scratch.PROJECTS_SERVER, method=’POST’, payload={})

Follow Someone:

scratch.users.follow(‘Bob’)

Set a cloud variable:

s.cloud.set_var(‘Variable’, 12345, 4453648)

Credits The cloud data interface information was acquired from various topics on the Scratch Forums.

TheLogFather helped out with various wrappers and conveniences for cloud data.

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

scratchapi-1.4.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

scratchapi-1.4.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file scratchapi-1.4.1.tar.gz.

File metadata

  • Download URL: scratchapi-1.4.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scratchapi-1.4.1.tar.gz
Algorithm Hash digest
SHA256 b89ff66fd0da5667994b01e1c6c26309ae30ace1b27f342233960115872bb359
MD5 5177974154f09cfda8152e0e25bed5f0
BLAKE2b-256 698d3264393ab32804c72ece7404a984746aab54a334e5cf4cbb5dd48ef4eb32

See more details on using hashes here.

File details

Details for the file scratchapi-1.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scratchapi-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c26d05b8426480345b4eec51a1c477276f5c885b325bbbc5ad41f72e4bd1d645
MD5 2b7a83f6a4edd1b2fbfbe742d8020d28
BLAKE2b-256 5f7291c9ea8710cc365afa5f016568c1c7021756e8f7f120f21e82530448c182

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