Oracle BMCS Python SDKΒΆ

This is the public Python SDK for Oracle Bare Metal Cloud Services. Python 2.7+ and 3.5+ are supported.

>>> import oraclebmc
>>> config = oraclebmc.config.from_file(
...     "~/.oraclebmc/config",
...     "integ-beta-profile")
>>> identity = oraclebmc.identity.IdentityClient(config)
>>> user = identity.get_user(config["user"]).data
>>> print(user)
  "compartment_id": "ocid1.tenancy.oc1...",
  "description": "Integration testing user [BETA]",
  "id": "ocid1.user.oc1...",
  "inactive_status": null,
  "lifecycle_state": "ACTIVE",
  "name": "",
  "time_created": "2016-08-30T23:46:44.680000+00:00"

To get started, head over to the installation instructions or see more examples in the quickstart section.