A simple web-based tool built using React and Pyodide that allows users to input Python code, view its Abstract Syntax Tree (AST), bytecode, and raw bytecode. This tool helps you understand how Python code is parsed, compiled, and executed at a low level.
- AST Viewer: View the Abstract Syntax Tree (AST) representation of your Python code.
- Bytecode Disassembler: See the disassembled bytecode of your Python code.
- Raw Bytecode: View the raw bytecode as generated by Python’s compiler.
Check out the live version of the tool here.
- Node.js and npm installed on your local machine.
-
Clone this repository:
git clone https://github.com/anistark/python-bytecode-inspector.git
-
Navigate to the project directory:
cd python-bytecode-inspector
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and go to http://localhost:3000 to view the app.
Feel free to fork this repository and submit pull requests to improve the tool. Any contributions to enhance the functionality, UI/UX, or performance are welcome!
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push the branch (
git push origin feature-name
). - Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.