perplexityai 0.14.0__tar.gz → 0.16.0__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.16.0/.release-please-manifest.json +3 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/CHANGELOG.md +16 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/PKG-INFO +3 -3
- {perplexityai-0.14.0 → perplexityai-0.16.0}/README.md +1 -1
- {perplexityai-0.14.0 → perplexityai-0.16.0}/SECURITY.md +4 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/pyproject.toml +2 -2
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_version.py +1 -1
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/search.py +4 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/search_create_params.py +2 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/test_search.py +2 -0
- perplexityai-0.14.0/.release-please-manifest.json +0 -3
- {perplexityai-0.14.0 → perplexityai-0.16.0}/.gitignore +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/CONTRIBUTING.md +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/LICENSE +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/api.md +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/bin/check-release-environment +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/bin/publish-pypi +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/examples/.keep +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/noxfile.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/release-please-config.json +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/requirements-dev.lock +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/requirements.lock +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_base_client.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_client.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_compat.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_constants.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_exceptions.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_files.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_models.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_qs.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_resource.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_streaming.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_types.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_compat.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_datetime_parse.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_logs.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_proxy.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_reflection.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_resources_proxy.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_streams.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_sync.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_transform.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_typing.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/_utils/_utils.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/lib/.keep +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/py.typed +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/async_.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/chat/chat.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/chat/completions.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/chat/chat.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/resources/chat/completions.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/completion_create_params.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/completion_create_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/completion_get_params.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/completion_get_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/async_/chat/completion_list_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/chat/completion_create_params.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/search_create_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/api_public_search_result.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/chat_message_input.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/chat_message_output.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/choice.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/usage_info.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared_params/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared_params/api_public_search_result.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared_params/chat_message_input.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/stream_chunk.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/async_/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/async_/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/async_/chat/test_completions.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/chat/__init__.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/api_resources/chat/test_completions.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/conftest.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/sample_file.txt +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_client.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_deepcopy.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_extract_files.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_files.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_models.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_qs.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_required_args.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_response.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_streaming.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_transform.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_utils/test_proxy.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/test_utils/test_typing.py +0 -0
- {perplexityai-0.14.0 → perplexityai-0.16.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.0 (2025-10-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.15.0...v0.16.0](https://github.com/perplexityai/perplexity-py/compare/v0.15.0...v0.16.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([59b9e2d](https://github.com/perplexityai/perplexity-py/commit/59b9e2de4c925b7a8be7e3cff6ffd0de270b5891))
|
|
10
|
+
|
|
11
|
+
## 0.15.0 (2025-10-08)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.14.0...v0.15.0](https://github.com/perplexityai/perplexity-py/compare/v0.14.0...v0.15.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([729cd6a](https://github.com/perplexityai/perplexity-py/commit/729cd6a93cbee77f335a19d6ba09299f08f1d546))
|
|
18
|
+
|
|
3
19
|
## 0.14.0 (2025-10-08)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.13.0...v0.14.0](https://github.com/perplexityai/perplexity-py/compare/v0.13.0...v0.14.0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perplexityai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.16.0
|
|
4
4
|
Summary: The official Python library for the perplexity API
|
|
5
5
|
Project-URL: Homepage, https://github.com/perplexityai/perplexity-py
|
|
6
6
|
Project-URL: Repository, https://github.com/perplexityai/perplexity-py
|
|
7
|
-
Author: Perplexity
|
|
7
|
+
Author-email: Perplexity <api@perplexity.ai>
|
|
8
8
|
License: Apache-2.0
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -46,7 +46,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
46
46
|
|
|
47
47
|
## Documentation
|
|
48
48
|
|
|
49
|
-
The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
|
|
49
|
+
The REST API documentation can be found on [docs.perplexity.ai](https://docs.perplexity.ai/). The full API of this library can be found in [api.md](https://github.com/perplexityai/perplexity-py/tree/main/api.md).
|
|
50
50
|
|
|
51
51
|
## Installation
|
|
52
52
|
|
|
@@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
11
11
|
|
|
12
12
|
## Documentation
|
|
13
13
|
|
|
14
|
-
The full API of this library can be found in [api.md](api.md).
|
|
14
|
+
The REST API documentation can be found on [docs.perplexity.ai](https://docs.perplexity.ai/). The full API of this library can be found in [api.md](api.md).
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
@@ -18,6 +18,10 @@ before making any information public.
|
|
|
18
18
|
If you encounter security issues that are not directly related to SDKs but pertain to the services
|
|
19
19
|
or products provided by Perplexity, please follow the respective company's security reporting guidelines.
|
|
20
20
|
|
|
21
|
+
### Perplexity Terms and Policies
|
|
22
|
+
|
|
23
|
+
Please contact api@perplexity.ai for any questions or concerns regarding the security of our services.
|
|
24
|
+
|
|
21
25
|
---
|
|
22
26
|
|
|
23
27
|
Thank you for helping us keep the SDKs and systems they interact with secure.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "perplexityai"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.16.0"
|
|
4
4
|
description = "The official Python library for the perplexity API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
7
7
|
authors = [
|
|
8
|
-
{ name = "Perplexity", email = "" },
|
|
8
|
+
{ name = "Perplexity", email = "api@perplexity.ai" },
|
|
9
9
|
]
|
|
10
10
|
dependencies = [
|
|
11
11
|
"httpx>=0.23.0, <1",
|
|
@@ -52,6 +52,7 @@ class SearchResource(SyncAPIResource):
|
|
|
52
52
|
max_results: int | Omit = omit,
|
|
53
53
|
max_tokens: int | Omit = omit,
|
|
54
54
|
max_tokens_per_page: int | Omit = omit,
|
|
55
|
+
search_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
55
56
|
search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
|
|
56
57
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
57
58
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -81,6 +82,7 @@ class SearchResource(SyncAPIResource):
|
|
|
81
82
|
"max_results": max_results,
|
|
82
83
|
"max_tokens": max_tokens,
|
|
83
84
|
"max_tokens_per_page": max_tokens_per_page,
|
|
85
|
+
"search_domain_filter": search_domain_filter,
|
|
84
86
|
"search_mode": search_mode,
|
|
85
87
|
},
|
|
86
88
|
search_create_params.SearchCreateParams,
|
|
@@ -120,6 +122,7 @@ class AsyncSearchResource(AsyncAPIResource):
|
|
|
120
122
|
max_results: int | Omit = omit,
|
|
121
123
|
max_tokens: int | Omit = omit,
|
|
122
124
|
max_tokens_per_page: int | Omit = omit,
|
|
125
|
+
search_domain_filter: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
123
126
|
search_mode: Optional[Literal["web", "academic", "sec"]] | Omit = omit,
|
|
124
127
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
125
128
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -149,6 +152,7 @@ class AsyncSearchResource(AsyncAPIResource):
|
|
|
149
152
|
"max_results": max_results,
|
|
150
153
|
"max_tokens": max_tokens,
|
|
151
154
|
"max_tokens_per_page": max_tokens_per_page,
|
|
155
|
+
"search_domain_filter": search_domain_filter,
|
|
152
156
|
"search_mode": search_mode,
|
|
153
157
|
},
|
|
154
158
|
search_create_params.SearchCreateParams,
|
|
@@ -34,6 +34,7 @@ class TestSearch:
|
|
|
34
34
|
max_results=0,
|
|
35
35
|
max_tokens=0,
|
|
36
36
|
max_tokens_per_page=0,
|
|
37
|
+
search_domain_filter=["string"],
|
|
37
38
|
search_mode="web",
|
|
38
39
|
)
|
|
39
40
|
assert_matches_type(SearchCreateResponse, search, path=["response"])
|
|
@@ -87,6 +88,7 @@ class TestAsyncSearch:
|
|
|
87
88
|
max_results=0,
|
|
88
89
|
max_tokens=0,
|
|
89
90
|
max_tokens_per_page=0,
|
|
91
|
+
search_domain_filter=["string"],
|
|
90
92
|
search_mode="web",
|
|
91
93
|
)
|
|
92
94
|
assert_matches_type(SearchCreateResponse, search, path=["response"])
|
|
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.14.0 → perplexityai-0.16.0}/src/perplexity/resources/async_/chat/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/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
|
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/chat/completion_create_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/api_public_search_result.py
RENAMED
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/chat_message_input.py
RENAMED
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared/chat_message_output.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/src/perplexity/types/shared_params/chat_message_input.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{perplexityai-0.14.0 → perplexityai-0.16.0}/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
|