-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef8b05e
commit fd590db
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# PyOCI | ||
Publish and download python packages using OCI registries | ||
Publish and download python packages using OCI registries. | ||
|
||
[](https://github.com/AllexVeldman/pyoci/actions/workflows/test.yaml) | ||
[](https://github.com/AllexVeldman/pyoci/actions/workflows/examples.yaml) | ||
[](https://github.com/AllexVeldman/pyoci/actions/workflows/deploy.yaml) | ||
|
||
PyOCI allows using any (private) OCI registry as a python package index. | ||
It acts as a proxy between pip and the OCI registry. | ||
|
@@ -18,9 +22,9 @@ instead the [token authentication](https://distribution.github.io/distribution/s | |
|
||
To install a package with pip using PyOCI: | ||
```commandline | ||
pip install --extra-index-url=http://<username>:<password>@<pyoci url>/<OCI registry url>/<namespace>/ <package name> | ||
pip install --extra-index-url=http://<username>:<password>@<pyoci url>/<OCI registry url>/<namespace>/<package name> | ||
``` | ||
Example installing package `bar` from user `Foo` using `ghcr.io` as the registry: | ||
```commandline | ||
pip install --extra-index-url=https://Foo:[email protected]/ghcr.io/foo/ bar | ||
pip install --extra-index-url=https://Foo:[email protected]/ghcr.io/foo/bar | ||
``` |