paita


Namepaita JSON
Version 0.1.9 PyPI version JSON
download
home_pageNone
Summarypaita - Python AI Textual Assistant
upload_time2024-04-06 15:22:08
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords ai aws bedrock chat chatgpt openai python textual
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Paita - Python AI Textual Assistant
<img src="https://github.com/villekr/paita/blob/main/imgs/paita.jpg?raw=true" width="800">

Paita is textual assistant for your terminal that supports multiple AI Services and models.

## Key Features
- **Supports Multiple AI Services:** Paita integrates with a variety of AI services through the [LangChain](https://python.langchain.com) library. If AI service is compatible with LangChain then it can be used also with Paita. Currently OpenAI and AWS Bedrock models are supported.
- **Textual User Interface on your terminal:** Paita is based on [Textual](https://textual.textualize.io/) and provides a sophisticated user interface right within your terminal, combining the complexity of a GUI with console simplicity.                                                                                       
- **Cross-Platform Compatibility:** Paita is compatible with Windows, macOS, and Linux systems across most terminals; if Python runs in your environment and Textual supports it, then Paita will work.

### Supported AI Services
* OpenAI
* AWS Bedrock
* Ollama (local models)
* (More to come soon...)

## Getting Started

### Prerequisites
- Python 3.8.1+
- Access to AI Service and configured in terminal

### Installation and running

Install using pip (or pipx)
```
pip install paita
```

Run and enjoy!
```
paita
```

### Some keyboard shortcuts

Paita is textual ui application so using keyboard shortcuts is recommended:
* Use `tab` and `shift`+`tab` to navigate between input field, send-button and question/answer boxes
* While question/answer box is focus use `enter` to "focus-in" and `esc` to "focus-out"
* Use `c` to copy content from question/answer box
* Contextual keyboard shortcuts are shown at the bottom of the UI

### Configuring AI Service(s) and model access

#### OpenAI

OpenAI usage requires valid api key in environment variable.
```
export OPENAI_API_KEY=<OpenAI API Key>
```

#### AWS Bedrock

Enable AI model access in AWS Bedrock. Configure aws credential access accordingly.

#### Ollama

Ollama enables running chat models locally. 

Install [ollama](https://ollama.com) for operating system or use official (docker image)[https://hub.docker.com/r/ollama/ollama] 

Once ollama installed pull desired [model](https://ollama.com/library) from a registry e.g.
```
ollama pull llama2
```

## Feedback

* [Issues](https://github.com/villekr/paita/issues)
* [Discussion](https://github.com/villekr/paita/discussions)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "paita",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "ai, aws, bedrock, chat, chatgpt, openai, python, textual",
    "author": null,
    "author_email": "Ville K\u00e4rkk\u00e4inen <ville.karkkainen@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/c0/0e/fdc8d4a8733165ffe2656dc844332f7e8122c36f1f7fd3a1aeab708e62e3/paita-0.1.9.tar.gz",
    "platform": null,
    "description": "# Paita - Python AI Textual Assistant\n<img src=\"https://github.com/villekr/paita/blob/main/imgs/paita.jpg?raw=true\" width=\"800\">\n\nPaita is textual assistant for your terminal that supports multiple AI Services and models.\n\n## Key Features\n- **Supports Multiple AI Services:** Paita integrates with a variety of AI services through the [LangChain](https://python.langchain.com) library. If AI service is compatible with LangChain then it can be used also with Paita. Currently OpenAI and AWS Bedrock models are supported.\n- **Textual User Interface on your terminal:** Paita is based on [Textual](https://textual.textualize.io/) and provides a sophisticated user interface right within your terminal, combining the complexity of a GUI with console simplicity.                                                                                       \n- **Cross-Platform Compatibility:** Paita is compatible with Windows, macOS, and Linux systems across most terminals; if Python runs in your environment and Textual supports it, then Paita will work.\n\n### Supported AI Services\n* OpenAI\n* AWS Bedrock\n* Ollama (local models)\n* (More to come soon...)\n\n## Getting Started\n\n### Prerequisites\n- Python 3.8.1+\n- Access to AI Service and configured in terminal\n\n### Installation and running\n\nInstall using pip (or pipx)\n```\npip install paita\n```\n\nRun and enjoy!\n```\npaita\n```\n\n### Some keyboard shortcuts\n\nPaita is textual ui application so using keyboard shortcuts is recommended:\n* Use `tab` and `shift`+`tab` to navigate between input field, send-button and question/answer boxes\n* While question/answer box is focus use `enter` to \"focus-in\" and `esc` to \"focus-out\"\n* Use `c` to copy content from question/answer box\n* Contextual keyboard shortcuts are shown at the bottom of the UI\n\n### Configuring AI Service(s) and model access\n\n#### OpenAI\n\nOpenAI usage requires valid api key in environment variable.\n```\nexport OPENAI_API_KEY=<OpenAI API Key>\n```\n\n#### AWS Bedrock\n\nEnable AI model access in AWS Bedrock. Configure aws credential access accordingly.\n\n#### Ollama\n\nOllama enables running chat models locally. \n\nInstall [ollama](https://ollama.com) for operating system or use official (docker image)[https://hub.docker.com/r/ollama/ollama] \n\nOnce ollama installed pull desired [model](https://ollama.com/library) from a registry e.g.\n```\nollama pull llama2\n```\n\n## Feedback\n\n* [Issues](https://github.com/villekr/paita/issues)\n* [Discussion](https://github.com/villekr/paita/discussions)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "paita - Python AI Textual Assistant",
    "version": "0.1.9",
    "project_urls": {
        "Documentation": "https://github.com/villekr/paita#readme",
        "Issues": "https://github.com/villekr/paita/issues",
        "Source": "https://github.com/villekr/paita"
    },
    "split_keywords": [
        "ai",
        " aws",
        " bedrock",
        " chat",
        " chatgpt",
        " openai",
        " python",
        " textual"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1ae070d4678e0edea912b4bc6a931a45671c6c5aef2667c64c23301dfefd7b31",
                "md5": "236867b185184b77b65e7e3e1fcf0bfc",
                "sha256": "8ce871b64536f1d3e1005f9ef59c0b086a5b798c54cacdb4c23c6ab5d6188c1b"
            },
            "downloads": -1,
            "filename": "paita-0.1.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "236867b185184b77b65e7e3e1fcf0bfc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 26341,
            "upload_time": "2024-04-06T15:22:10",
            "upload_time_iso_8601": "2024-04-06T15:22:10.790183Z",
            "url": "https://files.pythonhosted.org/packages/1a/e0/70d4678e0edea912b4bc6a931a45671c6c5aef2667c64c23301dfefd7b31/paita-0.1.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c00efdc8d4a8733165ffe2656dc844332f7e8122c36f1f7fd3a1aeab708e62e3",
                "md5": "29e87092f38c5877d463fce9906ac941",
                "sha256": "42247103482e279b1959d3b66958c10f27c99602b30959c476bfc2b4c5304b16"
            },
            "downloads": -1,
            "filename": "paita-0.1.9.tar.gz",
            "has_sig": false,
            "md5_digest": "29e87092f38c5877d463fce9906ac941",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 307974,
            "upload_time": "2024-04-06T15:22:08",
            "upload_time_iso_8601": "2024-04-06T15:22:08.922383Z",
            "url": "https://files.pythonhosted.org/packages/c0/0e/fdc8d4a8733165ffe2656dc844332f7e8122c36f1f7fd3a1aeab708e62e3/paita-0.1.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-06 15:22:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "villekr",
    "github_project": "paita#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "paita"
}
        
Elapsed time: 0.22814s