--- id: oci version: "2.184.1" license: Universal Permissive License 1.0 or Apache License 2.0 license_treatment: permissive maintenance: active --- # oci — Oracle Cloud Infrastructure Python SDK License: permissive · Maintenance: active · Downloads: 12.5M/mo ## What it is and what it does The oci package is Oracle's official Python SDK for Oracle Cloud Infrastructure (OCI). It provides a programmatic interface to OCI services through typed service clients, allowing you to manage cloud resources, query identity and access control, and interact with storage, compute, and other OCI offerings from Python code. The SDK handles authentication via OCI configuration files, manages HTTP communication with cryptographic security, and abstracts the underlying REST API into Python objects and method calls. You install it via pip into a virtual environment and configure it with OCI credentials. The typical workflow is to load a configuration file, instantiate a service client for the OCI service you need (such as IdentityClient, ComputeClient, or ObjectStorageClient), and call methods on that client to perform operations. The SDK manages request signing, retries via circuitbreaker, and response parsing automatically. Use it for: - Automate provisioning and management of OCI compute instances, networks, and storage from Python scripts or applications. - Query OCI identity and access control to audit users, groups, and permissions programmatically. - Build monitoring or cost-analysis tools that pull data from OCI services via the SDK. - Integrate OCI resource management into CI/CD pipelines or infrastructure-as-code workflows. - Develop multi-cloud or hybrid-cloud applications that interact with OCI alongside other cloud providers. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python SDK for Oracle Cloud Infrastructure that provides programmatic access to OCI services through service clients and configuration management. Yes. The SDK is production-stable, actively maintained (released 3 days ago), has low install friction, and carries no known vulnerabilities. It is the canonical way to interact with OCI from Python. Install it if you need to programmatically manage OCI resources or integrate OCI services into Python applications. The dual permissive license poses no restriction. ## Install pip install oci uv add oci poetry add oci ## Installing oci Before you install: Low install friction with a pure-wheel distribution. Actively maintained with a release 3 days old. Depends on 10 well-established runtime libraries including cryptography, urllib3, and PyJWT for secure communication and authentication. License in practice: Dual-licensed under UPL 1.0 or Apache 2.0, both permissive. You may choose either license, giving flexibility for commercial or open-source projects without copyleft obligations. Quickstart: pip install oci import oci config = oci.config.from_file('~/.oci/config', 'DEFAULT') identity = oci.identity.IdentityClient(config) user = identity.get_user(config['user']).data Requires a valid OCI configuration file at ~/.oci/config with credentials and tenancy information; see Oracle's installation guide for setup. Verify before relying: - Whether the SDK supports all current OCI service offerings or if some services require separate/newer versions. - Performance characteristics and rate-limiting behavior when making many concurrent API calls. - Whether circuitbreaker dependency is used for automatic retry/backoff or if manual error handling is required. ## Package facts - License: Universal Permissive License 1.0 or Apache License 2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 12.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags oracle cloud infrastructure sdk, oci python client, oracle cloud api python, oci service client, oracle iaas python sdk, cloud infrastructure automation python, oracle cloud resource management, cloud-infrastructure, oracle-cloud, iaas-sdk [View on SkillFed](https://skillfed.io/packages/oci) · [View on PyPI](https://pypi.org/project/oci/)