perceptic-core-client 0.7.0__py3-none-any.whl → 0.7.2__py3-none-any.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 perceptic-core-client might be problematic. Click here for more details.

@@ -26,57 +26,57 @@ class TestFileSystemContentsResourceApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
- def test_api_v1_file_systems_file_system_rid_contents_download_get(self) -> None:
30
- """Test case for api_v1_file_systems_file_system_rid_contents_download_get
29
+ def test_create_folder(self) -> None:
30
+ """Test case for create_folder
31
31
 
32
- Download
32
+ Create Folder
33
33
  """
34
34
  pass
35
35
 
36
- def test_api_v1_file_systems_file_system_rid_contents_files_get(self) -> None:
37
- """Test case for api_v1_file_systems_file_system_rid_contents_files_get
36
+ def test_download_file(self) -> None:
37
+ """Test case for download_file
38
38
 
39
- List Files Flattened
39
+ Download
40
40
  """
41
41
  pass
42
42
 
43
- def test_api_v1_file_systems_file_system_rid_contents_folders_post(self) -> None:
44
- """Test case for api_v1_file_systems_file_system_rid_contents_folders_post
43
+ def test_get_metadata(self) -> None:
44
+ """Test case for get_metadata
45
45
 
46
- Create Folder
46
+ Get Metadata
47
47
  """
48
48
  pass
49
49
 
50
- def test_api_v1_file_systems_file_system_rid_contents_list_get(self) -> None:
51
- """Test case for api_v1_file_systems_file_system_rid_contents_list_get
50
+ def test_get_parent_resource(self) -> None:
51
+ """Test case for get_parent_resource
52
52
 
53
- List
53
+ Get Parent
54
54
  """
55
55
  pass
56
56
 
57
- def test_api_v1_file_systems_file_system_rid_contents_metadata_get(self) -> None:
58
- """Test case for api_v1_file_systems_file_system_rid_contents_metadata_get
57
+ def test_get_signed_url(self) -> None:
58
+ """Test case for get_signed_url
59
59
 
60
- Get Metadata
60
+ Signed Url
61
61
  """
62
62
  pass
63
63
 
64
- def test_api_v1_file_systems_file_system_rid_contents_parent_get(self) -> None:
65
- """Test case for api_v1_file_systems_file_system_rid_contents_parent_get
64
+ def test_list_files_flattened(self) -> None:
65
+ """Test case for list_files_flattened
66
66
 
67
- Get Parent
67
+ List Files Flattened
68
68
  """
69
69
  pass
70
70
 
71
- def test_api_v1_file_systems_file_system_rid_contents_signed_url_get(self) -> None:
72
- """Test case for api_v1_file_systems_file_system_rid_contents_signed_url_get
71
+ def test_list_folder_contents(self) -> None:
72
+ """Test case for list_folder_contents
73
73
 
74
- Signed Url
74
+ List
75
75
  """
76
76
  pass
77
77
 
78
- def test_api_v1_file_systems_file_system_rid_contents_upload_post(self) -> None:
79
- """Test case for api_v1_file_systems_file_system_rid_contents_upload_post
78
+ def test_upload_file(self) -> None:
79
+ """Test case for upload_file
80
80
 
81
81
  Upload File
82
82
  """
@@ -26,31 +26,31 @@ class TestFileSystemResourceApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
- def test_api_v1_file_systems_file_system_rid_get(self) -> None:
30
- """Test case for api_v1_file_systems_file_system_rid_get
29
+ def test_create_managed_file_system(self) -> None:
30
+ """Test case for create_managed_file_system
31
31
 
32
- Get File System
32
+ Create Managed File System
33
33
  """
34
34
  pass
35
35
 
36
- def test_api_v1_file_systems_get(self) -> None:
37
- """Test case for api_v1_file_systems_get
36
+ def test_create_remote_file_system(self) -> None:
37
+ """Test case for create_remote_file_system
38
38
 
39
- List All File Systems
39
+ Create Remote File System
40
40
  """
41
41
  pass
42
42
 
43
- def test_api_v1_file_systems_managed_post(self) -> None:
44
- """Test case for api_v1_file_systems_managed_post
43
+ def test_get_file_system(self) -> None:
44
+ """Test case for get_file_system
45
45
 
46
- Create Managed File System
46
+ Get File System
47
47
  """
48
48
  pass
49
49
 
50
- def test_api_v1_file_systems_remote_post(self) -> None:
51
- """Test case for api_v1_file_systems_remote_post
50
+ def test_list_all_file_systems(self) -> None:
51
+ """Test case for list_all_file_systems
52
52
 
53
- Create Remote File System
53
+ List All File Systems
54
54
  """
55
55
  pass
56
56
 
@@ -26,17 +26,17 @@ class TestIndexerResourceApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
- def test_api_v1_indexing_indexers_get(self) -> None:
30
- """Test case for api_v1_indexing_indexers_get
29
+ def test_get_indexer(self) -> None:
30
+ """Test case for get_indexer
31
31
 
32
- List Indexers
32
+ Get Indexer
33
33
  """
34
34
  pass
35
35
 
36
- def test_api_v1_indexing_indexers_indexer_rid_get(self) -> None:
37
- """Test case for api_v1_indexing_indexers_indexer_rid_get
36
+ def test_list_indexers(self) -> None:
37
+ """Test case for list_indexers
38
38
 
39
- Get Indexer
39
+ List Indexers
40
40
  """
41
41
  pass
42
42
 
@@ -26,31 +26,31 @@ class TestIndexingTaskResourceApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
- def test_api_v1_indexing_tasks_post(self) -> None:
30
- """Test case for api_v1_indexing_tasks_post
29
+ def test_create_indexing_task(self) -> None:
30
+ """Test case for create_indexing_task
31
31
 
32
32
  Create Indexing Task
33
33
  """
34
34
  pass
35
35
 
36
- def test_api_v1_indexing_tasks_task_rid_actions_get(self) -> None:
37
- """Test case for api_v1_indexing_tasks_task_rid_actions_get
36
+ def test_get_indexing_task(self) -> None:
37
+ """Test case for get_indexing_task
38
38
 
39
- List Indexing Actions
39
+ Get Indexing Task
40
40
  """
41
41
  pass
42
42
 
43
- def test_api_v1_indexing_tasks_task_rid_execute_post(self) -> None:
44
- """Test case for api_v1_indexing_tasks_task_rid_execute_post
43
+ def test_list_indexing_actions(self) -> None:
44
+ """Test case for list_indexing_actions
45
45
 
46
- Start Execution
46
+ List Indexing Actions
47
47
  """
48
48
  pass
49
49
 
50
- def test_api_v1_indexing_tasks_task_rid_get(self) -> None:
51
- """Test case for api_v1_indexing_tasks_task_rid_get
50
+ def test_start_execution(self) -> None:
51
+ """Test case for start_execution
52
52
 
53
- Get Indexing Task
53
+ Start Execution
54
54
  """
55
55
  pass
56
56
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: perceptic-core-client
3
- Version: 0.7.0
3
+ Version: 0.7.2
4
4
  Summary: Python client for Perceptic Core
5
5
  Author-email: Your Name <you@example.com>
6
6
  License: Proprietary
@@ -25,7 +25,7 @@ This package provides a generated Python client for interacting with the Percept
25
25
 
26
26
  ## Installation
27
27
 
28
- Install the package from the configured package registry (ensure `pip` is configured, see parent project documentation if using GitHub Packages):
28
+ Install the package from the configured package registry (ensure `pip` is configured):
29
29
 
30
30
  ```bash
31
31
  pip install perceptic-core-client
@@ -34,6 +34,18 @@ pip install perceptic-core-client
34
34
  # pip install perceptic-core-client==<version>
35
35
  ```
36
36
 
37
+ ### Development
38
+
39
+ `pip install -e .[dev]`
40
+
41
+ This package gets automatically published to pip when a new version is tagged in the repository. The workflow file for this is located at `.github/workflows/publish-python.yml`. It will publish the same version as the one tagged in the repository.
42
+
43
+ To generate the client code locally for testing o development, you can run:
44
+ ```bash
45
+ python perceptic-core-python-client/scripts/generate_client.py --spec-path perceptic-core-server/openapi/openapi.json --version 0.5.0
46
+ ```
47
+ Note that the `--version` doesn't really matter if generating locally and not publishing to pypi. It's only relevant if publishing the package to pypi, which is done automatically by the GitHub action.
48
+
37
49
  ## Basic Usage
38
50
  You need the URL of your Perceptic Core API instance and a valid authentication token (e.g., a Bearer token from Keycloak) obtained separately.
39
51
 
@@ -48,10 +60,7 @@ from pprint import pprint
48
60
 
49
61
  # 1. Get your API host and token (e.g., from environment variables)
50
62
  api_host = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
51
- access_token = os.environ.get("PERCEPTIC_CORE_TOKEN")
52
-
53
- if not access_token:
54
- raise ValueError("Authentication token not found. Set PERCEPTIC_CORE_TOKEN environment variable.")
63
+ access_token = get_access_token()
55
64
 
56
65
  # 2. Create a Configuration object
57
66
  configuration = Configuration(host=api_host)
@@ -5,11 +5,11 @@ perceptic_core_client/configuration.py,sha256=SQSH2SmsosPzZWLBDCL__iXOYakIfsIi23
5
5
  perceptic_core_client/exceptions.py,sha256=mAFFNIdOi4nl0A5oxKKACRbtA1uyMozS7dEBLGHUggs,6498
6
6
  perceptic_core_client/rest.py,sha256=VMj2msOtIW-VbmGTbC3oBll9kNsQmI_Q-y_EadfJMio,9502
7
7
  perceptic_core_client/api/__init__.py,sha256=9dAahFuMC5173VZ-y6QPS7cvEII3M6D7vJisprMa9PY,704
8
- perceptic_core_client/api/connection_resource_api.py,sha256=51NIl8ZyFjjV3X8i-Br6QTk9vsPg084cJksg1V1ZQuw,21948
9
- perceptic_core_client/api/file_system_contents_resource_api.py,sha256=yDfKXkDco4HFi4z3_HYWvcA8UI2lyU3ncxUX-vdfQuE,90842
10
- perceptic_core_client/api/file_system_resource_api.py,sha256=Oo_-apIpyBqhZXfqa_ERNAlcLuOIVAhU37dKIPnMKTI,42664
11
- perceptic_core_client/api/indexer_resource_api.py,sha256=GBRq25gNnxj2weQHdXYlkpX4kGdpOtigFMRPXKoJtKM,20367
12
- perceptic_core_client/api/indexing_task_resource_api.py,sha256=EMeUvuxW0F50TTkNVhZoLgne09nzBTGxCZTnOxidEgE,44821
8
+ perceptic_core_client/api/connection_resource_api.py,sha256=aQ5eMPTL9_3xEcb9-9B4Pcuzeg707YalDuWmGsopQP0,21745
9
+ perceptic_core_client/api/file_system_contents_resource_api.py,sha256=v-tY95knuCJzdQCUKssX7WIy5htXZ8UCe23vo12fb-Q,88560
10
+ perceptic_core_client/api/file_system_resource_api.py,sha256=7wDk7cs60UQmTaGkWNK9qdFEiGvrBUa6H21FoItf43o,42398
11
+ perceptic_core_client/api/indexer_resource_api.py,sha256=nNeyrB0wMOetwDO92jfkv2PtQLaW5XUrsHUhDwVBhUM,20059
12
+ perceptic_core_client/api/indexing_task_resource_api.py,sha256=nHDH5bEdTUzw8qsS8FvmCEErF6JTH4vGI4JC6mmylD8,44317
13
13
  perceptic_core_client/api/uri_resource_api.py,sha256=wAfQrkgNmt5wS0Eon9DFkyaqUNznnhb1ueRGIjaJlFg,60782
14
14
  perceptic_core_client/api/user_resource_api.py,sha256=LrqvNebOhBI_EoLTZpCC7OHYPomDoctWKJkv173W2p8,10222
15
15
  perceptic_core_client/api/worker_resource_api.py,sha256=qyzp9_qMZICVpKtEyy70Gs5ps36Cmgl9lZLllOXkNOI,66424
@@ -80,7 +80,7 @@ perceptic_core_client/test/test_action_type.py,sha256=n21J9CQEH1tHjztKC7K081mvKN
80
80
  perceptic_core_client/test/test_azure_blob_connection_settings_api_dto.py,sha256=BmE-2cgApvW3VjO_HFB7fTrEdInBJRbSCeACkx2eakQ,1921
81
81
  perceptic_core_client/test/test_azure_blob_file_system_root_metadata_api_dto.py,sha256=8cm4pO5ygeA9WaxomWsZyxpZgqSkxvrm6_AFbzXRW2Y,1734
82
82
  perceptic_core_client/test/test_connection_api_dto.py,sha256=f2eT1U5zfFszptJrmzJxtXsCrdV4KY8KhXFLyZDT9PI,1642
83
- perceptic_core_client/test/test_connection_resource_api.py,sha256=F9hPMgXhV3WJEg3KF9iGVc65qJw6d6vNBGe9E9Oct9w,1049
83
+ perceptic_core_client/test/test_connection_resource_api.py,sha256=EXW1eO_eO95iovdVj7ZcjCHmpvChEJPuwp2QC9C3AgE,991
84
84
  perceptic_core_client/test/test_connection_settings_api_dto.py,sha256=5WgXQh_ns5CgQZ-M_wKdo_UeQnJ2zCgKFeN4j7bc7bQ,2007
85
85
  perceptic_core_client/test/test_create_connection_request.py,sha256=34Kp4emjSoheBrxZ1Y017JspEg1h7rx5z3S43J9N3pw,1670
86
86
  perceptic_core_client/test/test_create_connection_response.py,sha256=FLeeBFLE1YSy6p-tAh0byRziP0aNt3WA7O5aGWXRzS0,1546
@@ -92,8 +92,8 @@ perceptic_core_client/test/test_create_indexing_task_response.py,sha256=KS4chfWN
92
92
  perceptic_core_client/test/test_create_managed_file_system_request.py,sha256=xOqVlAaInFiwWQiFRnKGlcv2NE5PiUmDEqyv1UOWVj0,1644
93
93
  perceptic_core_client/test/test_create_remote_file_system_request.py,sha256=mfyL3YgNmXCLid5QFzdxPFH9GdxD1pZs_MuQrnNr2Xc,1791
94
94
  perceptic_core_client/test/test_file_system_api_dto.py,sha256=_c9QeVvfXgguaylNvSgTUwB_PPZiW_5lraKcG_5hch0,1687
95
- perceptic_core_client/test/test_file_system_contents_resource_api.py,sha256=USGhaD0NDRRm2HZwelZ_wJ2e4slGBocLsyjkZnb0huE,2470
96
- perceptic_core_client/test/test_file_system_resource_api.py,sha256=AYL0W_vq681-rNaQu0rd-_n6UONYj37SkQ5xOGwyoz4,1418
95
+ perceptic_core_client/test/test_file_system_contents_resource_api.py,sha256=d6QvcBOqyH7TxQNWdiV5FgRQNIeOXdzEmM72fLwDPEY,1818
96
+ perceptic_core_client/test/test_file_system_resource_api.py,sha256=44shHGsmfMwAuxBFAEjmD8Trys0ZgestGR4zajPAoK8,1342
97
97
  perceptic_core_client/test/test_file_system_root_metadata_api_dto.py,sha256=A5LCyJL0QC7-F7baiJAayX2ZdaI1kjqYZ_Jnj8czq5o,1658
98
98
  perceptic_core_client/test/test_get_connection_response.py,sha256=tuaHMt5AkwSykj_nI6HE-jPLxbinBi-arJZzP_CeeVU,1824
99
99
  perceptic_core_client/test/test_get_indexer_response.py,sha256=AhkzglY8FwgMU9gZgC46eC43jFOXYV_vf0c3WS06YIE,1664
@@ -107,11 +107,11 @@ perceptic_core_client/test/test_get_worker_metadata_response.py,sha256=Yl4A7wiJc
107
107
  perceptic_core_client/test/test_get_worker_status_response.py,sha256=vn-sTDmcC07YzlqkqBhgFRceNybgMvMCunjCrL9uXtM,1537
108
108
  perceptic_core_client/test/test_get_workers_response.py,sha256=_5F2qJyemvwSH-0bapn3eNQxXzJpFeLun5v_7BvRn84,1582
109
109
  perceptic_core_client/test/test_indexer_dto.py,sha256=mjhqidl61JrXVM6UbfXE1tzsLsEGmPk5MytkEiFdk3A,1471
110
- perceptic_core_client/test/test_indexer_resource_api.py,sha256=MP9ggOJsr-SzwkvsreclArArvhZTvC38pooGniSI3CM,1043
110
+ perceptic_core_client/test/test_indexer_resource_api.py,sha256=coFEZkP2tcnVg6MO_18o1USjUwBg-fS2zRjQcjbVz-A,955
111
111
  perceptic_core_client/test/test_indexing_action_dto.py,sha256=A9jt72PZogCkDk-nG4GOp4FjOzu-hxMsmBFkodFbSv0,1751
112
112
  perceptic_core_client/test/test_indexing_action_status.py,sha256=ZQ0bv6oEE5xzbiXR_Oq812XmUrreU1oioRx-OfR2peg,788
113
113
  perceptic_core_client/test/test_indexing_task_dto.py,sha256=4LSPu_AoLgeAKoJnRW3dDB7z9xijuqCKhatGHOb4uGc,1897
114
- perceptic_core_client/test/test_indexing_task_resource_api.py,sha256=98QZx_aLx6RG0FmtTpmUozNwzDTmMfPwMgAsG-Qh7gs,1454
114
+ perceptic_core_client/test/test_indexing_task_resource_api.py,sha256=3pjEoxSJl7SCxFsUORUHdhDDZTdVvNXEaqiQK_7T3Lg,1310
115
115
  perceptic_core_client/test/test_indexing_task_status.py,sha256=mM7GA47e4_PrWMjYPuph2Cne00AwM7K7a_gEH5rPIwQ,1464
116
116
  perceptic_core_client/test/test_info_event.py,sha256=g7tdVz5LgKv_73J5ARvTbXjy7KpRHz4Yo2_wpJLMLWM,1416
117
117
  perceptic_core_client/test/test_json_node.py,sha256=PSqWJ-4Ho-C5lVLLSiSpN8DROm0r-I0s0-R8cwGV9mU,2049
@@ -145,7 +145,7 @@ perceptic_core_client/test/test_user_resource_api.py,sha256=yCzM6n1J0xjbLBWW1hcE
145
145
  perceptic_core_client/test/test_worker_event.py,sha256=f8zBXEkGhya6Tu0quq9p3Mpm1exxMr9z21q72JvYNLg,1699
146
146
  perceptic_core_client/test/test_worker_metadata_dto.py,sha256=lbvKWvnwcKEfHHh9diRevdceGEJwgv3INVphqaxiAlw,1674
147
147
  perceptic_core_client/test/test_worker_resource_api.py,sha256=1kCAFp5_mHmrQrUKgp6hKcriNlwvtq5J8dCvAFTMKQM,1794
148
- perceptic_core_client-0.7.0.dist-info/METADATA,sha256=HbybmnWDpABa1Rexi0S01CmgUWyy0suTdDbVYk84SgQ,3092
149
- perceptic_core_client-0.7.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
150
- perceptic_core_client-0.7.0.dist-info/top_level.txt,sha256=wWF5_isd4ZU0SRPPhKKAxW4kJ9hYIBgLbcWn_y-c1tg,22
151
- perceptic_core_client-0.7.0.dist-info/RECORD,,
148
+ perceptic_core_client-0.7.2.dist-info/METADATA,sha256=IfMKPc_FgBn1Q9FYjRYPjnm4sBIcIj64tMgVDu9ikpA,3604
149
+ perceptic_core_client-0.7.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
150
+ perceptic_core_client-0.7.2.dist-info/top_level.txt,sha256=wWF5_isd4ZU0SRPPhKKAxW4kJ9hYIBgLbcWn_y-c1tg,22
151
+ perceptic_core_client-0.7.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5