Name | youchat-py JSON |
Version |
1.2.1
JSON |
| download |
home_page | None |
Summary | Simple communication with YouChat in python. |
upload_time | 2024-10-10 22:10:30 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | BSD 2-Clause License Copyright (c) 2023, Yaroslavik All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
chatbot
youchat
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# youchat-py
[![yaroslav4167 - youchat-py](https://img.shields.io/static/v1?label=yaroslav4167&message=youchat-py&color=white&logo=github)](https://github.com/yaroslav4167/youchat-py "Go to GitHub repo")
[![stars - youchat-py](https://img.shields.io/github/stars/yaroslav4167/youchat-py?style=social)](https://github.com/yaroslav4167/youchat-py)
[![forks - youchat-py](https://img.shields.io/github/forks/yaroslav4167/youchat-py?style=social)](https://github.com/yaroslav4167/youchat-py)
[![GitHub release](https://img.shields.io/github/release/yaroslav4167/youchat-py?include_prereleases=&sort=semver&color=white)](https://github.com/yaroslav4167/youchat-py/releases/)
[![License](https://img.shields.io/badge/License-BSD--2--Clause_license-white)](https://github.com/yaroslav4167/youchat-py/blob/main/LICENSE)
[![issues - youchat-py](https://img.shields.io/github/issues/yaroslav4167/youchat-py)](https://github.com/yaroslav4167/youchat-py/issues)
Simple communication with YouChat (GPT-4) in python and CLI.
## Installation
> pip install youchat-py
If you use CLI - don't forget to install xvfb.
> apt install xvfb
## Usage
```
usage: youchat [-h] [-out_type OUT_TYPE] [-timeout TIMEOUT] MESSAGE
positional arguments:
MESSAGE Message to YouChat
options:
-h, --help show this help message and exit
-out_type OUT_TYPE, -ot OUT_TYPE
Output type (json/string)
-timeout TIMEOUT, -t TIMEOUT
Timeout to wait response
```
### Example 1
Use in CLI mode
```
youchat hello!
```
Returns: `{"generated_text": "Hello! How can I assist you today?"}`
```
youchat -out_type string "who are you"
```
Returns: `I am YouBot, a large language model developed by You.com. ...`
> **Note**
> on **zsh** - you must use single quotes `youchat 'who are you?'`
### Example 2
Use in module mode
test_unit.py:
```py
from youchat import you_message
print( you_message(text='Hello, World!', out_type="string") )
```
**Returns:** `"Hello, World!" is a common phrase used in ...`
## Problems and solutions
If you often cannot get youchat response - try to update seleniumbase library `pip install -U seleniumbase`
## Used library
- seleniumbase
Raw data
{
"_id": null,
"home_page": null,
"name": "youchat-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "chatbot, youchat",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/62/8f/de002acafbf9688ef54c23b93d8a1663afa948b081a104cf14e8ab342279/youchat_py-1.2.1.tar.gz",
"platform": null,
"description": "# youchat-py\n[![yaroslav4167 - youchat-py](https://img.shields.io/static/v1?label=yaroslav4167&message=youchat-py&color=white&logo=github)](https://github.com/yaroslav4167/youchat-py \"Go to GitHub repo\")\n[![stars - youchat-py](https://img.shields.io/github/stars/yaroslav4167/youchat-py?style=social)](https://github.com/yaroslav4167/youchat-py)\n[![forks - youchat-py](https://img.shields.io/github/forks/yaroslav4167/youchat-py?style=social)](https://github.com/yaroslav4167/youchat-py)\n\n[![GitHub release](https://img.shields.io/github/release/yaroslav4167/youchat-py?include_prereleases=&sort=semver&color=white)](https://github.com/yaroslav4167/youchat-py/releases/)\n[![License](https://img.shields.io/badge/License-BSD--2--Clause_license-white)](https://github.com/yaroslav4167/youchat-py/blob/main/LICENSE)\n[![issues - youchat-py](https://img.shields.io/github/issues/yaroslav4167/youchat-py)](https://github.com/yaroslav4167/youchat-py/issues)\n \n Simple communication with YouChat (GPT-4) in python and CLI.\n\n## Installation\n> pip install youchat-py\n\nIf you use CLI - don't forget to install xvfb.\n> apt install xvfb\n\n## Usage\n```\nusage: youchat [-h] [-out_type OUT_TYPE] [-timeout TIMEOUT] MESSAGE\n\npositional arguments:\n MESSAGE Message to YouChat\n\noptions:\n -h, --help show this help message and exit\n -out_type OUT_TYPE, -ot OUT_TYPE\n Output type (json/string)\n -timeout TIMEOUT, -t TIMEOUT\n Timeout to wait response\n```\n### Example 1\nUse in CLI mode\n```\nyouchat hello!\n```\nReturns: `{\"generated_text\": \"Hello! How can I assist you today?\"}`\n```\nyouchat -out_type string \"who are you\"\n```\nReturns: `I am YouBot, a large language model developed by You.com. ...`\n\n> **Note**\n> on **zsh** - you must use single quotes `youchat 'who are you?'`\n\n\n### Example 2\nUse in module mode\ntest_unit.py:\n```py\nfrom youchat import you_message\n\nprint( you_message(text='Hello, World!', out_type=\"string\") )\n```\n**Returns:** `\"Hello, World!\" is a common phrase used in ...`\n\n## Problems and solutions\nIf you often cannot get youchat response - try to update seleniumbase library `pip install -U seleniumbase`\n\n## Used library\n- seleniumbase\n",
"bugtrack_url": null,
"license": "BSD 2-Clause License Copyright (c) 2023, Yaroslavik All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
"summary": "Simple communication with YouChat in python.",
"version": "1.2.1",
"project_urls": {
"Bug Reports": "https://github.com/yaroslav4167/youchat-py/issues",
"Homepage": "https://github.com/yaroslav4167/youchat-py",
"Source": "https://github.com/yaroslav4167/youchat-py"
},
"split_keywords": [
"chatbot",
" youchat"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4fd320dd6d994fc6f2e74505feaefb4471f2c19ee9b2a48eea34f7712d49aa0b",
"md5": "5afead2c7a97326b25f71ec39dac7c4b",
"sha256": "df485c15f6203c421fbc79229161b2be8740a8eed2af02c927229136c2005d6f"
},
"downloads": -1,
"filename": "youchat_py-1.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5afead2c7a97326b25f71ec39dac7c4b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5326,
"upload_time": "2024-10-10T22:10:29",
"upload_time_iso_8601": "2024-10-10T22:10:29.366372Z",
"url": "https://files.pythonhosted.org/packages/4f/d3/20dd6d994fc6f2e74505feaefb4471f2c19ee9b2a48eea34f7712d49aa0b/youchat_py-1.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "628fde002acafbf9688ef54c23b93d8a1663afa948b081a104cf14e8ab342279",
"md5": "c7a4216d92761affe2e9f321978d9882",
"sha256": "4b711e0d2382c846e9f2df523923b5d5ff4bbc458757e092d8516c76bcf6ce60"
},
"downloads": -1,
"filename": "youchat_py-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "c7a4216d92761affe2e9f321978d9882",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6251,
"upload_time": "2024-10-10T22:10:30",
"upload_time_iso_8601": "2024-10-10T22:10:30.765557Z",
"url": "https://files.pythonhosted.org/packages/62/8f/de002acafbf9688ef54c23b93d8a1663afa948b081a104cf14e8ab342279/youchat_py-1.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-10 22:10:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yaroslav4167",
"github_project": "youchat-py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "youchat-py"
}