ciocore 8.3.3b1__py2.py3-none-any.whl → 9.1.0__py2.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 ciocore might be problematic. Click here for more details.
- ciocore/VERSION +1 -1
- ciocore/api_client.py +4 -3
- ciocore/docsite/apidoc/api_client/index.html +4 -3
- ciocore/docsite/apidoc/package_tree/index.html +0 -5
- ciocore/docsite/search/search_index.json +1 -1
- ciocore/docsite/sitemap.xml.gz +0 -0
- ciocore/package_tree.py +0 -4
- ciocore/worker.py +1 -5
- {ciocore-8.3.3b1.dist-info → ciocore-9.1.0.dist-info}/METADATA +14 -8
- {ciocore-8.3.3b1.dist-info → ciocore-9.1.0.dist-info}/RECORD +19 -20
- tests/test_api_client.py +1 -4
- tests/test_common.py +1 -11
- tests/test_config.py +17 -9
- tests/test_data.py +1 -1
- tests/test_submit.py +1 -4
- tests/test_uploader.py +1 -4
- ciocore/compat.py +0 -15
- {ciocore-8.3.3b1.dist-info → ciocore-9.1.0.dist-info}/WHEEL +0 -0
- {ciocore-8.3.3b1.dist-info → ciocore-9.1.0.dist-info}/entry_points.txt +0 -0
- {ciocore-8.3.3b1.dist-info → ciocore-9.1.0.dist-info}/top_level.txt +0 -0
ciocore/docsite/sitemap.xml.gz
CHANGED
|
Binary file
|
ciocore/package_tree.py
CHANGED
ciocore/worker.py
CHANGED
|
@@ -621,11 +621,7 @@ class JobManager():
|
|
|
621
621
|
q_size = self.work_queues[index].qsize()
|
|
622
622
|
worker_threads = self.workers[index].threads
|
|
623
623
|
|
|
624
|
-
|
|
625
|
-
try:
|
|
626
|
-
num_active_threads = len([thd for thd in worker_threads if thd.isAlive()])
|
|
627
|
-
except AttributeError:
|
|
628
|
-
num_active_threads = len([thd for thd in worker_threads if thd.is_alive()])
|
|
624
|
+
num_active_threads = len([thd for thd in worker_threads if thd.is_alive()])
|
|
629
625
|
|
|
630
626
|
msg += '%s \titems in queue: %s' % (q_size, worker_class.__name__)
|
|
631
627
|
msg += '\t\t%s threads' % num_active_threads
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ciocore
|
|
3
|
-
Version:
|
|
3
|
+
Version: 9.1.0
|
|
4
4
|
Summary: Core functionality for Conductor's client tools
|
|
5
5
|
Home-page: https://github.com/ConductorTechnologies/ciocore
|
|
6
6
|
Author: conductor
|
|
@@ -9,9 +9,8 @@ Classifier: Operating System :: OS Independent
|
|
|
9
9
|
Classifier: Programming Language :: Python
|
|
10
10
|
Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: requests
|
|
13
|
-
Requires-Dist: pyjwt==
|
|
14
|
-
Requires-Dist: future>=0.18.2
|
|
12
|
+
Requires-Dist: requests>=2.31.0
|
|
13
|
+
Requires-Dist: pyjwt==2.9.0
|
|
15
14
|
Requires-Dist: cioseq<1.0.0,>=0.4.1
|
|
16
15
|
Requires-Dist: Click<9.0.0,>=8.1.3
|
|
17
16
|
Requires-Dist: markdown<4.0.0,>=3.5.2
|
|
@@ -35,8 +34,10 @@ conductor --help
|
|
|
35
34
|
Get help for a specific sub command
|
|
36
35
|
```bash
|
|
37
36
|
conductor downloader --help
|
|
38
|
-
conductor
|
|
39
|
-
conductor
|
|
37
|
+
conductor upload --help
|
|
38
|
+
conductor download --help
|
|
39
|
+
conductor packages --help
|
|
40
|
+
conductor docs --help
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
Example API usage
|
|
@@ -51,9 +52,14 @@ See [CONTRIBUTING](CONTRIBUTING.md)
|
|
|
51
52
|
|
|
52
53
|
## Changelog
|
|
53
54
|
|
|
54
|
-
##
|
|
55
|
+
## Version:9.1.0 -- 20 Dec 2024
|
|
55
56
|
|
|
56
|
-
* Added
|
|
57
|
+
* Added support for new required JWT authentication parameters
|
|
58
|
+
* Removed Python 2.7 compatibility to focus on modern Python versions
|
|
59
|
+
|
|
60
|
+
## Version:8.3.3 -- 04 Dec 2024
|
|
61
|
+
|
|
62
|
+
* Adds filter option for API data query
|
|
57
63
|
|
|
58
64
|
## Version:8.3.2 -- 01 Oct 2024
|
|
59
65
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
ciocore/VERSION,sha256=
|
|
1
|
+
ciocore/VERSION,sha256=oeEalLUyaZE99NMQp_coGOAHFp5-0eaircSPsG9vXjA,5
|
|
2
2
|
ciocore/__init__.py,sha256=aTP7LeeosQA8BZE67gDV4jgfTK5zxmwZRjiTRu_ZWj0,646
|
|
3
|
-
ciocore/api_client.py,sha256=
|
|
3
|
+
ciocore/api_client.py,sha256=KKL7TsYygNcfkFZDPPq1CSJsrVN_QLK4PqP44vXsCQg,33101
|
|
4
4
|
ciocore/cli.py,sha256=jZ1lOKQiUcrMhsVmD9SVmPMFwHtgDF4SaoAf2-PBS54,15449
|
|
5
5
|
ciocore/client_db.py,sha256=tTz3bl2xeDPPcYSDS3g3QgV_xYihJMx0Kj6OeN2klK0,12978
|
|
6
6
|
ciocore/common.py,sha256=mBIS6KiYoQsjWe6aIFUGRRvCMl8BIN2kmLZ4J8icap8,14982
|
|
7
|
-
ciocore/compat.py,sha256=5uEXPSog_jxsDMaHBswAKEtfyXT25VgU6WNGIhz9PHU,256
|
|
8
7
|
ciocore/conductor_submit.py,sha256=bxvzdyNzscAOOOsqTvAYh5DQsTWyCQJNb16Mf-n_F0M,9702
|
|
9
8
|
ciocore/config.py,sha256=rCL7kaFn1tYgSglN8q9Wx6SwMpoXTq0BMQGwPRVwVIg,8973
|
|
10
9
|
ciocore/data.py,sha256=zT3zpkSbHPHHGlLeLDTbwkB8_-Ct6zd8qQ-7U1pDCHM,7215
|
|
@@ -14,11 +13,11 @@ ciocore/hardware_set.py,sha256=FlRQiGCLRcSW7Oko_gzgVK8ZqJ_J92eT8e_AleAbS2E,17047
|
|
|
14
13
|
ciocore/loggeria.py,sha256=dk8n899TYFiMTD2gjjj8oiumJkPtCus0a_IY2GORAvU,15251
|
|
15
14
|
ciocore/package_environment.py,sha256=MEHV7jfs3NJIEYCIaW8JfJdBmelvPHZMmBzPlXETiRo,7808
|
|
16
15
|
ciocore/package_query.py,sha256=hWi_JmRieZ8f2Ji5JR7tQnHnm29Ktb88scbIXNsDu-8,6181
|
|
17
|
-
ciocore/package_tree.py,sha256=
|
|
16
|
+
ciocore/package_tree.py,sha256=FDKHxYZS8ZAkz3hpjMYFy-P8hwU1V9w4wA7gNqhruqs,15569
|
|
18
17
|
ciocore/post_install.py,sha256=zu5Ctz2ANbKD-f5G2ODLIhKkWENBi4F3UKKu50OEWrg,1000
|
|
19
18
|
ciocore/retry.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
19
|
ciocore/validator.py,sha256=f_K7gxz122W_i5AxVx6dKhckOygl8TnmQiVj7tyX5zw,2344
|
|
21
|
-
ciocore/worker.py,sha256=
|
|
20
|
+
ciocore/worker.py,sha256=3C4KJuBTdeqvMWdBn3cRnTju5dUjNKG0OGtHp0SZ4l8,21613
|
|
22
21
|
ciocore/auth/__init__.py,sha256=cdS-xZzMq41yXM5cz8sUlcYgo8CJYh8HcCCWmhbDgf0,606
|
|
23
22
|
ciocore/auth/server.py,sha256=8btX9-EokUl6q55V8muDmEV2tvvbTBD0BHeWFbwkzUc,3892
|
|
24
23
|
ciocore/docsite/404.html,sha256=xP-mZwn-87pnlkD-paIYzdXDLQr7DS551KflVdFfrCk,17207
|
|
@@ -26,14 +25,14 @@ ciocore/docsite/index.html,sha256=NEK4HaX2yaetTajVtQuTmS9C5cPnkAtxgeKEj7wQ9t0,20
|
|
|
26
25
|
ciocore/docsite/logo.png,sha256=gArgFFWdw8w985-0TkuGIgU_pW9sziEMZdqytXb5WLo,2825
|
|
27
26
|
ciocore/docsite/objects.inv,sha256=XwmLactPEWWC4fAWqHNPBXGsluRxLLTrwDLQqq51ONY,775
|
|
28
27
|
ciocore/docsite/sitemap.xml,sha256=M_V85zl0y2adRvzJAnoCxlZH_Hl7TLnIb1A-6l_xGmI,109
|
|
29
|
-
ciocore/docsite/sitemap.xml.gz,sha256=
|
|
30
|
-
ciocore/docsite/apidoc/api_client/index.html,sha256=
|
|
28
|
+
ciocore/docsite/sitemap.xml.gz,sha256=Y8-yQgTp14BttP0hYQecQsezVFbeBMuGGX7cygjyTKM,127
|
|
29
|
+
ciocore/docsite/apidoc/api_client/index.html,sha256=kkhKzA7OThkpASLveONRPNS7gGppf8Ot2rxek1lZxHc,189722
|
|
31
30
|
ciocore/docsite/apidoc/apidoc/index.html,sha256=GOSvv6KZPOtgekgshRE4j7aDvJkkaiBQLwA_By9J94g,26171
|
|
32
31
|
ciocore/docsite/apidoc/config/index.html,sha256=WDqy4MLR3EMp9T_2-Z9Op61rTFkvb0aTWmtjiR8sbjA,72559
|
|
33
32
|
ciocore/docsite/apidoc/data/index.html,sha256=8ldmfisgelzdWtTqGY8uebvVRcskhbv-reO3hMcIgGI,51627
|
|
34
33
|
ciocore/docsite/apidoc/hardware_set/index.html,sha256=SpYg-lwuCvfLPbNIIM7aQL2jGt-NA5wlVMlIKixGwBo,123042
|
|
35
34
|
ciocore/docsite/apidoc/package_environment/index.html,sha256=V6_ah3V1_4_aOwJbEcITCdwuHxe1vGtfn0maRrbflUs,69248
|
|
36
|
-
ciocore/docsite/apidoc/package_tree/index.html,sha256=
|
|
35
|
+
ciocore/docsite/apidoc/package_tree/index.html,sha256=5_4vV8x_GmpsyWHnMP62gBaAcdzfM7L-mP7uQKh_DH4,109054
|
|
37
36
|
ciocore/docsite/assets/_mkdocstrings.css,sha256=K3bqYEmxlOHQ3-M11JNbBWHCBDBLarkFRm8HuEYrAG4,341
|
|
38
37
|
ciocore/docsite/assets/images/favicon.png,sha256=AjhUxD_Eslt5XuSVHIAZ494Fk__rb5GLXR8qm0elfP4,1870
|
|
39
38
|
ciocore/docsite/assets/javascripts/bundle.4e31edb1.min.js,sha256=vMxCR_BtNIcbmbPV6j8Z-YDLQ9ckt4RzvGuzCTg034s,97250
|
|
@@ -81,7 +80,7 @@ ciocore/docsite/cmdline/downloader/index.html,sha256=nygj-0GQmpD79B5AxHjwzQxOFv8
|
|
|
81
80
|
ciocore/docsite/cmdline/packages/index.html,sha256=_kXB85PBAgrqW09OerYpxnJuyERHMbcLn6qBGRdyHwk,20923
|
|
82
81
|
ciocore/docsite/cmdline/uploader/index.html,sha256=vuQ06Gys9Eoxs87PXlqnM5AgB6Ag00BlDIy6oaprjis,25123
|
|
83
82
|
ciocore/docsite/how-to-guides/index.html,sha256=KifCHl2S3RfPBZhP1UXwUNWuhcXPlPPqM4Gk6rVGhjQ,20100
|
|
84
|
-
ciocore/docsite/search/search_index.json,sha256=
|
|
83
|
+
ciocore/docsite/search/search_index.json,sha256=LP1ck_wuTP9A_dWTyaVF8Fugg22q1O0XS6hGqg2zk0M,189860
|
|
85
84
|
ciocore/docsite/stylesheets/extra.css,sha256=_Cxe9Dhg1BBi6Kqaz_iZD9z9VyqxA9vtONRjP4PVic0,354
|
|
86
85
|
ciocore/docsite/stylesheets/tables.css,sha256=LE_zwGRxGcdPIy-9QiVPecOzlEBSqZb_WP5vDkFE0ZM,3235
|
|
87
86
|
ciocore/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -101,12 +100,12 @@ ciocore/uploader/upload_stats/stats_formats.py,sha256=giNirtObU66VALWghPFSRhg3q_
|
|
|
101
100
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
101
|
tests/instance_type_fixtures.py,sha256=uIzQduqKQVgjllMuyXaYnRC-pwqk5lnTx3NY2M5Nujo,4320
|
|
103
102
|
tests/package_fixtures.py,sha256=od7ZHofG8ubpQ3PqlUsrcHBcbmD3qVWih9eiIg1WtSQ,5361
|
|
104
|
-
tests/test_api_client.py,sha256=
|
|
103
|
+
tests/test_api_client.py,sha256=isntMDs3QTyTWdghBa_LbFAiC7ydZD1RWb655oEZo24,14452
|
|
105
104
|
tests/test_base_downloader.py,sha256=SS7tWKv2ZZhpUDk4UCg1TkrNrpntjSewgzLl1mEubSE,3603
|
|
106
105
|
tests/test_cli.py,sha256=_WTs2SWlEgd6wtg1hmOBlFnbWVdFLvqp0KqNhy-y2e8,5532
|
|
107
|
-
tests/test_common.py,sha256=
|
|
108
|
-
tests/test_config.py,sha256
|
|
109
|
-
tests/test_data.py,sha256=
|
|
106
|
+
tests/test_common.py,sha256=5N9xeeGVuwN4kcjIg30eBliUD8PePzCNNLuLipGuTgk,410
|
|
107
|
+
tests/test_config.py,sha256=ahDLB6yVX8pA-B1qvxEpcJ1Wf1HS499rEg7lloeyxfk,11526
|
|
108
|
+
tests/test_data.py,sha256=o320GdvOJ2TouWtuA8jcs8Cr_gQWlQ6KxWVSWtmARlY,7614
|
|
110
109
|
tests/test_downloader.py,sha256=hceljsjnuvk5Vk5X4mHgavIEcpbv8ylPwpz7rTwJ-aE,4721
|
|
111
110
|
tests/test_hardware_set.py,sha256=hW7A_suyYdU7WkB7qoHSBPLxaAP2CKqI0i_ULfO5GeY,4408
|
|
112
111
|
tests/test_imports_2and3.py,sha256=ehqpRYPVY7djBcb8OT_cnh86iCJJ9wuMWnfSR9RHxmY,507
|
|
@@ -114,13 +113,13 @@ tests/test_job_downloader.py,sha256=_dZqyLZhc2Bq2n7-skERfodHx1JgFyHw8TamHp6ID9I,
|
|
|
114
113
|
tests/test_package_environment.py,sha256=CdiC2PDVSnbcwTb4fsDTWqGYSzs1n5ca2KMoyISckGA,5893
|
|
115
114
|
tests/test_package_query.py,sha256=LZqvCrGkWs0lMtIMumjDatX0ypeYYvabh_k1R0A6sS0,1451
|
|
116
115
|
tests/test_package_tree.py,sha256=K2kzJwRHCr6ojc4MZHjdH7VtmvG5O97OoH6vzwAE9GQ,6780
|
|
117
|
-
tests/test_submit.py,sha256=
|
|
118
|
-
tests/test_uploader.py,sha256=
|
|
116
|
+
tests/test_submit.py,sha256=v75ciL-C0XjiO7wUFQvYBZj0UoqhYOmTLa8TiUyhKqw,5769
|
|
117
|
+
tests/test_uploader.py,sha256=JGp6GEyqRXRtbQSb-IW-cCX_BzNotWdCbnJnLwZvpUM,2869
|
|
119
118
|
tests/test_validator.py,sha256=2fY66ayNc08PGyj2vTI-V_1yeCWJDngkj2zkUM5TTCI,1526
|
|
120
119
|
tests/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
121
120
|
tests/mocks/glob.py,sha256=J2MH7nqi6NJOHuGdVWxhfeBd700_Ckj6cLh_8jSNkfg,215
|
|
122
|
-
ciocore-
|
|
123
|
-
ciocore-
|
|
124
|
-
ciocore-
|
|
125
|
-
ciocore-
|
|
126
|
-
ciocore-
|
|
121
|
+
ciocore-9.1.0.dist-info/METADATA,sha256=3w70xvtZ8bsQUIZRoZ2uECYlDQLPOjW-kUr1oYTQ3GA,19101
|
|
122
|
+
ciocore-9.1.0.dist-info/WHEEL,sha256=qUzzGenXXuJTzyjFah76kDVqDvnk-YDzY00svnrl84w,109
|
|
123
|
+
ciocore-9.1.0.dist-info/entry_points.txt,sha256=cCqcALMYbC4d8545V9w0Zysfg9MVuKWhzDQ2er4UfGE,47
|
|
124
|
+
ciocore-9.1.0.dist-info/top_level.txt,sha256=SvlM5JlqULzAz00JZWfiUhfjhqDzYzSWssA87zdJl0o,14
|
|
125
|
+
ciocore-9.1.0.dist-info/RECORD,,
|
tests/test_api_client.py
CHANGED
tests/test_common.py
CHANGED
|
@@ -9,17 +9,7 @@ FILES_PATH = os.path.join(os.path.dirname(__file__), "files")
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class TestMd5(unittest.TestCase):
|
|
12
|
-
|
|
13
|
-
# def test_get_base64_md5_is_correct_md5(self):
|
|
14
|
-
# from ciocore import common
|
|
15
|
-
# fn1 = os.path.join(FILES_PATH, "one")
|
|
16
|
-
# md5=common.get_base64_md5(fn1)
|
|
17
|
-
# if os.name == "nt":
|
|
18
|
-
# self.assertEqual(md5, "w8F8opHbdwHIozghPc63XA==")
|
|
19
|
-
# else:
|
|
20
|
-
# self.assertEqual(md5, "9iVbsBxkj+lncU1SqJ6OnA==")
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
|
|
23
13
|
def test_get_base64_md5_is_correct_type(self):
|
|
24
14
|
from ciocore import common
|
|
25
15
|
from builtins import str
|
tests/test_config.py
CHANGED
|
@@ -6,12 +6,20 @@ import sys
|
|
|
6
6
|
import os
|
|
7
7
|
import logging
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
from unittest import mock
|
|
10
|
+
|
|
11
|
+
MOCK_API_KEY = '''{
|
|
12
|
+
"type": "service_account",
|
|
13
|
+
"project_id": "mock-project",
|
|
14
|
+
"private_key_id": "mock-key-id",
|
|
15
|
+
"private_key": "-----BEGIN PRIVATE KEY-----\\nMOCKKEY\\n-----END PRIVATE KEY-----\\n",
|
|
16
|
+
"client_email": "mock@example.com",
|
|
17
|
+
"client_id": "123456789",
|
|
18
|
+
"auth_uri": "https://accounts.example.com/oauth2/auth",
|
|
19
|
+
"token_uri": "https://oauth2.example.com/token",
|
|
20
|
+
"auth_provider_x509_cert_url": "https://www.example.com/oauth2/v1/certs",
|
|
21
|
+
"client_x509_cert_url": "https://www.example.com/robot/v1/metadata/x509/mock%40example.com"
|
|
22
|
+
}'''
|
|
15
23
|
|
|
16
24
|
PY3 = sys.version_info >= (3, 0)
|
|
17
25
|
BUILTIN_OPEN = "builtins.open" if PY3 else "__builtin__.open"
|
|
@@ -267,7 +275,7 @@ class ApiKeyFromVariableTest(unittest.TestCase):
|
|
|
267
275
|
self.down()
|
|
268
276
|
|
|
269
277
|
def test_returns_dict_if_key_is_b64encoded(self):
|
|
270
|
-
key =
|
|
278
|
+
key = MOCK_API_KEY
|
|
271
279
|
if sys.version_info < (3, 0):
|
|
272
280
|
self.up(env={"CONDUCTOR_API_KEY": base64.b64encode(key)})
|
|
273
281
|
else:
|
|
@@ -302,7 +310,7 @@ class ApiKeyFromFileTest(unittest.TestCase):
|
|
|
302
310
|
self.assertEqual(result, None)
|
|
303
311
|
self.down()
|
|
304
312
|
|
|
305
|
-
@mock.patch(BUILTIN_OPEN, new_callable=mock.mock_open, read_data=
|
|
313
|
+
@mock.patch(BUILTIN_OPEN, new_callable=mock.mock_open, read_data=MOCK_API_KEY, create=True)
|
|
306
314
|
def test_open_called_with_api_key_path(self, mock_file_open):
|
|
307
315
|
self.up(env={"CONDUCTOR_API_KEY_PATH": "path/to/api_key"})
|
|
308
316
|
config.Config.get_api_key_from_file()
|
|
@@ -316,7 +324,7 @@ class ApiKeyFromFileTest(unittest.TestCase):
|
|
|
316
324
|
config.Config.get_api_key_from_file()
|
|
317
325
|
self.down()
|
|
318
326
|
|
|
319
|
-
@mock.patch(BUILTIN_OPEN, new_callable=mock.mock_open, read_data=
|
|
327
|
+
@mock.patch(BUILTIN_OPEN, new_callable=mock.mock_open, read_data=MOCK_API_KEY, create=True)
|
|
320
328
|
def test_returns_dict_if_key_is_valid_json(self, mock_file_open):
|
|
321
329
|
self.up(env={"CONDUCTOR_API_KEY_PATH": "path/to/api_key"})
|
|
322
330
|
result = config.Config.get_api_key_from_file()
|
tests/test_data.py
CHANGED
tests/test_submit.py
CHANGED
tests/test_uploader.py
CHANGED
ciocore/compat.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|