helallao/perplexity-ai ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python tool for working with Perplexity from code, with both sync and async support, so I can send a question and get back a plain text answer easily.

I want it to support normal queries, streaming responses, file upload for document questions, retry handling, rate limiting, and good error messages. It should also include a browser based interface that can automate sign in and account setup using a Chrome profile, so I can use the app without doing everything manually. If it makes sense, add an MCP server too, so Claude Code or other MCP clients can use Perplexity as a tool.

Please keep it clean and well documented, with examples I can run right away, type hints, logging, and tests. If you need current details for any browser automation or MCP setup, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab