A parser for all things sb3
Project description
sbeditor
A parser for all things sb3 (and sprite3), created by faretek1
Lets you read and write sb3 files!
This is a very much work-in-progress project but the underlying functionality is complete. Currently adding a ton of
classes to sbuild.py
so that you don't need to remember/look up block opcodes/input names
Features
- An object-oriented format for a sb3 or sprite3 file (Project, Target, Block, etc.)
- Supports writing Scratch code
- Allows for easy creation of hacked scripts
- And so much more (as well as so much more to come)
Installing
You can install sbeditor using pip:
pip install sbeditor
Documentation
Unfortunately, there is not yet any documentation. However, it is planned.
Helpful resources
Example code
from sbeditor import *
# pip install printbeautifully
from beautifulprint import bprint
proj = Project.from_sb3("Project.sb3")
block = proj.stage.get_blocks_by_opcode("event_whenflagclicked")[0]
bprint(block.subtree)
proj.save_json()
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
sbeditor-0.0.3.1.tar.gz
(23.3 kB
view details)
Built Distribution
File details
Details for the file sbeditor-0.0.3.1.tar.gz
.
File metadata
- Download URL: sbeditor-0.0.3.1.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2f0e91c40e67e588fb6fa1afba9e7b53c54d94f39d82b025d01d6cab23ba56 |
|
MD5 | 1b4f98804ab9c63fbfc6750b41ff2597 |
|
BLAKE2b-256 | 4d5be0653eb53a6db7c18c66b2b9d922ca6f9dada619b178f63af56eeacbfa08 |
File details
Details for the file sbeditor-0.0.3.1-py3-none-any.whl
.
File metadata
- Download URL: sbeditor-0.0.3.1-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d540b019567406577815e8842f8b37a95f0da09fd9b0ef968cb5a335220ec8 |
|
MD5 | 0c357f5e2d21bbbabf997e4034888f30 |
|
BLAKE2b-256 | 7bc8f3a350e15e34114ef8061454053473bb135ee5a4e38cab4a71481346b3bc |