A comprehensive Python library to extract, analyze, and export detailed statistics from Scratch 3.0 (.sb3) project files.
Project description
# Scratch3 Analyzer
A comprehensive Python library to extract, analyze, and export detailed statistics from Scratch 3.0 (.sb3) project files.
## Features
- Extract and analyze Scratch 3.0 project files (.sb3)
- Analyze sprites, blocks, variables, lists, costumes, sounds, and events
- Calculate project complexity scores
- Export analysis results to Excel with multiple sheets
- Batch process multiple .sb3 files
- Command-line interface for easy use
## Installation
pip install scratch3\_analyzer
Quick Start
python
from scratch3_analyzer import Scratch3Analyzer
analyzer = Scratch3Analyzer()
result = analyzer.analyze_file("my_project.sb3", "analysis.xlsx")
print(f"Total blocks: {result['complexity']['total_blocks']}")
Command Line Usage
bash
# Analyze a single file
scratch3-analyzer analyze my_project.sb3 -o results.xlsx
# Analyze all files in a directory
scratch3-analyzer batch ./projects -o summary.xlsx
# Show version
scratch3-analyzer --version
License
MIT License. See the LICENSE file for details.
Author
jzm (939370014@qq.com)
Project Home
https://github.com/jzm3/scratch3_analyzer
### **LICENSE**
```text
MIT License
Copyright (c) 2024 jzm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scratch3_analyzer-1.0.0.tar.gz.
File metadata
- Download URL: scratch3_analyzer-1.0.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e2b8e969aac7885a085afc3da908e6d81d4088369bcd54d7f9932c236ceefe
|
|
| MD5 |
f924f822edc4b8de4d73a090d0017df6
|
|
| BLAKE2b-256 |
83d7395bd9dd10a15cef54e7be895cdd0c63a79144306245b6993d962620e54d
|
File details
Details for the file scratch3_analyzer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: scratch3_analyzer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
407f709992e8ef404117c53e3254ac02c0651520093bbb97b7b884974558a870
|
|
| MD5 |
335a28b02fde8e97505d60a2a1615b99
|
|
| BLAKE2b-256 |
2661c398de922f60e44deedbd659c574e137bdd5b5b49aa4b5f68bd2314258b9
|