Skip to main content

carla-pack

A client for distributing CARLA content packs through GitHub repository permissions. There is no server.

carla-pack ──(1) GitHub API: read carla-packs.toml ──────────────► GitHub (private repository)
           ──(2) GitHub API: read the read-only S3 key ───────────►   └ Release "carla-pack-credentials"
           ──(3) download directly with SigV4 ────────────────────► S3-compatible storage (R2 / S3 / MinIO …)
           ──(4) verify with SHA-256 and carla-pack.json → install → mount ─► CARLA server
  • GitHub checks access. Only users who can read the (private) pack repository can fetch the manifest carla-packs.toml and the read-only storage key stored in a Release. Anyone else just gets a 404 from GitHub. Who receives the packs is decided directly by Read permission on that repository (users / teams / organizations).
  • Files are downloaded directly from S3-compatible storage (Cloudflare R2, AWS S3, MinIO, SeaweedFS, etc.). Packs that anyone may have can also live in a public Hugging Face Hub repository (no key, anonymous download).
  • Inside a Google Workspace, packs can also live on a Google Drive shared drive, read through rclone with each user's own Google account: the drive's sharing decides who may download them, on top of the (private) pack repository (docs/pack-repository.md).
  • The key is a temporary key valid for 12 hours, recreated every 6 hours by the pack repository's GitHub Actions. It can only read the pack prefix of the bucket. R2 issues it through its temporary credentials API and AWS through GitHub OIDC, so no long-lived key is stored anywhere.
  • Downloaded files are verified against the manifest's SHA-256 and size, and then against the hashes of every file in the pack's own carla-pack.json, before they are installed.
  • The core (GitHub API, SigV4, download, verification, extraction) is Rust; the CLI and mounting into CARLA are Python (PyO3 / maturin, abi3 wheel).

The previous version (a Registry server on Cloudflare Workers / AWS Lambda) has been retired. How this design differs from it is described in docs/architecture.md.

Using packs (downloading)

pip install carla-pack-registry   # during development, see "Development"

gh auth login                     # the GitHub CLI's token is used as is (GH_TOKEN / GITHUB_TOKEN / carla-pack login also work)
carla-pack whoami
carla-pack repo add tier4/carla-packs     # repositories searched by map name (CARLA_PACK_REPOS also works)

carla-pack ls                             # packs in the repositories you can read
carla-pack find NishishinjukuMap          # packs containing that map
carla-pack install NishishinjukuMap --map \
  --packs-dir /opt/carla/Linux/CarlaUnreal/Packs --mount localhost:2000
carla-pack install tier4/carla-packs/NishishinjukuPack@1.2.0 --packs-dir ./Packs   # by reference
carla-pack pull tier4/carla-packs/NishishinjukuPack -o ./downloads               # only fetch the tarball

