nathanrchn/perplexityai
소개
A python api to use perplexity.ai
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalperplexityai
A python api to use perplexity.ai
Installation
You can install the package with pip and git:
pip install git+https://github.com/nathanrchn/perplexityai.git
Basic Usage
You can just import the Perplexity class and use it like this:
from perplexity import Perplexity
perplexity = Perplexity()
answer = perplexity.search("What is the meaning of life?")
for a in answer:
print(a)
perplexity.close()
Advanced Usage
With the new version, you can now sign in to your account and use the api to its full potential. For now the only provider supported is email, but more will be added in the future.
from perplexity import Perplexity
perplexity = Perplexity("[email protected]")
And then you will receive an email from Perplexity AI. Copy the link associated with the Sign in button in the middle of the email.
The program will create a new file: .perplexity_session for keeping the session cookies.
I you are logged in, you can now upload files to your account.
perplexity.upload("path/to/file")
or
perplexity.upload("https://example.com/file")
Labs
There are three classes to use the labs.perplexity.ai service.
관련 프로젝트 살펴보기
불러오는 중…