Simple communication with YouChat in python.
Project description
youchat-py
Simple communication with YouChat in python.
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:
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
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 youchat_py-1.1.9.tar.gz
.
File metadata
- Download URL: youchat_py-1.1.9.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b79be3fe95410458a7872b253813288cfd3731443df09517ebb73adfdccc2df9 |
|
MD5 | 133acee05dc01446664540d3ed4ba42a |
|
BLAKE2b-256 | d18ef04d487b162763defc7ec8c746c7585e34f685cdc3df165bf1c723e582a5 |
File details
Details for the file youchat_py-1.1.9-py3-none-any.whl
.
File metadata
- Download URL: youchat_py-1.1.9-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198e45016ab6132997280b7ef5d60b46075e0716ec4cf2580274f2f71e03b50d |
|
MD5 | a65f7f58ee79686c4368734a9d8e5e4e |
|
BLAKE2b-256 | 1c356ec5b1a2fd846b0f0488af1cde0f0ea18bd98a1d49204ee3e824b1249e8e |