Skip to content

ocipy: OCI Python Packaging Tool

Distribute Python packages using OCI registries with ease

ocipy enables you to publish and install Python packages using OCI (Open Container Initiative) registries. Leverage your existing OCI infrastructure for secure, versioned Python package distribution without complex PyPI proxy setups.

✨ Key Features

Why Choose ocipy?

  • 🚀 Simple CLI - Intuitive commands for publishing and installing packages
  • 🔒 Secure Distribution - Leverage OCI registry security features
  • 📦 Version Management - Built-in versioning and tagging support
  • 🏗️ Build System Integration - Works seamlessly with your existing workflow
  • 🌐 Registry Flexibility - Use any OCI-compliant registry

Quick Start

Installation

Install ocipy using pip:

pip install ocipy

Or add it to your pyproject.toml for build system integration:

[build-system]
requires = ["ocipy"]

Publishing Your First Package

# Configure your registry
ocipy config set-registry oci://registry.example.com/my-packages

# Publish your package
ocipy publish --tag latest

Installing Packages

# Install from OCI registry
ocipy install my-package

# Install specific version
ocipy install my-package:v1.2.3

How It Works

graph LR
    A[Python Package] --> B[ocipy build]
    B --> C[OCI Image]
    C --> D[OCI Registry]
    D --> E[ocipy install]
    E --> F[Local Environment]

ocipy transforms your Python packages into OCI-compliant artifacts, enabling you to:

  1. Build packages as OCI images with proper metadata
  2. Push to any OCI registry (Docker Hub, AWS ECR, Azure ACR, etc.)
  3. Pull and install packages from registries
  4. Manage versions using OCI tags and manifests

Getting Started

Community & Support

  • GitHub: Report issues and contribute
  • Documentation: Comprehensive guides and API reference
  • Examples: Real-world usage patterns and best practices