persona-sdk-python 0.2.4__tar.gz → 0.2.5__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.
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/PKG-INFO +7 -11
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/README.md +6 -10
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/pyproject.toml +1 -1
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/.gitignore +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/DEPLOY.md +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/bitbucket-pipelines.yml +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/__init__.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/__init__.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/agents.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/credentials.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/features.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/knowledge_bases.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/missions.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/projects.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/service_prices.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/sessions.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/triggers.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/api/workflows.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/auth/__init__.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/auth/api_key_auth.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/auth/base.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/auth/bearer_token_auth.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/client.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/runners/__init__.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/runners/agent_runner.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/runners/resource_retriever.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/runners/tool_invoker.py +0 -0
- {persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: persona-sdk-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Async Python SDK for the Persona AI platform
|
|
5
5
|
Project-URL: Homepage, https://persona.applica.guru
|
|
6
6
|
Project-URL: Repository, https://bitbucket.org/applicaguru/persona-sdk-python
|
|
@@ -134,24 +134,20 @@ The `PersonaSdk` instance exposes one client per resource:
|
|
|
134
134
|
| `sdk.credentials` | OAuth credentials and authorization |
|
|
135
135
|
| `sdk.service_prices` | Service pricing |
|
|
136
136
|
|
|
137
|
-
Each API method is fully async. Always close the SDK when done
|
|
137
|
+
Each API method is fully async. Always close the SDK when done to release the
|
|
138
|
+
underlying HTTP connection pool:
|
|
138
139
|
|
|
139
140
|
```python
|
|
140
|
-
sdk = PersonaSdk(
|
|
141
|
+
sdk = PersonaSdk(
|
|
142
|
+
base_url="https://persona.applica.guru/api",
|
|
143
|
+
auth="prs_your_api_key",
|
|
144
|
+
)
|
|
141
145
|
try:
|
|
142
146
|
agents = await sdk.agents.list()
|
|
143
147
|
finally:
|
|
144
148
|
await sdk.close()
|
|
145
149
|
```
|
|
146
150
|
|
|
147
|
-
Or use it as an async context manager pattern:
|
|
148
|
-
|
|
149
|
-
```python
|
|
150
|
-
sdk = PersonaSdk(...)
|
|
151
|
-
async with sdk.client._client: # internal httpx client
|
|
152
|
-
...
|
|
153
|
-
```
|
|
154
|
-
|
|
155
151
|
## CRUD example
|
|
156
152
|
|
|
157
153
|
```python
|
|
@@ -110,24 +110,20 @@ The `PersonaSdk` instance exposes one client per resource:
|
|
|
110
110
|
| `sdk.credentials` | OAuth credentials and authorization |
|
|
111
111
|
| `sdk.service_prices` | Service pricing |
|
|
112
112
|
|
|
113
|
-
Each API method is fully async. Always close the SDK when done
|
|
113
|
+
Each API method is fully async. Always close the SDK when done to release the
|
|
114
|
+
underlying HTTP connection pool:
|
|
114
115
|
|
|
115
116
|
```python
|
|
116
|
-
sdk = PersonaSdk(
|
|
117
|
+
sdk = PersonaSdk(
|
|
118
|
+
base_url="https://persona.applica.guru/api",
|
|
119
|
+
auth="prs_your_api_key",
|
|
120
|
+
)
|
|
117
121
|
try:
|
|
118
122
|
agents = await sdk.agents.list()
|
|
119
123
|
finally:
|
|
120
124
|
await sdk.close()
|
|
121
125
|
```
|
|
122
126
|
|
|
123
|
-
Or use it as an async context manager pattern:
|
|
124
|
-
|
|
125
|
-
```python
|
|
126
|
-
sdk = PersonaSdk(...)
|
|
127
|
-
async with sdk.client._client: # internal httpx client
|
|
128
|
-
...
|
|
129
|
-
```
|
|
130
|
-
|
|
131
127
|
## CRUD example
|
|
132
128
|
|
|
133
129
|
```python
|
|
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
|
{persona_sdk_python-0.2.4 → persona_sdk_python-0.2.5}/persona_sdk/runners/resource_retriever.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|