Skip to main content

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()

Metadata

Release files for sbeditor 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sbeditor 0.0.4
File Size Uploaded
sbeditor-0.0.4.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sbeditor 0.0.4
File Interpreter ABI Platform
sbeditor-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 49.6 kB

Release files / sbeditor-0.0.4.tar.gz

Download URL sbeditor-0.0.4.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6708449ad70d64b9430f9f914394c797bd74189145fc242de08e33a9da69be24
BLAKE2b-256 checksum
How to use checksums
f982aec8937c5657b5ccd30599cad1a63783a7f00177db48769c1a252985e692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / sbeditor-0.0.4-py3-none-any.whl

Download URL sbeditor-0.0.4-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99706c6d35aa85da052f5cf2725f844400f11fbfa5de8d91ed850faadcaf0093
BLAKE2b-256 checksum
How to use checksums
1787166ba557765cb2c76fb1498333a22a498958dba8bd390c18e098689abe1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page