python-chi 0.17.12__tar.gz → 1.0.1__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 (84) hide show
  1. {python-chi-0.17.12 → python_chi-1.0.1}/.github/CODEOWNERS +1 -1
  2. python_chi-1.0.1/AUTHORS +1 -0
  3. python_chi-1.0.1/ChangeLog +7 -0
  4. {python-chi-0.17.12 → python_chi-1.0.1}/PKG-INFO +6 -3
  5. {python-chi-0.17.12 → python_chi-1.0.1}/chi/__init__.py +0 -2
  6. {python-chi-0.17.12 → python_chi-1.0.1}/chi/clients.py +29 -21
  7. python_chi-1.0.1/chi/container.py +591 -0
  8. {python-chi-0.17.12 → python_chi-1.0.1}/chi/context.py +282 -38
  9. python_chi-1.0.1/chi/exception.py +30 -0
  10. python_chi-1.0.1/chi/hardware.py +234 -0
  11. python_chi-1.0.1/chi/image.py +129 -0
  12. {python-chi-0.17.12 → python_chi-1.0.1}/chi/jupyterhub.py +10 -9
  13. {python-chi-0.17.12 → python_chi-1.0.1}/chi/keypair.py +1 -0
  14. python_chi-1.0.1/chi/lease.py +1159 -0
  15. python_chi-1.0.1/chi/magic.py +262 -0
  16. {python-chi-0.17.12 → python_chi-1.0.1}/chi/network.py +193 -179
  17. python_chi-1.0.1/chi/server.py +1075 -0
  18. {python-chi-0.17.12 → python_chi-1.0.1}/chi/share.py +17 -16
  19. {python-chi-0.17.12 → python_chi-1.0.1}/chi/ssh.py +5 -1
  20. python_chi-1.0.1/chi/storage.py +198 -0
  21. python_chi-1.0.1/chi/util.py +81 -0
  22. {python-chi-0.17.12 → python_chi-1.0.1}/docs/conf.py +1 -49
  23. {python-chi-0.17.12 → python_chi-1.0.1}/docs/index.rst +26 -0
  24. python_chi-1.0.1/docs/modules/clients.rst +11 -0
  25. python_chi-1.0.1/docs/modules/context.rst +11 -0
  26. python_chi-1.0.1/docs/modules/exception.rst +10 -0
  27. python_chi-1.0.1/docs/modules/hardware.rst +10 -0
  28. python_chi-1.0.1/docs/modules/lease.rst +10 -0
  29. python_chi-1.0.1/docs/modules/magic.rst +11 -0
  30. python_chi-1.0.1/docs/modules/server.rst +10 -0
  31. {python-chi-0.17.12 → python_chi-1.0.1}/docs/modules/share.rst +2 -0
  32. python_chi-1.0.1/docs/modules/storage.rst +11 -0
  33. {python-chi-0.17.12 → python_chi-1.0.1}/docs/requirements.txt +1 -3
  34. {python-chi-0.17.12 → python_chi-1.0.1}/python_chi.egg-info/PKG-INFO +6 -3
  35. {python-chi-0.17.12 → python_chi-1.0.1}/python_chi.egg-info/SOURCES.txt +9 -5
  36. python_chi-1.0.1/python_chi.egg-info/dependency_links.txt +1 -0
  37. python_chi-1.0.1/python_chi.egg-info/pbr.json +1 -0
  38. {python-chi-0.17.12 → python_chi-1.0.1}/python_chi.egg-info/requires.txt +5 -2
  39. {python-chi-0.17.12 → python_chi-1.0.1}/requirements.txt +6 -2
  40. {python-chi-0.17.12 → python_chi-1.0.1}/setup.py +1 -1
  41. {python-chi-0.17.12 → python_chi-1.0.1}/tox.ini +1 -2
  42. python-chi-0.17.12/AUTHORS +0 -1
  43. python-chi-0.17.12/ChangeLog +0 -6
  44. python-chi-0.17.12/chi/container.py +0 -303
  45. python-chi-0.17.12/chi/image.py +0 -57
  46. python-chi-0.17.12/chi/lease.py +0 -823
  47. python-chi-0.17.12/chi/networking_api_examples.py +0 -9
  48. python-chi-0.17.12/chi/reservation_api_examples.py +0 -9
  49. python-chi-0.17.12/chi/server.py +0 -678
  50. python-chi-0.17.12/chi/server_api_examples.py +0 -9
  51. python-chi-0.17.12/chi/util.py +0 -33
  52. python-chi-0.17.12/docs/_extras/notebooks/.gitignore +0 -1
  53. python-chi-0.17.12/docs/modules/context.rst +0 -11
  54. python-chi-0.17.12/docs/modules/lease.rst +0 -20
  55. python-chi-0.17.12/docs/modules/server.rst +0 -31
  56. python-chi-0.17.12/docs/notebooks/.gitignore +0 -1
  57. python-chi-0.17.12/python_chi.egg-info/dependency_links.txt +0 -1
  58. python-chi-0.17.12/python_chi.egg-info/pbr.json +0 -1
  59. {python-chi-0.17.12 → python_chi-1.0.1}/.github/workflows/pypi-publish.yml +0 -0
  60. {python-chi-0.17.12 → python_chi-1.0.1}/.github/workflows/test.yml +0 -0
  61. {python-chi-0.17.12 → python_chi-1.0.1}/.mailmap +0 -0
  62. {python-chi-0.17.12 → python_chi-1.0.1}/.readthedocs.yml +0 -0
  63. {python-chi-0.17.12 → python_chi-1.0.1}/DEVELOPMENT.rst +0 -0
  64. {python-chi-0.17.12 → python_chi-1.0.1}/LICENSE +0 -0
  65. {python-chi-0.17.12 → python_chi-1.0.1}/Makefile +0 -0
  66. {python-chi-0.17.12 → python_chi-1.0.1}/README.rst +0 -0
  67. {python-chi-0.17.12 → python_chi-1.0.1}/docs/__init__.py +0 -0
  68. {python-chi-0.17.12 → python_chi-1.0.1}/docs/generate_notebook.py +0 -0
  69. {python-chi-0.17.12 → python_chi-1.0.1}/docs/modules/container.rst +0 -0
  70. {python-chi-0.17.12 → python_chi-1.0.1}/docs/modules/image.rst +0 -0
  71. {python-chi-0.17.12 → python_chi-1.0.1}/docs/modules/network.rst +0 -0
  72. {python-chi-0.17.12 → python_chi-1.0.1}/docs/modules/ssh.rst +0 -0
  73. {python-chi-0.17.12 → python_chi-1.0.1}/python_chi.egg-info/not-zip-safe +0 -0
  74. {python-chi-0.17.12 → python_chi-1.0.1}/python_chi.egg-info/top_level.txt +0 -0
  75. {python-chi-0.17.12 → python_chi-1.0.1}/setup.cfg +0 -0
  76. {python-chi-0.17.12 → python_chi-1.0.1}/test-requirements.txt +0 -0
  77. {python-chi-0.17.12 → python_chi-1.0.1}/tests/__init__.py +0 -0
  78. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_container.py +0 -0
  79. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_context.py +0 -0
  80. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_lease.py +0 -0
  81. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_network.py +0 -0
  82. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_server.py +0 -0
  83. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_share.py +0 -0
  84. {python-chi-0.17.12 → python_chi-1.0.1}/tests/test_ssh.py +0 -0
