Skip to main content

alpha version of YandexGPT package for Python.

Project description

YandexGPT Python Library

What is this?

This library allows you work with YandexGPT using Python and implement it to your projects.

Setup

pip install yagpt-py

Usage

import os
from yagpt_py.authData import AuthData
from yagpt_py.messages import Messages
from yagpt_py.response import Response

token = AuthData.Token = os.getenv('IAM_token')
folder_id = AuthData.CatalogID = os.getenv('catalog_id')

message = Messages.user = 'Tell me poem about misfit developer.'

response = Response(token, folder_id, message)

print(response.getResponse())

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

yagpt_py-0.0.5.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

yagpt_py-0.0.5-py3-none-any.whl (3.4 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