You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OOP-based api client for [UpCloud's API](https://developers.upcloud.com/1.3/). Features most of the API's functionality and some convenience functions that combine several API endpoints and logic.
8
+
OOP-based API client for [UpCloud's API](https://developers.upcloud.com/1.3/). Includes most of the API
9
+
functionality and some convenience functions that combine several API endpoints and logic.
9
10
10
-
Please test all of your use cases thoroughly before actual production use. Using a separate UpCloud account for testing / developing the client is recommended.
11
+
Please test all of your use cases thoroughly before actual production use. Using a separate UpCloud account for
12
+
testing / developing the client is recommended.
11
13
12
14
## Installation
13
15
14
16
```bash
15
17
pip install upcloud-api
16
18
```
17
19
18
-
Alternatively, if you want the newest master or a devel branch - clone the project and run:
20
+
Alternatively, if you want the newest (possibly not yet released) stuff, clone the project and run:
19
21
20
22
```bash
21
23
python setup.py install
22
24
```
23
25
24
-
### Supported Python in API v2.0.0
26
+
### Supported Python versions in API v2.0.0
25
27
26
28
- Python 3.6
27
29
- Python 3.7
28
30
- Python 3.8
29
31
- Python 3.9
30
32
- PyPy3
31
33
32
-
**We don't recommend using Python 2:**
34
+
**Python 2 has been deprecated**
33
35
34
-
- Python 2.7 is supported in API < v2.0.0
36
+
- Python 2.7 is supported in older API versions (< v2.0.0), still available in [PyPI](https://pypi.org/project/upcloud-api/1.0.1/).
35
37
36
38
## Changelog
37
39
38
-
-See the [Releases page](https://github.com/UpCloudLtd/upcloud-python-api/releases)
40
+
-Changelog is available [in its own file](CHANGELOG.md), starting from version 2.0.0.
39
41
40
42
## Usage
41
43
42
-
Note that the API finishes the request before the server is shutdown. Poll the server details to monitor server status.
43
-
You must take this into account in your automations.
44
+
More usage examples are available under [docs/]. If there's a specific thing you're interested in,
45
+
but are not able to get working, please [contact UpCloud support](https://upcloud.com/contact/).
Tests located in `project_root/test/` directory. Run with:
224
+
Tests are located under `test/`. Run with:
226
225
227
-
```python
226
+
```bash
228
227
py.test test/
229
228
```
230
229
231
230
To test against all supported python versions, run:
232
231
233
-
```python
232
+
```bash
234
233
tox
235
234
```
236
235
237
-
To check for possible vulnerabilities in python packages, run:
238
-
239
-
```python
240
-
safety check
241
-
```
242
236
243
-
The project also supplies a small test suite to test against the live API at `test/live_test.py`. This suite is NOT run with `py.test` as it will permanently remove all resources related to an account. It should only be run with a throwaway dev-only account when preparing for a new release. It is not shipped with PyPI releases. See source code on how to run the live tests.
237
+
The project also supplies a small test suite to test against the live API at `test/live_test.py`.
238
+
This suite is NOT run with `py.test` as it will permanently remove all resources related to an account.
239
+
It should only be run with a throwaway dev-only account when preparing for a new release. It is not shipped with
240
+
PyPI releases. See source code on how to run the live test.
244
241
245
242
## Bugs, Issues, Problems, Ideas
246
243
247
-
Feel free to open a new issue : )
244
+
Please report issues and features requests through
Currently available Storage operating systems are the following UpCloud public templates:
66
-
Valid Operating Systems cam be retrieved with 'manager.get_templates()'. More information on this method can be found in storage_mixin documentation.
58
+
Currently available operating system templates can be retrieved with 'manager.get_templates()'. More information on this method can be found in storage_mixin documentation.
67
59
68
60
Please refer to the [API documentation](https://www.upcloud.com/static/downloads/upcloud-apidoc-1.1.1.pdf) for the allowed Server attributes.
69
61
@@ -124,7 +116,7 @@ server.remove_ip(IP)
124
116
125
117
## Destroy
126
118
127
-
Destroys the Server instance and its IP-addresses. However, does not destroy the Storages.
119
+
Destroys the Server instance and its IPaddresses. However, it does not destroy the Storages.
0 commit comments