Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/source/getting-connected.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,29 @@
" storage_options={\"signer\": instance_principal_signer})"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Accessing a Specific Compartment"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If your OCI policies are scoped to a specific compartment, you can use the `compartment_id` parameter to specify the compartment to use for authorization. This is useful when you have policies that grant access to resources within a specific compartment, but not at the tenancy level."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"fs = ocifs.OCIFileSystem(config=\"~/.oci/config\", profile=\"DEFAULT\", compartment_id=\"ocid1.compartment.oc1..test\")"
]
},
{
"cell_type": "markdown",
"id": "peripheral-muslim",
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build-backend = "flit_core.buildapi"

# Required
name = "ocifs" # the install (PyPI) name
version = "1.3.3"
version = "1.3.4"

# Optional
description = "Convenient filesystem interface over Oracle Cloud's Object Storage"
Expand Down Expand Up @@ -49,6 +49,8 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]

# PEP 508 – Dependency specification for Python Software Packages - https://peps.python.org/pep-0508/
Expand Down