Skip to main content

用户指南

pip3 install PyPoeApi==0.2.3

设置账户文件,使用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

Metadata

Release files for PyPoeApi 0.2.4

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

Source distribution (sdist)

Source distribution for PyPoeApi 0.2.4
File Size Uploaded Provenance Actions
PyPoeApi-0.2.4.tar.gz 13.2 kB Without provenance Details for PyPoeApi-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyPoeApi 0.2.4
File Interpreter ABI Platform Actions
PyPoeApi-0.2.4-py3-none-any.whl Python 3 none any Details for PyPoeApi-0.2.4-py3-none-any.whl

Total release size: 25.7 kB

Release files / PyPoeApi-0.2.4.tar.gz

Download URL PyPoeApi-0.2.4.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a4e2c89f358969568d9a9aa6529bc76c710c03de909123f2595178830d1b738f
BLAKE2b-256 checksum
How to use checksums
886b0335ade513ac63b3bfe455abc04ad07f20f714d8c8ee793b265aef5731b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / PyPoeApi-0.2.4-py3-none-any.whl

Download URL PyPoeApi-0.2.4-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cb2747bfcc64062df168726a51ae2cac29ab1d8a632f849957658937afa1135
BLAKE2b-256 checksum
How to use checksums
a9cc665b7030b8429f92028a6e1310155178de277faf2e452c06ca6a305d290b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for PyPoeApi 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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