para-sdk 0.21.4rc2__cp38-abi3-macosx_11_0_arm64.whl → 0.22.0rc1__cp38-abi3-macosx_11_0_arm64.whl

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 para-sdk might be problematic. Click here for more details.

para/__init__.py CHANGED
@@ -1,2 +1 @@
1
- from .client import UserClient, new_client, new_connection
2
- from .notebook_client import NotebookClient, from_env
1
+ from .client import UserClient, new_client, new_connection
para/para.abi3.so CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: para-sdk
3
- Version: 0.21.4rc2
3
+ Version: 0.22.0rc1
4
4
  Requires-Dist: python-mimeparse
5
5
  Requires-Dist: panel
6
6
  Requires-Dist: pydeck
@@ -0,0 +1,10 @@
1
+ para/__init__.py,sha256=j91SUu6B2VlgXvHvNkH5NK3WDkBdrNBytoPhO5E_LWU,58
2
+ para/__main__.py,sha256=GUDEQZo7PdWXRCYbNZm65kcl0lENtu3AikKs0bflDrM,64
3
+ para/client.py,sha256=-L3BQ54fumiD06vW97etNcPbFgUA6qIjJUu0YF6Ng8A,10141
4
+ para/conversation_panel.py,sha256=cGRdl2ay1BJJ1yOsJTunDgJAY7CD4BczTiWE0VzN3xc,2168
5
+ para/messages.py,sha256=U41mSpPXp9ub5JpUU53hn-yha9dCA9qOxrj9vsGQUHY,6102
6
+ para/para.abi3.so,sha256=PXCj9d9kXLi3SpSaIQV0ZvKvPn5LYfvMDjbZ_k-54Ec,56031808
7
+ para/poller.py,sha256=vmUeA_Gj9xD7O15n9tY8w37QMMHZwfJpbShB9lNHoJ4,1666
8
+ para_sdk-0.22.0rc1.dist-info/METADATA,sha256=4hAB1D7XArIfBsBeAgohibbS3za29AtrBkHVJUV2Y-w,154
9
+ para_sdk-0.22.0rc1.dist-info/WHEEL,sha256=tDwpVQdIftVdUCGzi9EZxv0g6xpy3EOhhp1xDnIF2OU,102
10
+ para_sdk-0.22.0rc1.dist-info/RECORD,,
para/notebook_client.py DELETED
@@ -1,65 +0,0 @@
1
- import os
2
- import json
3
- import base64
4
- import builtins
5
- from dataclasses import dataclass
6
- from para import para;
7
-
8
- if hasattr(builtins, "__IPYTHON__"):
9
- from .conversation_panel import ConversationPanel
10
-
11
- if hasattr(builtins, "__IPYTHON__"):
12
- import panel as pn
13
- pn.extension()
14
-
15
- class NotebookClient:
16
- _client: any
17
-
18
- def __init__(self, client: any):
19
- self._client = client
20
-
21
- def new_request(self, subject: str, action: str, target_actor_id=None, **kwargs):
22
- return self._client.pncp.skill_request(subject, action, target=target_actor_id, **kwargs)
23
-
24
-
25
-
26
-
27
- async def from_env():
28
- paranet_endpoint = os.environ.get('PARANET_ENDPOINT')
29
-
30
- if not paranet_endpoint:
31
- raise ValueError("PARANET_ENDPOINT is not set")
32
-
33
- actor = os.environ.get('PARANET_ACTOR')
34
- version = os.environ.get('PARANET_ACTOR_VERSION') or '1.0.0'
35
-
36
- if not actor:
37
- raise ValueError("PARANET_ACTOR is required")
38
-
39
- actor_entity_id = f'{actor}@{version}'
40
-
41
- paranet_access_token = os.environ.get('PARANET_ACCESS_TOKEN')
42
- paranet_refresh_token = os.environ.get('PARANET_REFRESH_TOKEN')
43
-
44
- paranet_jwt = os.environ.get('PARANET_JWT')
45
- paranet_password = os.environ.get('PARANET_PASSWORD')
46
- paranet_cognito_password = os.environ.get('PARANET_COGNITO_PASSWORD')
47
-
48
-
49
- print(f"Paranet endpoint: {paranet_endpoint}")
50
- endpoint = para.web_endpoint(paranet_endpoint)
51
-
52
- if paranet_access_token and paranet_refresh_token:
53
- client = await endpoint.paranode(actor, access_token=paranet_access_token, refresh_token=paranet_refresh_token)
54
- elif paranet_password:
55
- client = await endpoint.paranode(actor, password=paranet_password)
56
- elif paranet_cognito_password:
57
- client = await endpoint.paranode(actor, cognito_password=paranet_cognito_password)
58
- elif paranet_jwt:
59
- client = await endpoint.paranode(actor, jwt=paranet_jwt)
60
- else:
61
- raise ValueError("No login method provided")
62
-
63
- print(f"Logged into {paranet_endpoint} as {actor_entity_id}")
64
-
65
- return client
@@ -1,11 +0,0 @@
1
- para/__init__.py,sha256=CEZDFVBKq0mEqRF87LSFSiCo6t6yUjy6nk2TLhd8Jvw,112
2
- para/__main__.py,sha256=GUDEQZo7PdWXRCYbNZm65kcl0lENtu3AikKs0bflDrM,64
3
- para/client.py,sha256=-L3BQ54fumiD06vW97etNcPbFgUA6qIjJUu0YF6Ng8A,10141
4
- para/conversation_panel.py,sha256=cGRdl2ay1BJJ1yOsJTunDgJAY7CD4BczTiWE0VzN3xc,2168
5
- para/messages.py,sha256=U41mSpPXp9ub5JpUU53hn-yha9dCA9qOxrj9vsGQUHY,6102
6
- para/notebook_client.py,sha256=RcDokI59j4jGg-6O2ej91ShRIRjneAIjEL1tK2WbBYY,2032
7
- para/para.abi3.so,sha256=4Nbw9hiG1WgFkQEeBAG8fY96SB911m-czUXWIaWV9oA,52806656
8
- para/poller.py,sha256=vmUeA_Gj9xD7O15n9tY8w37QMMHZwfJpbShB9lNHoJ4,1666
9
- para_sdk-0.21.4rc2.dist-info/METADATA,sha256=7Rpbr9NGkANwfahsnnGj1T7_zfhEHCNeDmu4QE6aezM,154
10
- para_sdk-0.21.4rc2.dist-info/WHEEL,sha256=tDwpVQdIftVdUCGzi9EZxv0g6xpy3EOhhp1xDnIF2OU,102
11
- para_sdk-0.21.4rc2.dist-info/RECORD,,