Skip to main content

AnAPI lib

Project description


Class ChatAI

Arguments: version="last", api_key="standart_key"

API key is not needed for API version 1.


  • get_answer(text: str) -> str — return answer from API
  • create(filename: str) -> str — create new AI and return API key
  • upload(filename: str) — edit AI


import anapi

AI = anapi.ChatAI(2, api_key="Your api key")

while True:
    answer = AI.get_answer(input("You: "))

    print("ChatBot:", answer)

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

anapi-2.0.1.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

anapi-2.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded py3

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