Skip to content

6C656C65/pythonrunner

Repository files navigation

pythonrunner

pythonrunner is a program that allows you to run independent python scripts with a defined configuration.




📦 Installation

Install from source

git clone https://github.com/6C656C65/pythonrunner.git
cd pythonrunner
pip install -r requirements.txt

Install from package

pip install pyrunx

⚙️ Configuration

Pythonrunner requires a YAML configuration file. By default, it takes the config.yml or config.yaml file from the current directory. Alternatively, you can use the -c or --config argument for the path to the file to use. The file simply contains the variables that will be used in the extensions. Here is an example file:

crtsh:
  discord_token: "XXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  discord_prefix: "!"

dns:
  discord_token: "XXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  discord_prefix: "!"

rootme:
  discord_token: "XXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  discord_prefix: "!"
  api_key: XXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  users_uid:
    - uid: 000000
      pseudo: user1
    - uid: 111111
      pseudo: user2
...

🧩 Extensions

Pythonrunner will launch the python files located in the extensions folder. The python files can be in subfolders of this folder. You can use the -e or --extensions argument to change the path of the folder to read.

You can also use the --only argument to specify a comma-separated list of extension filenames (without .py) to load exclusively. Example:

pythonrunner --only dns,crtsh

This will only load the dns.py and crtsh.py extensions.

Extensions are available on this repository. Each of these extensions offers a configuration file. You can add the configurations to your file.

📚 Documentation

If you encounter any problems, or if you want to use the program in a particular way, I advise you to read the documentation.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome and appreciated! If you'd like to improve this project, feel free to fork the repository and submit a pull request. Whether it's fixing bugs, adding new features, improving documentation, or suggesting enhancements, every bit helps. Please make sure to follow the coding standards and test your changes before submitting. Let's build something great together!


About

Simple project that allows you to run python scripts

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages