From e502117cafd92fd9c25d1d6dd047cc650c691629 Mon Sep 17 00:00:00 2001 From: Allen Hosler Date: Sat, 11 Mar 2023 00:49:56 +0000 Subject: [PATCH] Adding Oracle Cloud to docs (#5621) Adding Oracle Cloud's fsspec implementation to the list of supported cloud storage providers. --- docs/source/filesystems.mdx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/docs/source/filesystems.mdx b/docs/source/filesystems.mdx index 3fefdd05bfc..2d0e02c42e3 100644 --- a/docs/source/filesystems.mdx +++ b/docs/source/filesystems.mdx @@ -11,9 +11,10 @@ Take a look at the following table for some example of supported cloud storage p | Azure Blob/DataLake | [adlfs](https://github.com/fsspec/adlfs) | | Dropbox | [dropboxdrivefs](https://github.com/MarineChap/dropboxdrivefs)| | Google Drive | [gdrivefs](https://github.com/intake/gdrivefs) | +| Oracle Cloud Storage | [ocifs](https://ocifs.readthedocs.io/en/latest/) | This guide will show you how to save and load datasets with any cloud storage. -Here are examples for S3, Google Cloud Storage and Azure Blob Storage. +Here are examples for S3, Google Cloud Storage, Azure Blob Storage, and Oracle Cloud Object Storage. ## Set up your cloud storage FileSystem @@ -101,6 +102,27 @@ Otherwise, include your `aws_access_key_id` and `aws_secret_access_key` whenever >>> fs = adlfs.AzureBlobFileSystem(**storage_options) ``` +### Oracle Cloud Object Storage + +1. Install the OCI FileSystem implementation: + +``` +>>> pip install ocifs +``` + +2. Define your credentials + +```py +>>> storage_options = {"config": "~/.oci/config", "region": "us-ashburn-1"} +``` + +3. Create your FileSystem instance + +```py +>>> import ocifs +>>> fs = ocifs.OCIFileSystem(**storage_options) +``` + ## Load and Save your datasets using your cloud storage FileSystem ### Download and prepare a dataset into a cloud storage