Skip to main content

for poe api

Project description

用户指南

pip3 install PyPoeApi==0.2.2

设置账户文件,使用PyPoeApi

from PyPoeApi.poe_client import PoeClient, Chat

PoeClient.ACCOUNT_FILE = "设置文件位置"

async with await PoeClient.create() as poe_client:
    chat = Chat()

    image_url = await poe_client.ask(bot_name="Playground-v2",
                                  question="白天,下雨,沙滩,美女,长发,跳舞",
                                  chat=chat)
    print(image_url)

ACCOUNT_FILE格式如下

accounts:
- Claude-instant-100k: false
  formkey: ""
  p_b: ""
  limit: true
date: 2024-02-08
hour: 9

文件格式为yaml
accounts是数组

  • p_b和formkey是登录的cookie,通过浏览器或者抓包都可以获取到,为固定值
  • limit表示账户是否限制,目前POE采用计算点,免费的用户具有3000个计算点,每个模型的每个消息计算点都不一样,一旦达到了总计算点,会使limit为true

date用于标志是什么时候,由于计算点数每天会自动重置,当日期超过date的话,会重置上面每个账户的limit为false
hour指出从每天的什么时候开始更新

借鉴

https://github.com/canxin121/Async-Poe-Client

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

PyPoeApi-0.2.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyPoeApi-0.2.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file PyPoeApi-0.2.3.tar.gz.

File metadata

  • Download URL: PyPoeApi-0.2.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for PyPoeApi-0.2.3.tar.gz
Algorithm Hash digest
SHA256 43c2585762736fd0eb727e89af7cb43057509a1526984148af0b431cb361c648
MD5 5fca981b20bcfd0993eb98b6a3b13131
BLAKE2b-256 a31f205580c8a60bc0b69973b64b94c7de6ce66043697efc91d31360d1bb95c2

See more details on using hashes here.

File details

Details for the file PyPoeApi-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: PyPoeApi-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for PyPoeApi-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10ea6855a88c0b5c01524f1d76975023a1678205bd910ba0e6cd81683cf019b6
MD5 95efe7a09b1a4beb91bfb5c169148168
BLAKE2b-256 cf6775b6678dd189d47562a3d4de66ee5172ed26687a364100919c2b4d4f9629

See more details on using hashes here.

Supported by

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