perplexityai 0.7.1__tar.gz → 0.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perplexityai might be problematic. Click here for more details.
- perplexityai-0.7.2/.release-please-manifest.json +3 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/CHANGELOG.md +4 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/PKG-INFO +41 -2
- {perplexityai-0.7.1 → perplexityai-0.7.2}/README.md +40 -1
- {perplexityai-0.7.1 → perplexityai-0.7.2}/pyproject.toml +1 -1
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_version.py +1 -1
- perplexityai-0.7.1/.release-please-manifest.json +0 -3
- {perplexityai-0.7.1 → perplexityai-0.7.2}/.gitignore +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/CONTRIBUTING.md +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/LICENSE +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/SECURITY.md +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/api.md +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/bin/check-release-environment +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/bin/publish-pypi +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/examples/.keep +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/noxfile.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/release-please-config.json +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/requirements-dev.lock +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/requirements.lock +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_base_client.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_client.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_compat.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_constants.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_exceptions.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_files.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_models.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_qs.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_resource.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_streaming.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_types.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_compat.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_datetime_parse.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_logs.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_proxy.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_reflection.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_resources_proxy.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_streams.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_sync.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_transform.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_typing.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/_utils/_utils.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/lib/.keep +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/py.typed +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/async_.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/chat/chat.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/chat/completions.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/chat/chat.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/chat/completions.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/content.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/search.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_create_params.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_create_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_get_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_list_params.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_list_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/chat/completion_create_params.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/chat/completion_create_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/content_create_params.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/content_create_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/search_create_params.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/search_create_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared/chat_choice.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared/chat_message.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared/search_result.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared/usage_info.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared_params/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared_params/chat_message.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/async_/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/async_/chat/test_completions.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/chat/__init__.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/chat/test_completions.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/test_content.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/test_search.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/conftest.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/sample_file.txt +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_client.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_deepcopy.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_extract_files.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_files.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_models.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_qs.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_required_args.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_response.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_streaming.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_transform.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_utils/test_datetime_parse.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_utils/test_proxy.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/test_utils/test_typing.py +0 -0
- {perplexityai-0.7.1 → perplexityai-0.7.2}/tests/utils.py +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.2 (2025-09-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.7.1...v0.7.2](https://github.com/ppl-ai/perplexity-py/compare/v0.7.1...v0.7.2)
|
|
6
|
+
|
|
3
7
|
## 0.7.1 (2025-09-10)
|
|
4
8
|
|
|
5
9
|
Full Changelog: [v0.7.0...v0.7.1](https://github.com/ppl-ai/perplexity-py/compare/v0.7.0...v0.7.1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perplexityai
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: The official Python library for the perplexity API
|
|
5
5
|
Project-URL: Homepage, https://github.com/ppl-ai/perplexity-py
|
|
6
6
|
Project-URL: Repository, https://github.com/ppl-ai/perplexity-py
|
|
@@ -55,7 +55,46 @@ The full API of this library can be found in [api.md](https://github.com/ppl-ai/
|
|
|
55
55
|
pip install perplexityai
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
##
|
|
58
|
+
## Search API
|
|
59
|
+
|
|
60
|
+
Get web search results:
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
import os
|
|
64
|
+
from perplexity import Perplexity
|
|
65
|
+
|
|
66
|
+
client = Perplexity(
|
|
67
|
+
api_key=os.environ.get("PERPLEXITY_API_KEY"), # This is the default and can be omitted
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
search = client.search.create(
|
|
71
|
+
query="latest AI developments 2024",
|
|
72
|
+
max_results=5
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
for result in search.results:
|
|
76
|
+
print(f"{result.title}: {result.url}")
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Content API
|
|
80
|
+
|
|
81
|
+
Extract and process content from URLs:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
from perplexity import Perplexity
|
|
85
|
+
|
|
86
|
+
client = Perplexity()
|
|
87
|
+
|
|
88
|
+
content = client.content.create(
|
|
89
|
+
urls=["https://en.wikipedia.org/wiki/Perplexity_AI"]
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
for result in content.results:
|
|
93
|
+
print(f"Title: {result.title}")
|
|
94
|
+
print(f"Content: {result.content[:200]}...")
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Chat Completions
|
|
59
98
|
|
|
60
99
|
The full API of this library can be found in [api.md](https://github.com/ppl-ai/perplexity-py/tree/main/api.md).
|
|
61
100
|
|
|
@@ -20,7 +20,46 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
20
20
|
pip install perplexityai
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Search API
|
|
24
|
+
|
|
25
|
+
Get web search results:
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
import os
|
|
29
|
+
from perplexity import Perplexity
|
|
30
|
+
|
|
31
|
+
client = Perplexity(
|
|
32
|
+
api_key=os.environ.get("PERPLEXITY_API_KEY"), # This is the default and can be omitted
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
search = client.search.create(
|
|
36
|
+
query="latest AI developments 2024",
|
|
37
|
+
max_results=5
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
for result in search.results:
|
|
41
|
+
print(f"{result.title}: {result.url}")
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Content API
|
|
45
|
+
|
|
46
|
+
Extract and process content from URLs:
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from perplexity import Perplexity
|
|
50
|
+
|
|
51
|
+
client = Perplexity()
|
|
52
|
+
|
|
53
|
+
content = client.content.create(
|
|
54
|
+
urls=["https://en.wikipedia.org/wiki/Perplexity_AI"]
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
for result in content.results:
|
|
58
|
+
print(f"Title: {result.title}")
|
|
59
|
+
print(f"Content: {result.content[:200]}...")
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Chat Completions
|
|
24
63
|
|
|
25
64
|
The full API of this library can be found in [api.md](api.md).
|
|
26
65
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/resources/async_/chat/completions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/async_/chat/completion_list_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/chat/completion_create_params.py
RENAMED
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/chat/completion_create_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/src/perplexity/types/shared_params/chat_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.7.1 → perplexityai-0.7.2}/tests/api_resources/async_/chat/test_completions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|