Simple communication with YouChat in python.
Project description
youchat-py
Simple communication with YouChat in python.
Installation
pip install youchat-py
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
youchat_py-1.1.8.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for youchat_py-1.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95d31924ddec104e4b9688115bf30adc22b34a0ef49bd158c448aaf07d732497 |
|
MD5 | af873e101276969daf584d56e7d79cac |
|
BLAKE2b-256 | 9411d9afa25b6a744e303a6db4b462166da3d63e5c04619bcb9009a1abcc15fc |