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.3.0.zip (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scratchapi-1.3.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file scratchapi-1.3.0.zip.

File metadata

  • Download URL: scratchapi-1.3.0.zip
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scratchapi-1.3.0.zip
Algorithm Hash digest
SHA256 7aed7c419e3c0bf4b9f80495e07309a536b1a26747e2bab7909325a89521f877
MD5 c108bcc0f60239eee5553bece886f7f2
BLAKE2b-256 dc39b238f10a1a30aa932b51f1aaccdcf586b88b811011d0ec05217ca318881f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scratchapi-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc178942c5ca211c076c039e7e878d79bd95b61c88dc8984a7308d364d3f1dc9
MD5 b384c3b7486bc54d4a84f514375b6a67
BLAKE2b-256 a70723e33dd9c3df4666ca514f37a3f8f5b2e57550da217b16e5bad627a0423a

See more details on using hashes here.

Supported by

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