Skip to main content

A simple module to use Perplexity AI in Python.

Project description

Helpingai_T2

Helpingai_T2 is a Python module that allows you to interact with the Perplexity AI. It's simple to use and can be easily integrated into your Python projects.

Installation

You can install Helpingai_T2 using pip. Run the following command in your terminal:

python -m pip install -U Helpingai-T2

Join our Discord server for live chat, support, or if you have any issues with this package.

Support this repository:

  • Star the project: Star this repository. It means a lot to us! 💕
  • 🎉 Join our Discord Server: Chat with us and others. Join here
  • 📺 Subscribe to our YouTube channel: Stay updated with our latest tutorials and updates. Subscribe here
  • 📬 Join our Telegram group: Join our community for discussions and support. Join here

Usage

Here are some examples of how you can use the Helpingai_T2 module in your code:

Single Prompt Example

This example takes a single input from the user and generates a response using the Perplexity AI.

from Helpingai_T2 import Perplexity

# Get a prompt from the user
prompt = input("👦: ")

# Generate a response using the Perplexity AI
for a in Perplexity().generate_answer(prompt):
    print(f"🤖: {a['answer']}")

Continuous Conversation Example

This example continuously takes input from the user and generates responses, creating an ongoing conversation with the Perplexity AI.

from Helpingai_T2 import Perplexity

# Start a continuous conversation with the user
while True:
    # Get a prompt from the user
    prompt = input("👦: ")

    # Generate a response using the Perplexity AI
    for a in Perplexity().generate_answer(prompt):
        print(f"🤖: {a['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

Helpingai_T2-0.5.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

Helpingai_T2-0.5-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file Helpingai_T2-0.5.tar.gz.

File metadata

  • Download URL: Helpingai_T2-0.5.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for Helpingai_T2-0.5.tar.gz
Algorithm Hash digest
SHA256 904263625885356873ab648096e19c355b99234629cf6eef6d4179e2032febba
MD5 952268d2f7b27757266f9ca39bc33a41
BLAKE2b-256 2505d8adacd986f55f1bc9443eaa57e2ad6cdb04b332f4896939d8b17b80a823

See more details on using hashes here.

File details

Details for the file Helpingai_T2-0.5-py3-none-any.whl.

File metadata

  • Download URL: Helpingai_T2-0.5-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for Helpingai_T2-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 38aab91065341931e2b9f0931110754abec4f870891fad0195569b1924ea729b
MD5 27aaea9f1640ca75d0cd1a612ce7272a
BLAKE2b-256 55fc79c81f138cb564fde6fb2c51382aaf756a5bc6a3f873ddecad5f56e3649a

See more details on using hashes here.

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