Skip to main content

A3RT-TalkPy

A3RT-TalkPyは、A3RT TalkAPIをPythonから利用するための、非公式ラッパーライブラリです。

Test Program Normal Test Program Async

Upload pypi package release

なぜ作ったのか?

俺が使う理由もなく無駄なライブラリをわざわざ作るわけがないだろう...

A3RT TalkAPIとは?

株式会社リクルートが立ち上げた新規事業の1つであるA3RTという機械学習API群のAPIの1つで、TalkAPIでは会話を行うことができます。
詳しくは、A3RT TalkAPIのページをご覧ください。

A3RT-TalkPyとは?

上記で述べた、A3RT TalkAPIをPythonから利用するための、非公式ラッパーライブラリです。
非同期による処理が可能です。

必要条件

このライブラリを使用するには、以下の環境が必要です。

  • Python 3.10 以上
  • TalkAPIのAPIキー (こちらから発行できます。)

インストール

pip install a3rt-talkpy

使い方

同期処理

from a3rt_talkpy import TalkClient

API_KEY = "aaabbbcccddd"  # APIキーを入力してください。

client = TalkClient(API_KEY)

def main():
    query = input("> ")
    response = client.talk(query)
    print(response.reply)

if __name__ == "__main__":
    main()

非同期処理

import asyncio
from a3rt_talkpy import AsyncTalkClient

API_KEY = "aaabbbcccddd"  # APIキーを入力してください。

client = AsyncTalkClient(API_KEY)

async def main():
    query = input("> ")
    response = await client.talk(query)
    print(response.reply)

if __name__ == "__main__":
    asyncio.run(main())

ライセンス

LICENSEをご確認ください。

Metadata

Release files for a3rt-talkpy 1.0.2

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

Source distribution (sdist)

Source distribution for a3rt-talkpy 1.0.2
File Size Uploaded
a3rt_talkpy-1.0.2.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for a3rt-talkpy 1.0.2
File Interpreter ABI Platform
a3rt_talkpy-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / a3rt_talkpy-1.0.2.tar.gz

Download URL a3rt_talkpy-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
396f229cdb90732dc1d8a5d03b67f5c36c054d60ca860174644b00fe7a547b25
BLAKE2b-256 checksum
How to use checksums
c59f61f0be1f04f2f727d40aa1cf98e92c48fa8ee17f78a6bb169ca97791428e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.5

Release files / a3rt_talkpy-1.0.2-py3-none-any.whl

Download URL a3rt_talkpy-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe2c667fc428cb3a25ccb42412685064e9db92ff56ee318b35e523f27bf70112
BLAKE2b-256 checksum
How to use checksums
8e60b3faead7841b8c8acd26faf001c2f5ff6aa7433778ceee400a38b6fbc496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

1 release file

1.0.0

1 release file

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