@@ -10,7 +10,6 @@ The Python SDK supports operations for the following services:
1010* Object Storage Service
1111* Core Services (Networking Service, Compute Service, and Block Volume Service)
1212
13-
1413===============
1514 Prerequisites
1615===============
@@ -19,15 +18,15 @@ The Python SDK supports operations for the following services:
1918* A user created in that account, in a group with a policy that grants the desired permissions.
2019 This can be a user for yourself, or another person/system that needs to call the API.
2120 For an example of how to set up a new user, group, compartment, and policy, see
22- `Adding Users`_ in the Getting Started Guide. For a list of other typical
23- Oracle Bare Metal Cloud Services policies, see `Common Policies`_ in the User Guide.
21+ `Adding Users `_ in the Getting Started Guide. For a list of other typical
22+ Oracle Bare Metal Cloud Services policies, see `Common Policies `_ in the User Guide.
2423* Python version 2.7.5 or 3.5 or later, running on Mac, Windows, or Linux.
2524* The Python SDK uses the `cryptography.io `_ library, which has its own additional `build requirements `_.
2625* The Python SDK requires `TLS 1.2 `_, which versions of `openssl `_ before 1.0.1 do not provide.
2726 If your version of Python was built against an earlier version, you will need to install a new
2827 Python that links against a newer version.
2928* A keypair used for signing API requests, with the public key uploaded to Oracle. Only the user calling
30- the API should be in possession of the private key. See Configuring the SDK below.
29+ the API should be in possession of the private key. See Configuring the SDK below.
3130
3231.. _Adding Users : https://docs.us-phoenix-1.oraclecloud.com/Content/GSG/Tasks/addingusers.htm
3332.. _Common Policies : https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm
@@ -41,12 +40,34 @@ The Python SDK supports operations for the following services:
4140 Downloading and Installing the SDK
4241====================================
4342
44- 1. Download the SDK from `SDKs and Other Tools`_.
43+ You can install the Python SDK from GitHub or through the Python Package Index (PyPI).
44+
45+ To install from GitHub:
46+
47+ 1. Download the SDK from `GitHub <https://github.com/oracle/bmcs-python-sdk/releases >`_.
4548 The download is a zip containing a whl file and documentation.
49+ 2. Extract the files from the zip.
50+ 3. Use the following command to install the SDK::
51+
52+ pip install oraclebmc-*-py2.py3-none-any.whl
53+
54+ .. note::
55+
56+ If you're unable to install the whl file, make sure pip is up to date.
57+ Use ``pip install -U pip`` and then try to install the whl file again.
58+
59+ To install from `PyPI <https://pypi.python.org/pypi/oraclebmc >`_:
60+
61+ Use the following command::
62+
63+ pip install oraclebmc
64+
65+
66+ (Optional)
67+ Oracle recommends that you run the SDK in a virtual environment with virtualenv.
4668
47- 2. (Optional) Oracle recommends that you run the SDK in a virtual environment with virtualenv.
4869 With Linux, it's usually in a separate package from the main Python package.
49- If you need to install virtualenv, use pip install virtualenv.
70+ If you need to install virtualenv, use pip install virtualenv.
5071 To create and activate a virtual environment::
5172
5273 virtualenv <environment name>
@@ -57,23 +78,14 @@ The Python SDK supports operations for the following services:
5778 virtualenv bmcs_sdk_env
5879 . bmcs_sdk_env/bin/activate
5980
60- 3. Install the Python SDK using the following command::
61-
62- pip install oraclebmc-*-py2.py3-none-any.whl
63-
64- .. note::
6581
66- If you're unable to install the whl file, make sure pip is up to date.
67- Use ``pip install -U pip`` and then try to install the whl file again.
68-
69- .. _SDKs and Other Tools : https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm
7082
7183=====================
7284 Configuring the SDK
7385=====================
7486
7587Before using the SDK, you must set up your config file with the required credentials.
76- For instructions, see `SDK and Tool Configuration`_ in the User Guide.
88+ For instructions, see `SDK and Tool Configuration `_ in the User Guide.
7789
7890.. _SDK and Tool Configuration : https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdkconfig.htm
7991
@@ -118,7 +130,7 @@ You might encounter issues when installing Python or the SDK, or using the SDK i
118130----------------------------
119131 Troubleshooting OEL Issues
120132----------------------------
121- On OEL 7.3, if you encounter permission issues when running pip install, you might need to use ``sudo``.
133+ On OEL 7.3, if you encounter permission issues when running pip install, you might need to use ``sudo ``.
122134
123135----------------------------
124136 Troubleshooting Mac Issues
@@ -176,21 +188,20 @@ reinstalling Python above. Make sure to also reinstall the wheel with this comma
176188
177189 pip install oraclebmc-*-py2.py3-none-any.whl
178190
179- ========================
180- Questions or Feedback?
181- ========================
191+ ================
192+ Contributions
193+ ================
194+
195+ Got a fix for a bug, or a new feature you'd like to contribute? The SDK is open source and accepting pull requests on `GitHub `__.
182196
183- Ways to get in touch:
197+ __ https://github.com/oracle/bmcs-python-sdk
184198
185- * `Stack Overflow `_: Please use the `oracle-bmcs`_ and `oracle-bmcs-python-sdk `_ tags in your post
199+ ================
200+ Notifications
201+ ================
186202
187- * `Developer Tools section`_ of the Oracle Cloud forums
203+ To be notified when a new version of the Python SDK is released, subscribe to the ` Atom feed `_.
188204
189- * ` My Oracle Support `_
205+ .. _ Atom feed : https://github.com/oracle/bmcs-python-sdk/releases.atom
190206
191- .. _Stack Overflow : https://stackoverflow.com/
192- .. _oracle-bmcs : https://stackoverflow.com/questions/tagged/oracle-bmcs
193- .. _oracle-bmcs-python-sdk : https://stackoverflow.com/questions/tagged/oracle-bmcs-python-sdk
194- .. _Developer Tools section : https://community.oracle.com/community/cloud_computing/bare-metal/content?filterID=contentstatus[published]~category[developer-tools]
195- .. _My Oracle Support : https://support.oracle.com/
196207
0 commit comments