Skip to main content

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())

Metadata

Release files for yagpt-py 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yagpt-py 0.0.5
File Size Uploaded
yagpt_py-0.0.5.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yagpt-py 0.0.5
File Interpreter ABI Platform
yagpt_py-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / yagpt_py-0.0.5.tar.gz

Download URL yagpt_py-0.0.5.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6d2fc19ffa62ef3cba27d5992f5e860773ca5a18081f5c997b84e74b2c6f3dd1
BLAKE2b-256 checksum
How to use checksums
ebd912859c140334729d1140dc63d6f122168cb2a8dc30d2143ce8c83f661a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / yagpt_py-0.0.5-py3-none-any.whl

Download URL yagpt_py-0.0.5-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4d05532724a2048fa05167f2b6b588ffae8ca46640b12a77451a218c4866496
BLAKE2b-256 checksum
How to use checksums
d75a9c1e4cc693bfe01122cb3ace365bb4d05d41bc7f2e0d60cd97c46ed2d114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page