# PyPilot
A python terminal with a coding copilot inside.</br>
This is a regular python terminal, only that your comments are used as requests from the copilot.</br>
Don't forget to set the API KEY (supports only OPENAI for now).
## Demo
<img src="./assets/demo.gif" />
## Features
- Code generation inside the python terminal.
- Your comments are used to communicate with the copilot.
- The copilot is aware of the terminal history and locals.
- Both code and chat responses are supported.
- Supports system commands from within the terminal (e.g. !pip install <package_name>).
- Supports all OpenAI models.
## Installation
```bash
$ pip install python-pilot
```
## Usage
```bash
$ pypilot --api-key sk-....
```
or
```bash
$ export OPENAI_API_KEY=sk-...
$ pypilot
```
# TODO
- add a way to use history only with headers of functions...
- docker containers
- add a selector step that decide what context the next llm prompt should have:
- history: code executed (w/wo expressions), errors, llm requests
- locals: vars, functions, modules
(full terminal history, locals only) and if the output should be code or chat
- add support in llm config file
Raw data
{
"_id": null,
"home_page": "https://github.com/roy-pstr/python-pilot",
"name": "python-pilot",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Roy Pasternak",
"author_email": "roy@larium.ai",
"download_url": "https://files.pythonhosted.org/packages/d8/db/1f9d8b77fd08084e9054dee95c785f0c2a91672acee0f04146207b5b405d/python_pilot-0.0.11.tar.gz",
"platform": null,
"description": "# PyPilot\nA python terminal with a coding copilot inside.</br>\nThis is a regular python terminal, only that your comments are used as requests from the copilot.</br>\nDon't forget to set the API KEY (supports only OPENAI for now).\n\n## Demo\n<img src=\"./assets/demo.gif\" />\n\n## Features\n- Code generation inside the python terminal.\n- Your comments are used to communicate with the copilot.\n- The copilot is aware of the terminal history and locals.\n- Both code and chat responses are supported.\n- Supports system commands from within the terminal (e.g. !pip install <package_name>).\n- Supports all OpenAI models.\n\n## Installation\n```bash\n$ pip install python-pilot\n```\n\n## Usage\n```bash\n$ pypilot --api-key sk-....\n```\nor\n```bash\n$ export OPENAI_API_KEY=sk-... \n$ pypilot\n```\n\n# TODO\n- add a way to use history only with headers of functions...\n- docker containers\n- add a selector step that decide what context the next llm prompt should have:\n - history: code executed (w/wo expressions), errors, llm requests\n - locals: vars, functions, modules\n (full terminal history, locals only) and if the output should be code or chat\n- add support in llm config file",
"bugtrack_url": null,
"license": "",
"summary": "A python terminal with coding copilot inside",
"version": "0.0.11",
"project_urls": {
"Homepage": "https://github.com/roy-pstr/python-pilot"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "feb5fe39af8ee6c3b7d99d05a6ce3715b7f2321d415cbddaaba71d4173cf5b7c",
"md5": "d6541e62780b95d423fe2897c442dd53",
"sha256": "403d6d390ff97d314d22d8bfa0061597109350015011ad06a0c7b24101724963"
},
"downloads": -1,
"filename": "python_pilot-0.0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d6541e62780b95d423fe2897c442dd53",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 14843,
"upload_time": "2024-03-14T12:45:49",
"upload_time_iso_8601": "2024-03-14T12:45:49.421485Z",
"url": "https://files.pythonhosted.org/packages/fe/b5/fe39af8ee6c3b7d99d05a6ce3715b7f2321d415cbddaaba71d4173cf5b7c/python_pilot-0.0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d8db1f9d8b77fd08084e9054dee95c785f0c2a91672acee0f04146207b5b405d",
"md5": "fe8e65bc8bdea73ade388c8aae2d2acb",
"sha256": "83f2a066998a41294f66c5f323d569d07ba6a264738dce81011f0acc75b32d44"
},
"downloads": -1,
"filename": "python_pilot-0.0.11.tar.gz",
"has_sig": false,
"md5_digest": "fe8e65bc8bdea73ade388c8aae2d2acb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 11304,
"upload_time": "2024-03-14T12:45:51",
"upload_time_iso_8601": "2024-03-14T12:45:51.220853Z",
"url": "https://files.pythonhosted.org/packages/d8/db/1f9d8b77fd08084e9054dee95c785f0c2a91672acee0f04146207b5b405d/python_pilot-0.0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-14 12:45:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "roy-pstr",
"github_project": "python-pilot",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-pilot"
}