Skip to content

Self-hosted R and Python package registry

Private R and Python packages. Installed like CRAN and PyPI.

Paquetier is a registry for private and public R and Python packages. R installs from it as from CRAN. pip and uv install from it as from PyPI. It serves sources, binaries, and wheels from an S3 bucket you control, with roles per repository.

R consolepublic repository
> options(repos = c(paquetier = "https://pkg.acme.dev/cran/stable",+                   CRAN = "https://cloud.r-project.org"))> install.packages("acmeutils")trying URL 'https://pkg.acme.dev/cran/stable/src/contrib/acmeutils_1.4.0.tar.gz'Content type 'application/octet-stream' length 412839 bytes (403 KB)downloaded 403 KB * installing *source* package 'acmeutils' ...* DONE (acmeutils)
Protocols
CRAN, PyPI simple index
Storage
S3 per repository
Database
Postgres
License
Fair Core License
BinariesLinux builds

Source and binaries. Per platform, side by side.

Paquetier builds Linux binaries from your Git sources and serves uploaded macOS and Windows binaries next to the source. A gap shows where a platform has no build yet.

Example repository
  • acmeutils 1.4.0Source and all 4 binaries
  • arrow 19.0.1Source and all 4 binaries
  • backports 1.5.0No Linux arm64
  • bit64 4.6.0No Alpine x86_64No macOS
  • brms 2.22.0Source and all 4 binaries
InstallCRAN and PyPI protocols

One URL. Every R and Python client already speaks it.

R installs from Paquetier as it does from any CRAN mirror, with install.packages, pak, or renv. pip, uv and Poetry install from a Python repository as they do from PyPI. A private repository also needs an API key in ~/.netrc. R setup, Python setup

~/.Rprofile
options(
  repos = c(
    paquetier = "https://[email protected]/cran/stable",
    CRAN = "https://cloud.r-project.org"
  ),
  netrc = path.expand("~/.netrc"),
  download.file.method = if (nzchar(Sys.which("curl"))) "curl" else "libcurl",
  download.file.extra = "--netrc --location --fail"
)
~/.netrc
machine pkg.acme.dev
  login token
  password paquetier_3f9c...
R session
install.packages("acmeutils")
# or
pak::pkg_install("acmeutils")
# or
renv::install("acmeutils")
pyproject.toml
[[tool.uv.index]]
name = "paquetier"
url = "https://pkg.acme.dev/pypi/internal/simple/"
Shell
uv add acmeutils
# or
pip install --index-url https://pkg.acme.dev/pypi/internal/simple/ acmeutils
# publish
uv publish --publish-url https://pkg.acme.dev/pypi/internal/ \
  --token "$PAQUETIER_API_KEY"
FeaturesSelf-hosted

Storage, access, builds. Set per repository.

One server and a Postgres database. Every repository brings its own storage, and people get a role per repository.

01 Storage

Storage per repository

Any S3-compatible store, or local disk if an admin enables it. Credentials are encrypted at rest. A scan imports a CRAN-layout bucket you already have, Archive included, or a directory of Python wheels.

S3Local disk
02 Access

Public or private

Owner, editor, and viewer roles per repository. API keys for CI, and sign-in with local accounts or OIDC.

OIDCAPI keys
03 Build

From Git to binary

Paquetier polls a Git source for new tags or branch commits, runs R CMD build or uv build and publishes the package. On request it also builds Linux binaries and manylinux wheels.

GitR CMD builduv build

From a bucket to your first install in one afternoon.

Deploy the server with a Postgres database, connect a bucket to a repository and add its URL to .Rprofile or pip.conf.