a CLI tool for accessing ChatGPT + other useful features
Project description
BashBot
Work In Progress
BashBot brings the power of OpenAI's gpt-3.5-turbo
to your command-line, plus gives you the additional ability to work in the console while talking to ChatGPT, autosaving code that ChatGPT generates, and giving you the ability to quickly save, run, and view that generated code.
Installation and Config
// installing
$: pip install bashbot
// setting up
$: bashbot config
Usage
// starting BashBot session with autosave = on and language = JS
$: bashbot -S js
Flags
-S [lang]
: Autosave generated code in specified language (eitherjs
,py
,c
, orjsx
)-N [name]
: Name of autosaved code (default: bashbot_code)-P [relative path]
: Path where code will be autosaved (default: directory from which bashbot was called)-L
: Enable logging
Special Keywords:
These words, if entered by themselves during a BashBot session, will trigger different things locally but will not be sent as a prompt to ChatGPT:
- console: opens the system console, use
exit_console
to return to the BashBot session - run: run the last saved code
- open: open the last saved code in vim in the terminal
- exit: terminate the BashBot session
Languages:
Through the -S
flag, code generated in these languages will be saved, and can be executed without leaving the BashBot session.
- Python
- JavaScript
- JSX (React)
- C
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
Built Distribution
File details
Details for the file bashbot_package-0.0.2.tar.gz
.
File metadata
- Download URL: bashbot_package-0.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84a0fdc9d3878edc7641dd0ef856687ea18ca4a66c8fe68b699546899e6108e |
|
MD5 | feae0ab80de0300504a977bd517d518e |
|
BLAKE2b-256 | 70c47acf3c70e38c373234a71d9c7016ca8a07d4b77f5a5e536b23ca3bbb4c6c |
File details
Details for the file bashbot_package-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: bashbot_package-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd6fb02e44985314f383b347913eb482ff8758e635494d0a41029a81e3629f0 |
|
MD5 | 2ec454a16505e6103d6418fdd4a69476 |
|
BLAKE2b-256 | 26be0f1248e9eb89041d5af4919144738d6e57be1161048d690675d760ab7fce |