@@ -1,3 +1,3 @@
1
1
  # Syntax: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file
2
2
 
3
- * @Mark-Powers @msherman64 @super-cooper @zhenz
3
+ * @Mark-Powers @msherman64
@@ -0,0 +1 @@
1
+ Mark Powers <markpowers@uchicago.edu>
@@ -0,0 +1,7 @@
1
+ CHANGES
2
+ =======
3
+
4
+ v1.0.1
5
+ ------
6
+
7
+ * Fix backwards compatibility with list\_list\_flavors
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-chi
3
- Version: 0.17.12
3
+ Version: 1.0.1
4
4
  Summary: Helper library for Chameleon Infrastructure (CHI) testbed
5
5
  Home-page: https://www.chameleoncloud.org
6
6
  Author: University of Chicago
@@ -15,18 +15,21 @@ Classifier: Programming Language :: Python
15
15
  License-File: LICENSE
16
16
  License-File: AUTHORS
17
17
  Requires-Dist: fabric
18
- Requires-Dist: gnocchiclient
19
18
  Requires-Dist: keystoneauth1
20
19
  Requires-Dist: openstacksdk
21
20
  Requires-Dist: paramiko
22
- Requires-Dist: python-blazarclient
23
21
  Requires-Dist: python-cinderclient
24
22
  Requires-Dist: python-glanceclient
