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
optional arguments:
-h, --help show this help message and exit
-out_type OUT_TYPE, -ot OUT_TYPE
Output type
-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 ...
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.7.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for youchat_py-1.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740c113c7b52dc5a45307339629232f7289181e35d4df516948084f06fb53b1d |
|
MD5 | 68897098e68ca92c81b8d79aa13597c6 |
|
BLAKE2b-256 | bd661353237f4de17d32d8e3c8df7515fbadc4c6eb225449402a6b368beaa90d |