GithubHelp home page GithubHelp logo

natethegreat714 / python_on_flipper_zero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0d1nss0n/python_on_flipper_zero

0.0 0.0 0.0 2 KB

Run Python on the Flipper Zero

JavaScript 93.90% Python 6.10%

python_on_flipper_zero's Introduction

Python on Flipper Zero

This repository contains JavaScript files to facilitate running Python scripts on Flipper Zero, a versatile multi-tool device. It includes two JavaScript files and an example Python script.

Contents

Introduction

Flipper Zero is a powerful tool with the capability to run Python scripts. This repository provides easy-to-use JavaScript files to streamline the process of launching Python on Flipper Zero.

Files

  1. Run_Python.js: This JavaScript file enables launching Python on Flipper Zero.
  2. Run_Python_Scripts.js: This JavaScript file launches Python on Flipper Zero and then executes an example Python script called example.py.
  3. example.py: An example Python script to demonstrate the functionality of Run_Python_Scripts.js.

Usage

  1. Create a mass storage image on the flipper called Python that's 4gb
  2. Download the embedded python zip from here - https://www.python.org/ftp/python/3.11.8/python-3.11.8-embed-amd64.zip
  3. Mount the flippers Python image and extract the python zip into that drive
  4. Open this file in a text editor "python311._pth" and uncomment "import site" then save
  5. Put this file attached called "get_pip.py" in the python drive that has python.exe, can also download it from here - https://bootstrap.pypa.io/get-pip.py
  6. Next open a terminal in that drive and run ".\python.exe get_pip.py"
  7. This will install PIP on the portable python image
  8. Once this is done you can directly call PIP to install modules with a command like ".\Scripts\pip install cryptography" that is run from the main python directory in your flippers storage
  9. Now you just need to put the run_python.js script in the Scripts section of your flipper and run it.

For Run_Python_Scripts.js, make sure to have example.py in a directory called Payloads in the root of the Flippers mass storage.

Contributing

Contributions are welcome! If you have any improvements or additional functionality to add, feel free to open a pull request or create an issue.

License

This project is licensed under the MIT License.

python_on_flipper_zero's People

Contributors

0d1nss0n avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.