oci

Oracle Cloud Infrastructure Python SDK

Universal Permissive License 1.0 or Apache License 2.0 378 个版本
Oracle <jyoti.s.saini@oracle.com>
安装
pip install oci
poetry add oci
pipenv install oci
conda install oci
描述

Oracle Cloud Infrastructure Python SDK


=====
About
=====

This is the Python SDK for Oracle Cloud Infrastructure. Supported Python versions are mentioned `here`__.

__ https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/pythonsdk.htm#pythonsdk_topic-supported_python_versions

.. code-block:: pycon

    >>> import oci
    # Set up config
    >>> config = oci.config.from_file(
    ...     "~/.oci/config",
    ...     "DEFAULT")
    # Create a service client
    >>> identity = oci.identity.IdentityClient(config)
    # Get the current user
    >>> user = identity.get_user(config["user"]).data
    >>> print(user)
    {
      "compartment_id": "ocid1.tenancy.oc1...",
      "description": "Test user",
      "id": "ocid1.user.oc1...",
      "inactive_status": null,
      "lifecycle_state": "ACTIVE",
      "name": "test-user@corp.com",
      "time_created": "2016-08-30T23:46:44.680000+00:00"
    }

The project is open source and maintained by Oracle Corp. The home page for the project is `here`__.

__ https://docs.oracle.com/en-us/iaas/tools/python/latest/index.html

============
Installation
============

It is highly recommended that a Python virtual environment be used when installing oci.

Please consult the `Installing packages using pip and virtualenv`__ guide from the Python Software Foundation for more information about virtual environments.

__ https://packaging.python.org/guides/installing-using-pip-and-virtualenv/

See `the installation guide`__ for installation troubleshooting and alternative install methods.

__ https://docs.oracle.com/en-us/iaas/tools/python/latest/installation.html

Once your virtual environment is active, oci can be installed using pip.

::

    pip install oci


============
Development
============

See the `development readme`__ for information on how to make changes, run tests and build the documentation and wheel for the Python SDK.

__ https://github.com/oracle/oci-python-sdk/blob/master/README-development.rst

========
Examples
========

Examples can be found `here`__.

__ https://github.com/oracle/oci-python-sdk/blob/master/examples/

=============
Documentation
=============

Full documentation, including prerequisites and installation and configuration instructions, can be found `here`__.

API reference can be found `here`__.

__ https://docs.oracle.com/en-us/iaas/tools/python/latest/index.html
__ https://docs.oracle.com/en-us/iaas/tools/python/latest/api/landing.html

A downloadable version of the documentation is include with in the release zip, which can be found `here`__.

__ https://github.com/oracle/oci-python-sdk/releases

====
Help
====

See the “Questions or Feedback” section `here`__.

__ https://docs.oracle.com/en-us/iaas/tools/python/latest/feedback.html

=======
Changes
=======

See `CHANGELOG`__.

__ https://github.com/oracle/oci-python-sdk/blob/master/CHANGELOG.rst

============
Contributing
============

oci-python-sdk is an open source project. See `CONTRIBUTING`__ for details.

Oracle gratefully acknowledges the contributions to oci-python-sdk that have been made by the community.

__ https://github.com/oracle/oci-python-sdk/blob/master/CONTRIBUTING.rst

============
Known Issues
============

You can find information on any known issues with the SDK `here`__ and under the “Issues” tab of this
project's `GitHub repository`__.

__ https://docs.oracle.com/iaas/Content/knownissues.htm
__ https://github.com/oracle/oci-python-sdk

=======
Survey
=======

Are you a Developer using the OCI SDK? If so, please fill out our survey to help us make the OCI SDK better for you.
Click `here`__ for the survey page.

__ https://oracle.questionpro.com/t/APeMlZka26?custom3=pypi

=======
License
=======

Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

See `LICENSE`__ for more details.

__ https://github.com/oracle/oci-python-sdk/blob/master/LICENSE.txt


