Skip to main content

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


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.4.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

sbeditor-0.0.4-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file sbeditor-0.0.4.tar.gz.

File metadata

  • Download URL: sbeditor-0.0.4.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for sbeditor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6708449ad70d64b9430f9f914394c797bd74189145fc242de08e33a9da69be24
MD5 631987e58410e9489e871e5b4778cacb
BLAKE2b-256 f982aec8937c5657b5ccd30599cad1a63783a7f00177db48769c1a252985e692

See more details on using hashes here.

File details

Details for the file sbeditor-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sbeditor-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for sbeditor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 99706c6d35aa85da052f5cf2725f844400f11fbfa5de8d91ed850faadcaf0093
MD5 f06dce5b6bb580e7a3d87dca6edcefae
BLAKE2b-256 1787166ba557765cb2c76fb1498333a22a498958dba8bd390c18e098689abe1c

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