25
23
  Requires-Dist: python-ironicclient
26
24
  Requires-Dist: python-manilaclient
27
25
  Requires-Dist: python-neutronclient
28
26
  Requires-Dist: python-novaclient
27
+ Requires-Dist: python-swiftclient
29
28
  Requires-Dist: python-zunclient
29
+ Requires-Dist: ipython
30
+ Requires-Dist: ipywidgets
31
+ Requires-Dist: networkx
32
+ Requires-Dist: matplotlib
30
33
 
31
34
  python-chi
32
35
  ==========
@@ -3,7 +3,6 @@ from .clients import (
3
3
  blazar,
4
4
  cinder,
5
5
  glance,
6
- gnocchi,
7
6
  ironic,
8
7
  keystone,
9
8
  manila,
@@ -25,7 +24,6 @@ __all__ = [
25
24
  "blazar",
26
25
  "cinder",
27
26
  "glance",
28
- "gnocchi",
29
27
  "ironic",
30
28
  "keystone",
31
29
  "manila",
@@ -10,7 +10,6 @@ if TYPE_CHECKING:
10
10
  from blazarclient.client import Client as BlazarClient
11
11
  from cinderclient.client import Client as CinderClient
12
12
  from glanceclient.client import Client as GlanceClient
13
- from gnocchiclient.v1.client import Client as GnocchiClient
14
13
  from manilaclient.client import Client as ManilaClient
15
14
  from neutronclient.v2_0.client import Client as NeutronClient
16
15
  from novaclient.client import Client as NovaClient
@@ -37,6 +36,8 @@ def connection(session=None) -> "Connection":
37
36
  are useful for operations that span a few services, such as assigning
38
37
  a Floating IP to a server instance.
39
38
 
39
+ See `the documentation <https://docs.openstack.org/openstacksdk/latest/user/connection.html>`__ for usage.
40
+
40
41
  Args:
41
42
  session (Session): An authentication session object. By default a
42
43
  new session is created via :func:`chi.session`.
@@ -61,6 +62,8 @@ def connection(session=None) -> "Connection":
61
62
  def blazar(session=None) -> "BlazarClient":
62
63
  """Get a preconfigured client for Blazar, the reservation service.
63
64
 
65
+ See `the documentation <https://opendev.org/openstack/python-blazarclient/>`__ for usage.
66
+
64
67
  Args:
65
68
  session (Session): An authentication session object. By default a
66
69
  new session is created via :func:`chi.session`.
@@ -78,6 +81,8 @@ def blazar(session=None) -> "BlazarClient":
78
81
  def cinder(session=None) -> "CinderClient":
79
82
  """Get a preconfigured client for Cinder, the persistent volume service.
80
83
 
84
+ See `the documentation <https://docs.openstack.org/python-cinderclient/latest/>`__ for usage.
85
+
81
86
  Args:
82
87
  session (Session): An authentication session object. By default a
83
88
  new session is created via :func:`chi.session`.
@@ -93,6 +98,8 @@ def cinder(session=None) -> "CinderClient":
93
98
  def glance(session=None) -> "GlanceClient":
94
99
  """Get a preconfigured client for Glance, the image service.
95
100
 
101
+ See `the documentation <https://docs.openstack.org/python-glanceclient/latest/>`__ for usage.
102
+
96
103
  Args:
97
104
  session (Session): An authentication session object. By default a
98
105
  new session is created via :func:`chi.session`.
@@ -105,29 +112,11 @@ def glance(session=None) -> "GlanceClient":
105
112
  return GlanceClient("2", session=(session or session_factory()))
106
113
 
107
114
 
108
- def gnocchi(session=None) -> "GnocchiClient":
109
- """Get a preconfigured client for Gnocchi, the metrics service.
110
-
111
- Args:
112
- session (Session): An authentication session object. By default a
113
- new session is created via :func:`chi.session`.
114
-
115
- Returns:
116
- A new Gnocchi client.
117
- """
118
- from gnocchiclient.v1.client import Client as GnocchiClient
119
-
120
- sess = session or session_factory()
121
- session_options = dict(auth=sess.session.auth)
122
- adapter_options = dict(interface=sess.interface, region_name=sess.region_name)
123
- return GnocchiClient(
124
- adapter_options=adapter_options, session_options=session_options
125
- )
126
-
127
-
128
115
  def manila(session=None) -> "ManilaClient":
129
116
  """Get a preconfigured client for Manila, the share service.
130
117
 
118
+ See `the documentation <https://docs.openstack.org/python-manilaclient/latest/user/api.html>`__ for usage.
119
+
131
120
  Args:
132
121
  session (Session): An authentication session object. By default a
133
122
  new session is created via :func:`chi.session`.
@@ -143,6 +132,8 @@ def manila(session=None) -> "ManilaClient":
143
132
  def neutron(session=None) -> "NeutronClient":
144
133
  """Get a preconfigured client for Neutron, the networking service.
145
134
 
135
+ See `the documentation <https://docs.openstack.org/python-neutronclient/latest/reference/index.html>`__ for usage.
136
+
146
137
  Args:
147
138
  session (Session): An authentication session object. By default a
148
139
  new session is created via :func:`chi.session`.
@@ -158,6 +149,8 @@ def neutron(session=None) -> "NeutronClient":
158
149
  def nova(session=None) -> "NovaClient":
159
150
  """Get a preconfigured client for Nova, the compute service.
160
151
 
152
+ See `the documentation <https://docs.openstack.org/python-novaclient/latest/user/python-api.html>`__ for usage.
153
+
161
154
  Args:
162
155
  session (Session): An authentication session object. By default a
163
156
  new session is created via :func:`chi.session`.
@@ -173,6 +166,8 @@ def nova(session=None) -> "NovaClient":
173
166
  def ironic(session=None) -> "IronicClient":
174
167
  """Get a preconfigured client for Ironic, the bare metal service.
175
168
 
169
+ See `the documentation <https://docs.openstack.org/python-ironicclient/latest/api_v1.html>`__ for usage.
170
+
176
171
  Args:
177
172
  session (Session): An authentication session object. By default a
178
173
  new session is created via :func:`chi.session`.
@@ -195,6 +190,8 @@ def ironic(session=None) -> "IronicClient":
195
190
  def keystone(session=None) -> "KeystoneClient":
196
191
  """Get a preconfigured client for Keystone, the authentication service.
197
192
 
193
+ See `the documentation <https://docs.openstack.org/python-keystoneclient/latest/>`__ for usage.
194
+
198
195
  Args:
199
196
  session (Session): An authentication session object. By default a
200
197
  new session is created via :func:`chi.session`.
@@ -215,6 +212,17 @@ def keystone(session=None) -> "KeystoneClient":
215
212
 
216
213
 
217
214
  def zun(session=None) -> "ZunClient":
215
+ """Get a preconfigured client for Zun, the edge container service.
216
+
217
+ See `the documentation <https://docs.openstack.org/python-zunclient/latest/user/python-api.html>`__ for usage.
218
+
219
+ Args:
220
+ session (Session): An authentication session object. By default a
221
+ new session is created via :func:`chi.session`.
222
+
223
+ Returns:
224
+ A new Zun client.
225
+ """
218
226
  from zunclient.client import Client as ZunClient
219
227
 
220
228
  return ZunClient(ZUN_API_VERSION, session=(session or session_factory()))