A simple module to use Perplexity AI in Python.
Project description
perplexityai
A simple module to use Perplexity AI in Python.
Get started:
python -m pip install -U perplexityai
Join my 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 me! 💕
- 🎉 Join my Discord Server: Chat with me and others. Join here:
Example:
from perplexityai import Perplexity
prompt = input("👦: ")
for a in Perplexity().generate_answer(prompt):
print(f"🤖: {a['answer']}")
Thanks to nathanrchn/perplexityai for the original code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
perplexityai-1.0.2.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for perplexityai-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f3dd4b48dc93693493da4c0a8250631dfd18cfc123a1028fd16eff9db410822 |
|
MD5 | 49c45ae1e4e8d9a128fe31ace957cbdc |
|
BLAKE2b-256 | b1210fe1304d95fdb7e0db48e19ca93744a1cc84be2dad375121610e7511b612 |