版本列表
2.179.0 2026-06-16
2.178.0 2026-06-09
2.177.0 2026-06-02
2.176.0 2026-05-26
2.175.0 2026-05-18
2.174.0 2026-05-12
2.173.1 2026-05-05
2.173.0 2026-04-28
2.172.0 2026-04-21
2.171.0 2026-04-14
2.170.0 2026-04-07
2.169.0 2026-03-31
2.168.3 2026-03-24
2.168.2 2026-03-18
2.168.1 2026-03-10
2.168.0 2026-03-03
2.167.3 2026-02-24
2.167.2 2026-02-17
2.167.1 2026-02-10
2.167.0 2026-02-03
2.166.0 2026-01-27
2.165.1 2026-01-20
2.165.0 2026-01-13
2.164.2 2025-12-16
2.164.1 2025-12-09
2.164.0 2025-11-18
2.163.1 2025-11-11
2.163.0 2025-11-04
2.162.0 2025-10-28
2.161.1 2025-10-21
2.161.0 2025-10-07
2.160.3 2025-09-30
2.160.2 2025-09-23
2.160.1 2025-09-16
2.160.0 2025-09-09
2.159.1 2025-09-03
2.159.0 2025-08-26
2.158.2 2025-08-19
2.158.0 2025-08-12
2.157.1 2025-08-05
2.157.0 2025-07-29
2.156.0 2025-07-22
2.155.2 2025-07-15
2.155.1 2025-07-08
2.155.0 2025-07-01
2.154.3 2025-06-24
2.154.2 2025-06-17
2.154.1 2025-06-10
2.154.0 2025-06-03
2.153.0 2025-05-27
2.152.1 2025-05-20
2.152.0 2025-05-13
2.151.0 2025-05-06
2.150.3 2025-04-29
2.150.2 2025-04-22
2.150.1 2025-04-15
2.150.0 2025-04-08
2.149.2 2025-04-01
2.149.1 2025-03-25
2.149.0 2025-03-18
2.148.0 2025-03-11
2.147.0 2025-03-04
2.146.0 2025-02-25
2.145.0 2025-02-17
2.144.1 2025-02-11
2.144.0 2025-02-04
2.143.1 2025-01-28
2.143.0 2025-01-21
2.142.0 2025-01-13
2.141.1 2024-12-20
2.141.0 2024-12-17
2.140.0 2024-12-10
2.139.0 2024-11-19
2.138.1 2024-11-12
2.138.0 2024-11-05
2.137.1 2024-10-29
2.137.0 2024-10-22
2.136.0 2024-10-15
2.135.2 2024-10-08
2.135.1 2024-10-01
2.135.0 2024-09-24
2.134.0 2024-09-17
2.133.0 2024-08-27
2.132.0 2024-08-20
2.131.1 2024-08-13
2.131.0 2024-08-06
2.130.0 2024-07-30
2.129.4 2024-07-23
2.129.3 2024-07-16
2.129.2 2024-07-09
2.129.1 2024-07-02
2.129.0 2024-06-25
2.128.2 2024-06-17
2.128.1 2024-06-10
2.128.0 2024-06-03
2.127.0 2024-05-27
2.126.4 2024-05-21
2.126.3 2024-05-13
2.126.2 2024-05-06
2.126.1 2024-04-29
2.126.0 2024-04-22
2.125.3 2024-04-15
2.125.2 2024-04-06
2.125.1 2024-04-01
2.125.0 2024-03-26
2.124.2 2024-03-18
2.124.1 2024-03-11
2.124.0 2024-03-04
2.123.0 2024-02-27
2.122.0 2024-02-19
2.121.1 2024-02-13
2.121.0 2024-02-05
2.120.0 2024-01-29
2.119.1 2024-01-22
2.119.0 2024-01-16
2.118.2 2024-01-10
2.118.1 2024-01-08
2.118.0 2023-12-12
2.117.0 2023-12-01
2.116.0 2023-11-14
2.115.1 2023-11-07
2.115.0 2023-10-30
2.114.0 2023-10-23
2.113.0 2023-10-16
2.112.4 2023-10-09
2.112.3 2023-10-02
2.112.2 2023-09-25
2.112.1 2023-09-11
2.112.0 2023-09-05
2.111.0 2023-08-28
2.110.2 2023-08-21
2.110.1 2023-08-15
2.110.0 2023-08-07
2.109.0 2023-07-31
2.108.0 2023-07-25
2.107.0 2023-07-17
2.106.0 2023-07-10
2.105.0 2023-06-27
2.104.3 2023-06-20
2.104.2 2023-06-12
2.104.1 2023-06-05
2.104.0 2023-05-30
2.103.0 2023-05-22
2.102.0 2023-05-16
2.101.0 2023-05-08
2.100.0 2023-05-01
2.99.1 2023-04-25
2.99.0 2023-04-18
2.98.0 2023-04-11
2.97.0 2023-04-03
2.96.1 2023-03-28
2.96.0 2023-03-21
2.95.0 2023-03-14
2.94.0 2023-03-07
2.93.1 2023-02-28
2.93.0 2023-02-16
2.92.0 2023-02-14
2.91.0 2023-02-07
2.90.4 2023-01-31
2.90.3 2023-01-24
2.90.2 2023-01-17
2.90.1 2023-01-10
2.90.0 2022-12-13
2.89.0 2022-12-06
2.88.2 2022-11-22
2.88.1 2022-11-15
2.88.0 2022-11-07
2.87.0 2022-10-31
2.86.0 2022-10-25
2.85.0 2022-10-03
2.84.0 2022-09-27
2.83.0 2022-09-19
2.82.0 2022-09-12
2.81.0 2022-09-06
2.80.1 2022-08-30
2.80.0 2022-08-23
2.79.0 2022-08-16
2.78.0 2022-08-09
2.77.0 2022-08-02
2.76.0 2022-07-25
2.75.1 2022-07-19
2.75.0 2022-07-12
2.74.0 2022-07-05
2.73.0 2022-06-28
2.72.0 2022-06-21
2.71.0 2022-06-14
2.70.1 2022-06-07
2.70.0 2022-05-31
2.69.0 2022-05-24
2.68.0 2022-05-17
2.67.0 2022-05-10
2.66.0 2022-05-03
2.65.0 2022-04-26
2.64.0 2022-04-19
2.63.0 2022-04-12
2.62.1 2022-04-05
2.62.0 2022-03-29
2.61.0 2022-03-22
2.60.1 2022-03-15
2.60.0 2022-03-08
2.59.0 2022-03-01
2.58.0 2022-02-22
2.57.0 2022-02-15
2.56.0 2022-02-08
2.55.1 2022-02-01
2.55.0 2022-01-25
2.54.1 2022-01-18
2.54.0 2022-01-11
2.53.1 2021-12-21
2.53.0 2021-12-14
2.52.1 2021-12-07
2.52.0 2021-11-30
2.51.0 2021-11-17
2.50.0 2021-11-09
2.49.1 2021-11-02
2.49.0 2021-10-26
2.48.0 2021-10-19
2.47.1 2021-10-12
2.47.0 2021-10-05
2.46.0 2021-09-28
2.45.1 2021-09-14
2.45.0 2021-09-07
2.44.2 2021-08-31
2.44.1 2021-08-24
2.44.0 2021-08-17
2.43.2 2021-08-03
2.43.1 2021-07-27
2.43.0 2021-07-20
2.42.0 2021-07-13
2.41.1 2021-07-06
2.41.0 2021-06-29
2.40.1 2021-06-22
2.40.0 2021-06-15
2.39.1 2021-06-08
2.39.0 2021-06-01
2.38.4 2021-05-25
2.38.3 2021-05-18
2.38.2 2021-05-11
2.38.1 2021-05-04
2.38.0 2021-04-27
2.37.0 2021-04-20
2.36.0 2021-04-13
2.35.1 2021-04-06
2.35.0 2021-03-30
2.34.0 2021-03-23
2.33.0 2021-03-16
2.32.1 2021-03-09
2.32.0 2021-03-02
2.31.2 2021-02-23
2.31.1 2021-02-16
2.31.0 2021-02-09
2.30.0 2021-02-02
2.29.0 2021-01-26
2.28.0 2021-01-19
2.27.0 2021-01-12
2.26.0 2020-12-15
2.25.1 2020-12-08
2.25.0 2020-12-01
2.24.1 2020-11-24
2.24.0 2020-11-17
2.23.5 2020-11-10
2.23.4 2020-11-03
2.23.3 2020-10-30
2.23.2 2020-10-27
2.23.1 2020-10-20
2.23.0 2020-10-13
2.22.0 2020-10-06
2.21.6 2020-09-29
2.21.5 2020-09-22
2.21.4 2020-09-15
2.21.3 2020-09-08
2.21.2 2020-09-01
2.21.1 2020-08-18
2.21.0 2020-08-11
2.20.0 2020-08-04
2.19.0 2020-07-28
2.18.1 2020-07-21
2.18.0 2020-07-14
2.17.2 2020-07-07
2.17.1 2020-06-30
2.17.0 2020-06-23
2.16.1 2020-06-16
2.16.0 2020-06-09
2.15.0 2020-06-02
2.14.3 2020-05-19
2.14.2 2020-05-12
2.14.1 2020-05-05
2.14.0 2020-04-28
2.13.0 2020-04-21
2.12.4 2020-04-14
2.12.3 2020-04-07
2.12.2 2020-03-31
2.12.1 2020-03-24
2.12.0 2020-03-17
2.11.0 2020-03-10
2.10.7 2020-03-03
2.10.6 2020-02-25
2.10.5 2020-02-18
2.10.4 2020-02-11
2.10.3 2020-02-04
2.10.2 2020-01-28
2.10.1 2020-01-21
2.10.0 2020-01-14
2.9.0 2020-01-08
2.8.0 2019-12-17
2.7.1 2019-12-10
2.7.0 2019-11-26
2.6.5 2019-11-19
2.6.4 2019-11-13
2.6.3 2019-11-05
2.6.2 2019-10-29
2.6.1 2019-10-15
2.6.0 2019-10-08
2.5.2 2019-10-01
2.5.1 2019-09-24
2.5.0 2019-09-17
2.4.0 2019-09-10
2.3.3 2019-09-03
2.3.2 2019-08-27
2.3.1 2019-08-20
2.3.0 2019-08-13
2.2.21 2019-08-06
2.2.20 2019-07-30
2.2.19 2019-07-23
2.2.18 2019-07-16
2.2.17 2019-07-09
2.2.16 2019-07-02
2.2.15 2019-06-25
2.2.14 2019-06-18
2.2.13 2019-06-11
2.2.12 2019-06-04
2.2.11 2019-05-28
2.2.10 2019-05-21
2.2.9 2019-05-14
2.2.8 2019-05-07
2.2.7 2019-04-16
2.2.6 2019-04-09
2.2.5 2019-04-02
2.2.4 2019-03-26
2.2.3 2019-03-19
2.2.2 2019-03-12
2.2.1 2019-02-28
2.2.0 2019-02-21
2.1.7 2019-02-07
2.1.6 2019-01-31
2.1.5 2019-01-24
2.1.4 2019-01-10
2.1.3 2018-12-13
2.1.2 2018-11-29
2.1.1 2018-11-15
2.1.0 2018-11-01
2.0.6 2018-10-18
2.0.5 2018-10-04
2.0.4 2018-09-27
2.0.3 2018-09-06
2.0.2 2018-08-23
2.0.1 2018-08-09
2.0.0 2018-07-26
1.4.5 2018-07-12
1.4.4 2018-06-28
1.4.3 2018-06-14
1.4.1 2018-05-31
1.4.0 2018-05-17
1.3.20 2018-05-03
1.3.19 2018-04-19
1.3.18 2018-04-05
1.3.17 2018-03-26
1.3.16 2018-03-08
1.3.15 2018-02-22
1.3.14 2018-02-08
1.3.13 2018-01-25
1.3.12 2018-01-11
1.3.11 2017-12-11
1.3.10 2017-11-27
1.3.9 2017-11-02
1.3.8 2017-10-12
1.3.7 2017-09-11
0.0.1 2017-09-08