Skip to content

anistark/python-bytecode-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Bytecode Inspector

Screenshot of 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.

Live

Check out the live version of the tool here.

Screenshot of Python Bytecode Inspector

Installation

Prerequisites

  • Node.js and npm installed on your local machine.

Steps to Run Locally

  1. Clone this repository:

    git clone https://github.com/anistark/python-bytecode-inspector.git
  2. Navigate to the project directory:

    cd python-bytecode-inspector
  3. Install the dependencies:

    npm install
  4. Start the development server:

    npm start
  5. Open your browser and go to 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 file for details.

About

A web application for inspecting Python bytecode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published