oraclecloud-data-handling

Featured

Manage OCI Object Storage — buckets, uploads, PARs, and lifecycle policies. Use when uploading objects, creating pre-authenticated requests, or configuring lifecycle rules. Trigger with "oci object storage", "oci bucket", "par url", "multipart upload", "oci lifecycle".

AI & Automation 2,940 stars 439 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OCI Object Storage — Buckets, PARs & Lifecycle ## Overview Manage OCI Object Storage using the Python SDK. Object Storage is OCI's S3 equivalent, but PAR (Pre-Authenticated Request) URLs expire silently with no error — the URL just returns 404. Multipart uploads over 50GB require manual part management. Lifecycle policies can delete data unexpectedly if misconfigured. This skill covers the safe patterns for all of these operations. **Purpose:** Upload, download, and share objects safely with proper PAR expiry management and lifecycle policy configuration. ## Prerequisites - **OCI Python SDK** — `pip install oci` - **Config file** at `~/.oci/config` with fields: `user`, `fingerprint`, `tenancy`, `region`, `key_file` - **IAM policy** — `Allow group Developers to manage objects in compartment <name>` - **Python 3.8+** ## Instructions ### Step 1: Discover Namespace and Create a Bucket Every OCI tenancy has a unique Object Storage namespace. You must discover it before any operation. ```python import oci from datetime import datetime, timedelta config = oci.config.from_file("~/.oci/config") storage = oci.object_storage.ObjectStorageClient(config) # Namespace is tenancy-specific — discover it, never hardcode namespace = storage.get_namespace().data print(f"Namespace: {namespace}") # Create bucket bucket = storage.create_bucket( namespace_name=namespace, create_bucket_details=oci.object_storage.models.CreateBucketDetails( compartment_id=config["tenancy"...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category