PyBotchi implementation for executing cli commands
Project description
PyBotchi Files
Dedicated agents for cli commands execution.
Feel free to override/extend it's functionality to cater your requirements.
Example Usage
python3 example_usage.py "list files"
Logging: Listing files in the current directory
total 248
drwxr-xr-x 4 root root 4096 Sep 8 14:06 .
drwxr-xr-x 4 root root 4096 Sep 8 12:40 ..
-rw-r--r-- 1 root root 202 Sep 8 13:41 .flake8
drwxr-xr-x 3 root root 4096 Sep 8 13:56 .mypy_cache
-rw-r--r-- 1 root root 297 Sep 8 14:07 README.md
-rw-r--r-- 1 root root 2243 Sep 8 14:06 example_usage.py
-rw-r--r-- 1 root root 28 Sep 8 14:06 mypy.ini
-rw-r--r-- 1 root root 211899 Sep 8 12:43 poetry.lock
drwxr-xr-x 3 root root 4096 Sep 8 13:51 pybotchi_cli
-rw-r--r-- 1 root root 811 Sep 8 12:42 pyproject.toml
Logging: Listing complete
python3 example_usage.py "remove README.md"
Here's the script I will run:
---
echo "[INFO] Attempting to remove README.md file..."
if [ -f "README.md" ]; then
rm README.md
echo "[SUCCESS] README.md has been deleted."
else
echo "[ERROR] README.md file does not exist."
fi
---
If you want to proceed, please reply with "I know what I am doing" exactly:
-
I know what I am doing
[INFO] Attempting to remove README.md file...
[SUCCESS] README.md has been deleted.
-
anything else
Cancelled!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybotchi_cli-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybotchi_cli-0.1.0.tar.gz.
File metadata
- Download URL: pybotchi_cli-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
942c81a81dc1a3383d0014deb5ab1d006e57c9073c62b5db319c03d7ed7c33c0
|
|
| MD5 |
259ba5b7154de8f2597ba9b74ab27ea5
|
|
| BLAKE2b-256 |
a8678b327b17f2387107093f5386b1fbe67ea53a1ffa88a2f6cf3d456f51588d
|
File details
Details for the file pybotchi_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pybotchi_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
883fe48cf843a878fb68be8e36cbbc378f30db133c4d01f7503b136447029558
|
|
| MD5 |
bde918516fde96032abfa9c0d2664248
|
|
| BLAKE2b-256 |
752a3c1ba206768018729a4f452fb64c88bd44a037990c8113d4510926f1595c
|