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).
  • 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.

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
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)

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)
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.3.2

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.3.2
File Size Uploaded Provenance Actions
carla_pack_registry-0.3.2.tar.gz 112.7 kB With provenance Details for carla_pack_registry-0.3.2.tar.gz

Built distributions (wheels)

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

Total release size: 15.9 MB

Release files / carla_pack_registry-0.3.2.tar.gz

Download URL carla_pack_registry-0.3.2.tar.gz
Size 112.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2eae2ff70b016f99485b2d489453e904f818068c8dec9833dd5106739bfbe02
BLAKE2b-256 checksum
How to use checksums
29790731e320427dff64c2f0467a25a8c30cc928a0e2a86d00cb7bb865ea1355
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 18, 2026.

Transparency log

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

Download URL carla_pack_registry-0.3.2-cp310-abi3-win_amd64.whl
Size 3.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6f80179644e0737e0ba94f05334ac6c5d16ad7461197c0f5540a1f5a46995f1f
BLAKE2b-256 checksum
How to use checksums
90fc96010494fced7d1e6c891faa49bd33fd884d46af139971ad2850697c2f86
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 18, 2026.

Transparency log

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

Download URL carla_pack_registry-0.3.2-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a914d6b873f57b3ed712048725e01b3f7cfccd47461e6986548f99b547b29d7f
BLAKE2b-256 checksum
How to use checksums
8e59a3b358629ab6b2923d2a24b7273a3c777c3eb5ace40db55115d7e8efffc9
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 18, 2026.

Transparency log

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

Download URL carla_pack_registry-0.3.2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 3.1 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
693a2417eaf1c38bccc538a36bb192d46ffb4ba949defef32a71731963002d56
BLAKE2b-256 checksum
How to use checksums
e92fe74cd12802b275fa1aa5d05d7427ef96332445407d04e0d3f66288ac4345
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 18, 2026.

Transparency log

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

Download URL carla_pack_registry-0.3.2-cp310-abi3-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
34417fe96cc0d99918a6a03093d11fc8083787de63c427f60a17f692a887d8cc
BLAKE2b-256 checksum
How to use checksums
4b2b2ac08279afaf892086633d94f8703bb9870ae5adf91ae16a6ea25b8b205d
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 18, 2026.

Transparency log

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

Download URL carla_pack_registry-0.3.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a837e5c6f2895226d8dda7601f5a2db344bd06464c9847a349c21f40d63dcbc9
BLAKE2b-256 checksum
How to use checksums
70159d0d4839ff13ed947bd1907c110a8424dec4cdc1daea91f73105ed1ed8e7
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 18, 2026.

Transparency log

Security for carla-pack-registry 0.3.2

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.3.2.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 18, 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