https://github.com/anistark/python-bytecode-inspector
A web application for inspecting Python bytecode.
https://github.com/anistark/python-bytecode-inspector
ast bytecode cpython pyodide python wasm
Last synced: 8 months ago
JSON representation
A web application for inspecting Python bytecode.
- Host: GitHub
- URL: https://github.com/anistark/python-bytecode-inspector
- Owner: anistark
- License: mit
- Created: 2025-04-23T19:20:15.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-04-23T19:45:41.000Z (8 months ago)
- Last Synced: 2025-04-24T00:59:08.262Z (8 months ago)
- Topics: ast, bytecode, cpython, pyodide, python, wasm
- Language: TypeScript
- Homepage: https://anistark.github.io/python-bytecode-inspector/
- Size: 2.38 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Bytecode Inspector

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.
## Features
- **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.
## Demo
Check out the live demo of the tool [here](https://anistark.github.io/python-bytecode-inspector).

## Installation
### Prerequisites
- Node.js and npm installed on your local machine.
### Steps to Run Locally
1. Clone this repository:
```bash
git clone https://github.com/anistark/python-bytecode-inspector.git
```
2. Navigate to the project directory:
```bash
cd python-bytecode-inspector
```
3. Install the dependencies:
```bash
npm install
```
4. Start the development server:
```bash
npm start
```
5. Open your browser and go to [http://localhost:3000](http://localhost:3000) to view the app.
## Contributing
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!
### Steps to Contribute:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature-name`).
3. Make your changes and commit them (`git commit -am 'Add new feature'`).
4. Push the branch (`git push origin feature-name`).
5. Create a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.