PlatformRegistriesPypi
PyPI Registry
Publish and install Python packages from Drok's integrated PyPI-compatible registry.
Drok's PyPI registry is compatible with standard Python packaging tools — pip, twine, poetry, and uv. Publish wheels and sdists, install dependencies, and manage access through Drok's unified authentication.
Configuration
pip
pip install my-package \
--index-url https://__token__:${Drok_TOKEN}@drok.us/api/v1/packages/pypi/your-org/simple/Or add to pip.conf:
[global]
extra-index-url = https://__token__:${Drok_TOKEN}@drok.us/api/v1/packages/pypi/your-org/simple/Poetry
# pyproject.toml
[[tool.poetry.source]]
name = "drok"
url = "https://drok.us/api/v1/packages/pypi/your-org/simple/"
priority = "supplemental"poetry config http-basic.drok __token__ $Drok_TOKENuv
uv pip install my-package \
--extra-index-url https://__token__:${Drok_TOKEN}@drok.us/api/v1/packages/pypi/your-org/simple/Publishing
With twine
twine upload \
--repository-url https://drok.us/api/v1/packages/pypi/your-org/ \
-u __token__ -p $Drok_TOKEN \
dist/*With Poetry
poetry publish --repository drokFrom Pipelines
# .lehub/pipeline.yml
stages:
- name: publish
when: tag =~ "v*"
steps:
- name: Build and publish
run: |
python -m build
twine upload --repository-url https://drok.us/api/v1/packages/pypi/$ORG/ dist/*
secrets: [Drok_TOKEN]Features
- PEP 503 Simple API — Full compatibility with the Simple Repository API
- Wheel and sdist — Both binary and source distribution formats supported
- Metadata indexing — Package metadata is indexed for search and discovery
- Version constraints — All PEP 440 version specifiers are supported
- Yanking — Mark versions as yanked per PEP 592
Installing
pip install my-package --extra-index-url https://__token__:${Drok_TOKEN}@drok.us/api/v1/packages/pypi/your-org/simple/pip resolves packages from Drok first, then falls back to the public PyPI index for packages not found in Drok's registry.