Skip to content

Python Source Code Runner (Auto Library's Installer)

License

Notifications You must be signed in to change notification settings

xspoilt-dev/pyrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Runner with Dependency Installer

Pyrun allows you to run any Python file, automatically detecting and installing missing libraries to prevent runtime errors.

Features

  • Automatic Dependency Detection: Scans the target Python file for required libraries.
  • Auto Installation: Installs any missing libraries before running the script.
  • Error Handling: Ensures smooth execution without dependency-related interruptions.

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Installation

git clone https://github.com/xspoilt-dev/pyrun
cd pyrun
mv pyrun.py pyrun
chmod +x pyrun
mv pyrun /data/data/com.termux/files/usr/bin

Usage

  • The file has been moved to your bin directory now you can access that from any folder of your termux.
  pyrun <file.py>

How It Works?

  1. The runner script scans the target Python file for import statements.
  2. It checks if each imported library is installed.
  3. If any library is missing, it automatically installs it using pip.
  4. Finally, it runs the target Python script.

Limitations

  • The script assumes that all dependencies can be installed via pip.
  • Some libraries might require additional system-level dependencies.

Contact

For any questions or suggestions, feel free to open an issue or contact Developer

About

Python Source Code Runner (Auto Library's Installer)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages