fedcloudclient 1.4.0__tar.gz → 1.4.2__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.
Files changed (67) hide show
  1. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/ChangeLog +2 -2
  2. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/PKG-INFO +16 -1
  3. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/config/sites.yaml +2 -5
  4. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/cheat.rst +7 -1
  5. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/quickstart.rst +11 -1
  6. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/usage.rst +11 -0
  7. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/decorators.py +9 -0
  8. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/sites.py +16 -8
  9. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/PKG-INFO +16 -1
  10. fedcloudclient-1.4.2/fedcloudclient.egg-info/pbr.json +1 -0
  11. fedcloudclient-1.4.2/fedcloudclient.egg-info/requires.txt +15 -0
  12. fedcloudclient-1.4.2/requirements.txt +15 -0
  13. fedcloudclient-1.4.0/fedcloudclient.egg-info/pbr.json +0 -1
  14. fedcloudclient-1.4.0/fedcloudclient.egg-info/requires.txt +0 -15
  15. fedcloudclient-1.4.0/requirements.txt +0 -15
  16. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/linters/.flake8 +0 -0
  17. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/linters/.jscpd.json +0 -0
  18. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/linters/.mypy.ini +0 -0
  19. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/linters/mlc_config.json +0 -0
  20. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/check-links.yml +0 -0
  21. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/lint.yml +0 -0
  22. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/publish_image.yml +0 -0
  23. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/python-package.yml +0 -0
  24. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/python-publish.yml +0 -0
  25. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.github/workflows/sphinx-pages.yml +0 -0
  26. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/.travis.yml +0 -0
  27. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/AUTHORS +0 -0
  28. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/CHANGELOG +0 -0
  29. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/COPYRIGHT +0 -0
  30. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/Dockerfile +0 -0
  31. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/LICENSE +0 -0
  32. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/README.md +0 -0
  33. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/FAQ.rst +0 -0
  34. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/conf.py +0 -0
  35. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/development.rst +0 -0
  36. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/fedcloudclient-logo-non-transparent-small.png +0 -0
  37. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/fedcloudclient.rst +0 -0
  38. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/index.rst +0 -0
  39. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/install.rst +0 -0
  40. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/intro.rst +0 -0
  41. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/modules.rst +0 -0
  42. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/docs/scripts.rst +0 -0
  43. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/examples/command_history.txt +0 -0
  44. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/examples/demo.py +0 -0
  45. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/examples/fedcloud_bash_completion.sh +0 -0
  46. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/examples/list-all-my-own-vms.sh +0 -0
  47. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/examples/list-my-own-vms.sh +0 -0
  48. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/__init__.py +0 -0
  49. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/checkin.py +0 -0
  50. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/cli.py +0 -0
  51. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/ec3.py +0 -0
  52. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/endpoint.py +0 -0
  53. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/openstack.py +0 -0
  54. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/schema.json +0 -0
  55. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/secret.py +0 -0
  56. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/select.py +0 -0
  57. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient/shell.py +0 -0
  58. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/SOURCES.txt +0 -0
  59. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/dependency_links.txt +0 -0
  60. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/entry_points.txt +0 -0
  61. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/not-zip-safe +0 -0
  62. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/fedcloudclient.egg-info/top_level.txt +0 -0
  63. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/setup.cfg +0 -0
  64. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/setup.py +0 -0
  65. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/test-requirements.txt +0 -0
  66. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/tests/00_empty_test.py +0 -0
  67. {fedcloudclient-1.4.0 → fedcloudclient-1.4.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
- 1.4
5
- ---
4
+ 1.4.2
5
+ -----
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fedcloudclient
3
- Version: 1.4.0
3
+ Version: 1.4.2
4
4
  Summary: EGI FedCloud client
5
5
  Home-page: https://fedcloudclient.fedcloud.eu/
6
6
  Author: Viet Tran, Enol Fernandez
@@ -17,6 +17,21 @@ Classifier: Environment :: OpenStack
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  License-File: AUTHORS
20
+ Requires-Dist: click==8.1.7
21
+ Requires-Dist: click_option_group==0.5.6
22
+ Requires-Dist: tabulate==0.9.0
23
+ Requires-Dist: requests==2.31.0
24
+ Requires-Dist: defusedxml~=0.7.1
25
+ Requires-Dist: pyjwt==2.8.0
26
+ Requires-Dist: python-openstackclient==6.3.0
27
+ Requires-Dist: liboidcagent==0.6.0
28
+ Requires-Dist: jsonpath-ng==1.6.0
29
+ Requires-Dist: PyYAML==6.0.1
30
+ Requires-Dist: setuptools==68.2.2
31
+ Requires-Dist: jsonschema==4.19.2
32
+ Requires-Dist: psutil==5.9.6
33
+ Requires-Dist: hvac==2.0.0
34
+ Requires-Dist: cryptography==41.0.5
20
35
 
21
36
  # FedCloud client: Command-line client and library for EGI Federated Cloud
22
37
 
@@ -1,30 +1,27 @@
1
1
  # List of sites in https://github.com/EGI-Federation/fedcloud-catchall-operations/tree/main/sites
2
2
  # As GitHub API has limited access rates, the list of sites is stored here for simple access
3
3
 
4
- - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/100IT.yaml"
5
4
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/BIFI.yaml"
5
+ - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CENI.yaml"
6
6
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESGA.yaml"
7
7
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESGA-CLOUD.yaml"
8
8
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESNET-MCC.yaml"
9
9
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CETA-GRID.yaml"
10
10
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CLOUDIFIN.yaml"
11
+ - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CSTCLOUD-EGI.yaml"
11
12
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CYFRONET-CLOUD.yaml"
12
13
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/DESY-CC.yaml"
13
14
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/GRNET-OPENSTACK.yaml"
14
- - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/GSI-LCG2.yaml"
15
15
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IFCA-LCG2.yaml"
16
16
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IISAS-FedCloud-cloud.yaml"
17
17
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/ILIFU-UCT.yaml"
18
18
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IN2P3-IRES.yaml"
19
19
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-CLOUD-BARI.yaml"
20
20
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-CLOUD-CNAF.yaml"
21
- - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-PADOVA-STACK.yaml"
22
21
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/NCG-INGRID-PT.yaml"
23
22
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/SCAI.yaml"
24
23
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/TR-FC1-ULAKBIM.yaml"
25
24
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UA-BITP.yaml"
26
- - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UNIV-LILLE.yaml"
27
- - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UPV-GRyCAP.yaml"
28
25
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/WALTON-CLOUD.yaml"
29
26
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/fedcloud.srce.hr.yaml"
30
27
  - "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/EODC.yaml"
@@ -77,12 +77,18 @@ Basic usages
77
77
 
78
78
  $ fedcloud token list-vos
79
79
 
80
- * List sites in EGI Federated Cloud:
80
+ * List sites in the EGI Federated Cloud:
81
81
 
82
82
  ::
83
83
 
84
84
  $ fedcloud site list
85
85
 
86
+ * List all sites supporting a Virtual Organization in the EGI Federated Cloud:
87
+
88
+ ::
89
+
90
+ $ fedcloud site list --vo vo.access.egi.eu
91
+
86
92
  * Execute an OpenStack command:
87
93
 
88
94
  ::
@@ -43,7 +43,7 @@ Basic usages
43
43
  training.egi.eu
44
44
  ...
45
45
 
46
- * List sites in EGI Federated Cloud
46
+ * List sites in the EGI Federated Cloud
47
47
 
48
48
  ::
49
49
 
@@ -53,6 +53,16 @@ Basic usages
53
53
  CESGA
54
54
  ...
55
55
 
56
+ * List sites supporting a Virtual Organization in the EGI Federated Cloud
57
+
58
+ ::
59
+
60
+ $ fedcloud site list --vo vo.access.egi.eu
61
+ BIFI
62
+ CENI
63
+ CESGA-CLOUD
64
+ ...
65
+
56
66
  * Execute an OpenStack command, e.g. list images in eosc-synergy.eu VO on IISAS-FedCloud site
57
67
  (or other combination of site and VO you have access):
58
68
 
@@ -278,6 +278,17 @@ VOs and so on.
278
278
  ...
279
279
 
280
280
 
281
+ * **"fedcloud site list --vo <VO-name>"** : List all sites supporting a Virtual Organization
282
+
283
+ ::
284
+
285
+ $ fedcloud site vo-list --vo vo.access.egi.eu
286
+ BIFI
287
+ CENI
288
+ CESGA-CLOUD
289
+ ...
290
+
291
+
281
292
  * **"fedcloud site show --site <SITE>"** : Show configuration of the corresponding site.
282
293
 
283
294
  ::
@@ -100,6 +100,15 @@ vo_params = click.option(
100
100
  metavar="vo-name",
101
101
  )
102
102
 
103
+ # Optional decorator for --vo
104
+ vo_params_optional = click.option(
105
+ "--vo",
106
+ help="Name of the VO",
107
+ required=False,
108
+ envvar="EGI_VO",
109
+ metavar="vo-name",
110
+ )
111
+
103
112
 
104
113
  def site_vo_params(func):
105
114
  """
@@ -28,6 +28,7 @@ from fedcloudclient.decorators import (
28
28
  all_site_params,
29
29
  oidc_params,
30
30
  site_vo_params,
31
+ vo_params_optional,
31
32
  )
32
33
  from fedcloudclient.shell import print_set_env_command
33
34
 
@@ -182,16 +183,22 @@ def delete_site_config(config_dir):
182
183
  shutil.rmtree(config_dir, ignore_errors=True)
183
184
 
184
185
 
185
- def list_sites():
186
+ def list_sites(vo=None):
186
187
  """
187
- List of all sites IDs in site configurations
188
+ List all sites IDs in site configurations
189
+ Optionally list all sites supporting a Virtual Organization
188
190
 
189
191
  :return: list of site IDs
190
192
  """
191
193
  read_site_config()
192
194
  result = []
193
195
  for site_info in __site_config_data:
194
- result.append(site_info["gocdb"])
196
+ if vo is None:
197
+ result.append(site_info["gocdb"])
198
+ else:
199
+ for vos in site_info["vos"]:
200
+ if vo == vos["name"]:
201
+ result.append(site_info["gocdb"])
195
202
  return result
196
203
 
197
204
 
@@ -317,13 +324,14 @@ def save_config():
317
324
 
318
325
 
319
326
  @site.command("list")
320
- def list_():
327
+ @vo_params_optional
328
+ def list_(vo=None):
321
329
  """
322
- List all sites
330
+ List all sites. If "--vo <name>" is provided, list only sites
331
+ supporting a Virtual Organization.
323
332
  """
324
- read_site_config()
325
- for site_info in __site_config_data:
326
- print(site_info["gocdb"])
333
+ for site in list_sites(vo):
334
+ print(site)
327
335
 
328
336
 
329
337
  @site.command()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fedcloudclient
3
- Version: 1.4.0
3
+ Version: 1.4.2
4
4
  Summary: EGI FedCloud client
5
5
  Home-page: https://fedcloudclient.fedcloud.eu/
6
6
  Author: Viet Tran, Enol Fernandez
@@ -17,6 +17,21 @@ Classifier: Environment :: OpenStack
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  License-File: AUTHORS
20
+ Requires-Dist: click==8.1.7
21
+ Requires-Dist: click_option_group==0.5.6
22
+ Requires-Dist: tabulate==0.9.0
23
+ Requires-Dist: requests==2.31.0
24
+ Requires-Dist: defusedxml~=0.7.1
25
+ Requires-Dist: pyjwt==2.8.0
26
+ Requires-Dist: python-openstackclient==6.3.0
27
+ Requires-Dist: liboidcagent==0.6.0
28
+ Requires-Dist: jsonpath-ng==1.6.0
29
+ Requires-Dist: PyYAML==6.0.1
30
+ Requires-Dist: setuptools==68.2.2
31
+ Requires-Dist: jsonschema==4.19.2
32
+ Requires-Dist: psutil==5.9.6
33
+ Requires-Dist: hvac==2.0.0
34
+ Requires-Dist: cryptography==41.0.5
20
35
 
21
36
  # FedCloud client: Command-line client and library for EGI Federated Cloud
22
37
 
@@ -0,0 +1 @@
1
+ {"git_version": "af70cec", "is_release": false}
@@ -0,0 +1,15 @@
1
+ click==8.1.7
2
+ click_option_group==0.5.6
3
+ tabulate==0.9.0
4
+ requests==2.31.0
5
+ defusedxml~=0.7.1
6
+ pyjwt==2.8.0
7
+ python-openstackclient==6.3.0
8
+ liboidcagent==0.6.0
9
+ jsonpath-ng==1.6.0
10
+ PyYAML==6.0.1
11
+ setuptools==68.2.2
12
+ jsonschema==4.19.2
13
+ psutil==5.9.6
14
+ hvac==2.0.0
15
+ cryptography==41.0.5
@@ -0,0 +1,15 @@
1
+ click==8.1.7
2
+ click_option_group==0.5.6
3
+ tabulate==0.9.0
4
+ requests==2.31.0
5
+ defusedxml~=0.7.1
6
+ pyjwt==2.8.0
7
+ python-openstackclient==6.3.0
8
+ liboidcagent==0.6.0
9
+ jsonpath-ng==1.6.0
10
+ PyYAML==6.0.1
11
+ setuptools==68.2.2
12
+ jsonschema==4.19.2
13
+ psutil==5.9.6
14
+ hvac==2.0.0
15
+ cryptography==41.0.5
@@ -1 +0,0 @@
1
- {"git_version": "a7e660d", "is_release": false}
@@ -1,15 +0,0 @@
1
- click~=8.1.3
2
- click_option_group>=0.5.3
3
- tabulate>=0.8.9
4
- requests>=2.27.1
5
- defusedxml~=0.7.1
6
- pyjwt>=2.3.0
7
- python-openstackclient>=5.7.0
8
- liboidcagent~=0.4.0
9
- jsonpath-ng==1.5.3
10
- PyYAML~=6.0
11
- setuptools>=65.5.0
12
- jsonschema>=4.16.0
13
- psutil>=5.9.0
14
- hvac>=1.0.2
15
- cryptography>=38.0.1
@@ -1,15 +0,0 @@
1
- click~=8.1.3
2
- click_option_group>=0.5.3
3
- tabulate>=0.8.9
4
- requests>=2.27.1
5
- defusedxml~=0.7.1
6
- pyjwt>=2.3.0
7
- python-openstackclient>=5.7.0
8
- liboidcagent~=0.4.0
9
- jsonpath-ng==1.5.3
10
- PyYAML~=6.0
11
- setuptools>=65.5.0
12
- jsonschema>=4.16.0
13
- psutil>=5.9.0
14
- hvac>=1.0.2
15
- cryptography>=38.0.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes