Skip to main content

Simple communication with YouChat in python.

Project description

youchat-py

yaroslav4167 - youchat-py stars - youchat-py forks - youchat-py

GitHub release License issues - youchat-py

Simple communication with YouChat in python.

Installation

pip install -r requirements.txt

Usage

usage: youchat.py [-h] [-out_type OUT_TYPE] 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

Example 1

Use in CLI mode

> python youchat.py "Hello!"
Returns: `'{"generated_text": "Hello! How can I assist you today?"}'`

> python youchat.py -out_type string "How are you?"
Returns: `'As an AI language model, I don't have feelings in the same way humans ...'`

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


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-0.2.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

youchat_py-0.2.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page