The PyPI distribution is carla-pack-registry, the Python module is carla_pack_registry and the command is carla-pack (it does not clash with CARLA's own Util/ContentPacks/carla_pack.py in the same environment).

A pack is referred to as OWNER/REPO/PACK[@VERSION]. Without a version the latest is used (narrowed with --base-release / --platform); --sha256 pins it to that artifact (for lock files).

From Python (in a scenario library)

import typesafe_carla.carla as carla   # the official carla module also works
from carla_pack_registry import Client, deploy_pack, ensure_map

client = carla.Client("localhost", 2000)

# Only when the server lacks the map: find it in the readable repositories, fetch, verify, install and mount it. Otherwise do nothing (None).
pack = ensure_map(client, "NishishinjukuMap", "/opt/carla/Linux/CarlaUnreal/Packs",
                  repos=["tier4/carla-packs"])
client.load_world("NishishinjukuMap")

# Reproducible fetch from a lock file's contents (reference + SHA-256)
deploy_pack("tier4/carla-packs/NishishinjukuPack", packs_dir, carla_client=client,
            sha256=pack["sha256"])

# Low-level API
c = Client()                                     # token and searched repositories come from the environment / saved settings
release = c.find_map("NishishinjukuMap")         # {"ref", "repo", "name", "version", "sha256", "maps", ...}
path = c.fetch(release)                          # fetch into the cache (named by SHA-256), verify, return the path
c.install(release, packs_dir)                    # verify and install into <packs_dir>/<name> (no-op if identical)
  • packs_dir must be readable by the CARLA server at the same path (the package's Linux/CarlaUnreal/Packs, -carla-packs=<dir>, or any folder if you mount it).
  • If the same pack (name, version, base release, platform) is already installed, nothing is downloaded. Replacing another version needs force=True (a mounted pack is unmounted first).
  • Downloads are cached in ~/.cache/carla-pack/blobs/<sha256>.tar.gz (CARLA_PACK_CACHE_DIR). A multi-gigabyte pack uses about twice its size on disk: the cached tarball plus the extracted pack.
  • If the connection drops, the download resumes from the received offset with a Range request (up to 5 times). A resumed download is still verified against the whole file's SHA-256.

Offline (cached packs only)

Each cached tarball is kept with its manifest entry (blobs/<sha256>.json), so a pack fetched once can be used without the network:

  • Pinned by SHA-256 (--sha256, sha256=, a lock file): a cached release is used as it is, without asking GitHub, online or not.
  • Offline (--offline, CARLA_PACK_OFFLINE=1, or Client(offline=True)): GitHub and the storage are never contacted. References and map names are resolved among the cached releases (the newest that matches; with no repositories listed, any cached repository), and ls lists them. Anything not cached fails with the code offline.
carla-pack install NishishinjukuMap --map --packs-dir ./Packs          # online, once: fetched into the cache
CARLA_PACK_OFFLINE=1 carla-pack install NishishinjukuMap --map --packs-dir ./Packs   # later, without the network

Share or mount the cache directory (CARLA_PACK_CACHE_DIR) to give machines without network access the packs fetched elsewhere.

Getting map data by format

A pack's map data can be retrieved as local paths by map name and format name. No CARLA server is needed (the pack is fetched, verified and extracted into the cache).

  • Every pack has the standard formats from carla-pack.json (opendrive / navmesh / traffic_manager / map_logic).
  • If the pack carries Content/Config/roadgen_asset.json (optional), its formats too (written by roadgen's carla_pack_assets: lanelet2 / autoware (Lanelet2, point cloud map, projector) / pointcloud / sumo / commonroad / clipgt / rdshq / gpudrive / womd, etc.).
carla-pack formats hakuturu583/carla-packs-test/RoadgenHighwayPack           # map × format table
carla-pack data hakuturu583/carla-packs-test/RoadgenHighwayPack --format lanelet2
carla-pack data RoadgenHighway --map --format autoware --file pointcloud_map  # one file inside a folder
carla-pack find RoadgenHighway --format lanelet2      # packs with that format (searched in the index written at publish)
carla-pack find SomeDataOnlyMap --assets              # also find maps that only the asset file names
carla-pack ls --formats                               # add a formats column to the list
carla-pack formats ./Packs/RoadgenHighwayPack         # an installed pack folder or a tarball also works
from carla_pack_registry import Client, map_data, map_formats

client = Client()
release = client.find_map("RoadgenHighway", format="autoware")
autoware_dir = client.map_data(release, "RoadgenHighway", "autoware")   # usable directly as Autoware's map_path
pcd = client.map_data(release, "RoadgenHighway", "autoware", file="pointcloud_map")
client.formats(release)          # {map: {format: {type, path, files, origin}}}
map_formats("/opt/carla/CarlaUnreal/Packs/RoadgenHighwayPack")          # an installed pack
map_data("/opt/carla/CarlaUnreal/Packs/RoadgenHighwayPack", "RoadgenHighway", "opendrive")

carla-pack publish writes each map's formats into the entry in carla-packs.toml (formats). find --format searches this index, so it downloads nothing.

Settings

Item How
GitHub token in order: CARLA_PACK_TOKEN → GH_TOKEN → GITHUB_TOKEN → the one saved by carla-pack login → gh auth token
Repositories to search --repo (repeatable), CARLA_PACK_REPOS (comma-separated), carla-pack repo add
Offline (cache only) --offline, CARLA_PACK_OFFLINE=1
Where settings are saved CARLA_PACK_CONFIG_DIR (default ~/.config/carla-pack/config.json, permissions 600)
GitHub Enterprise Server CARLA_PACK_GITHUB_API (e.g. https://ghe.example.com/api/v3)
Google Drive storage (rclone) carla-pack drive login creates the rclone remote carla-pack-gdrive; CARLA_PACK_RCLONE (the rclone executable), CARLA_PACK_RCLONE_REMOTE (another remote), CARLA_PACK_RCLONE_SERVICE_ACCOUNT_FILE (a service account key, for CI), CARLA_PACK_DRIVE_CLIENT_ID / CARLA_PACK_DRIVE_CLIENT_SECRET (your Workspace's OAuth client, for drive login)

carla-pack login is a device flow with the client ID of a GitHub App (recommended: Contents read-only, installed on the pack repositories) (--client-id / CARLA_PACK_GITHUB_CLIENT_ID; for an OAuth App, --scope repo). Not needed if you have run gh auth login. In CI, pass a fine-grained PAT or a GitHub App token that can read the pack repositories in CARLA_PACK_TOKEN (a workflow's GITHUB_TOKEN cannot read other repositories).

Distributing packs (creating a pack repository)

See docs/pack-repository.md. In short:

  1. Create a private repository and put templates/pack-repo/carla-packs.toml in it. Give Read permission to whoever should receive the packs.
  2. Set up a bucket (R2 / S3) and an issuer for read-only keys, and copy the key rotation workflow.
  3. Run carla-pack publish <Pack>.tar.gz to upload and append to the manifest, then commit and push. The upload goes to R2 / S3 (carla-pack sends it directly as a multipart upload) or to Hugging Face (pip install 'carla-pack-registry[huggingface]', through huggingface_hub).

Development

uv venv && . .venv/bin/activate
uv pip install "maturin>=1.9,<2" pytest "moto[server]==5.2.5" boto3 "huggingface_hub>=0.32"
maturin develop            # build the Rust core and install carla_pack_registry
cargo fmt --check && cargo clippy --all-targets --features python -- -D warnings
cargo test                 # Rust: the official SigV4 test vectors, every flow against mock GitHub / S3 servers, extraction safety
pytest                     # Python: the CARLA side (mount / unmount order) and E2E with moto (S3 with IAM auth) + a fake GitHub
maturin build --release    # wheel (abi3: one wheel for Python 3.10 and later)

PyPI releases are driven by PR labels. Merge a PR with exactly one release:major|minor|patch label and .github/workflows/release.yml bumps the version, tags, creates the GitHub Release and publishes to PyPI (docs/release.md).

Documentation

Document Contents
docs/architecture.md How it works, the manifest and key file formats, differences from the old Registry server
docs/security.md Trust boundaries, revocation, residual risks
docs/pack-repository.md How to create a pack repository (R2 / AWS / other S3-compatible storage / Hugging Face / Google Drive)
docs/release.md How carla-pack-registry is released to PyPI (label-driven, Trusted Publishing)

License

Apache License 2.0.

Metadata

Release files for carla-pack-registry 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carla-pack-registry 0.5.0
File Size Uploaded Provenance Actions
carla_pack_registry-0.5.0.tar.gz 131.2 kB With provenance Details for carla_pack_registry-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for carla-pack-registry 0.5.0
File Actions
carla_pack_registry-0.5.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for carla_pack_registry-0.5.0-cp310-abi3-win_amd64.whl
carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl
carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl
carla_pack_registry-0.5.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for carla_pack_registry-0.5.0-cp310-abi3-macosx_11_0_arm64.whl
carla_pack_registry-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for carla_pack_registry-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 16.2 MB

Release files / carla_pack_registry-0.5.0.tar.gz

Download URL carla_pack_registry-0.5.0.tar.gz
Size 131.2 kB
Tags Source
SHA-256 checksum
How to use checksums
40c6849503f011315aee3916de54be2f2dc6845eb22d8fc2741d4d2165795fdd
BLAKE2b-256 checksum
How to use checksums
a4b02d6bab12d7bea606207d1610449673723f8e7f565c099fdc3fee3963aa31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carla_pack_registry-0.5.0-cp310-abi3-win_amd64.whl

Download URL carla_pack_registry-0.5.0-cp310-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d4215f6ded3bceadaf3744d9dc310ef78fc7d86baf0d6ea9c1ad60137bd2223d
BLAKE2b-256 checksum
How to use checksums
8a2fa4285d7d91f75d2efb0ca8f78069307114cbe9f1a7053f6792f564092041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
b41248695ecce322c3db8d0d6343c6ea41bc8e4f5af40b8efcab72a13be846ed
BLAKE2b-256 checksum
How to use checksums
bc87e7b176a1049775468b966c7ecffdc81f7b8f6a20c59ce893c3bb87ad6f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL carla_pack_registry-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2751b2b121e189551e8f3d90fdbcaa66e618013b34aa11b567816402d4937bf5
BLAKE2b-256 checksum
How to use checksums
a79a9d02375b6099bc5956748f956a6f3ea48ecacf95cc0af26c1eedd99a3b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carla_pack_registry-0.5.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL carla_pack_registry-0.5.0-cp310-abi3-macosx_11_0_arm64.whl
Size 3.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c35f78df4e93de4089b55b49ebd7e0cee3bd0c3c334b8625d635d9baf8b5c141
BLAKE2b-256 checksum
How to use checksums
7b114a49984b38adf07fb7d182ffa8711957caf8f77f978042249f4d7d7db551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carla_pack_registry-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL carla_pack_registry-0.5.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
23ebb35098f803b27080084b9b8b83e94f89815daf814afce07295e19461d98b
BLAKE2b-256 checksum
How to use checksums
9fa59fa82f060773939f1ebbb86e1610ac7ec2a5500f27262c3c31e355e00464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for carla-pack-registry 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for carla_pack_registry-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page