PyOCI – Publish and install private Python packages using OCI/Docker registries
20 hours ago
- #OCI
- #Python
- #Package Management
- PyOCI allows using any private OCI registry as a Python package index, eliminating the need for separate access management.
- It acts as a proxy between pip and the OCI registry, with an instance available at https://pyoci.com.
- Packages can be installed using pip with a specific index URL format, including credentials and registry details.
- Dependencies from regular PyPI won't resolve through PyOCI; tools like Poetry or uv are recommended for handling dependencies.
- PyOCI can be self-hosted using a Docker container, with environment variables for configuration like port, path, and logging.
- Labels can be added to packages via classifiers, which are then added as annotations in the OCI image.
- PyOCI supports deleting package files, depending on the underlying registry's capabilities.
- Renovate can be configured to work with PyOCI for private package updates, using GitHub tokens for authentication.