Introduction¶
Python helper for running Shell scripts in Python
Dependencies¶
This driver depends on:
Linux
Installing from PyPI¶
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-python-shell
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-python-shell
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install adafruit-python-shell
Contributing¶
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation¶
For information on building library documentation, please check out this guide.
Table of Contents¶
API Reference
adafruit_shell
Shell
Shell.args
Shell.argument_exists()
Shell.bail()
Shell.chdir()
Shell.check_kernel_update_reboot_required()
Shell.chmod()
Shell.chown()
Shell.clear()
Shell.copy()
Shell.date()
Shell.error()
Shell.exists()
Shell.exit()
Shell.get_arch()
Shell.get_architecture()
Shell.get_board_model()
Shell.get_os()
Shell.get_raspbian_version()
Shell.getcwd()
Shell.grep()
Shell.group
Shell.home_dir()
Shell.info()
Shell.is_arm64()
Shell.is_armhf()
Shell.is_armv6()
Shell.is_armv7()
Shell.is_armv8()
Shell.is_linux()
Shell.is_python3()
Shell.is_raspberry_pi()
Shell.is_raspberry_pi_os()
Shell.is_root()
Shell.isdir()
Shell.kernel_minimum()
Shell.move()
Shell.path()
Shell.pattern_replace()
Shell.pattern_search()
Shell.popd()
Shell.print_colored()
Shell.prompt()
Shell.prompt_reboot()
Shell.pushd()
Shell.reboot()
Shell.reconfig()
Shell.release()
Shell.remove()
Shell.require_root()
Shell.run_command()
Shell.script()
Shell.select_n()
Shell.warn()
Shell.write_text_file()