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.
Metadata
Release files for scratchapi 1.4.1
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 |
|---|---|---|---|---|
| scratchapi-1.4.1.tar.gz | 6.4 kB | Without provenance | Details for scratchapi-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scratchapi-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for scratchapi-1.4.1-py3-none-any.whl |
Total release size: 14.3 kB
Release files / scratchapi-1.4.1.tar.gz
| Download URL | scratchapi-1.4.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b89ff66fd0da5667994b01e1c6c26309ae30ace1b27f342233960115872bb359
|
|
BLAKE2b-256 checksum How to use checksums |
698d3264393ab32804c72ece7404a984746aab54a334e5cf4cbb5dd48ef4eb32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / scratchapi-1.4.1-py3-none-any.whl
| Download URL | scratchapi-1.4.1-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c26d05b8426480345b4eec51a1c477276f5c885b325bbbc5ad41f72e4bd1d645
|
|
BLAKE2b-256 checksum How to use checksums |
5f7291c9ea8710cc365afa5f016568c1c7021756e8f7f120f21e82530448c182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for scratchapi 1.4.1
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.