Skip to main content

Courier from Hello Girl

texture-courier

simple CLI program and high-level python API to interact with the second life texture cache.

if you're looking for a GUI, you may be interested in TextureFriend.

goals

  • output the entire texture cache in a commonly readable format
  • support all platforms that support python
  • be as fast as it is practical to be
  • use few dependencies

non goals

  • no gui, no bells and whistles
  • no option to transform outputs into other formats, as i believe this is better covered by other programs

use CLI

install texture-courier from PyPI. conventionally this is done with pip. but uv tool install gives you proper dependency isolation without having to worry about environments.

# with uv (preferred)
uv tool install texture-courier

# with pip
pip install texture-courier

then, run it on the command line like

texture-courier

texture-courier will attempt to find any texture caches on the system automatically. if this does not work, find your texture cache and provide it like so

texture-courier /Users/meri/Library/Caches/Firestorm_x64/texturecache

this dumps the contents of the cache to a directory (by default, to
./texturecache).

see texture-courier --help for other options.

use API

from texture_courier import list_texture_caches, TextureCache

caches = list_texture_caches()
# [PosixPath('/Users/meri/Library/Caches/Firestorm_x64/texturecache')]

cache = TextureCache("/Users/meri/Library/Caches/Firestorm_x64/texturecache")
# <TextureCache /Users/meri/Library/Caches/Firestorm_x64/texturecache, 26478 textures, 3 GB>

# the cache implements an iterator, which is the main way to list textures
for tex in cache:
    print(tex)

# <Texture 93ff0fc0-731a-b04e-8a66-b6489c059e04, 2026-08-21 22:39:00, 20 KB, complete=True>
# <Texture eb2667d6-dbc8-7188-ea0e-2bc8bc8da19b, 2026-08-21 22:39:00, 39 KB, complete=True>
# <Texture f75d9ea7-2c6f-3d11-5645-7c7c0a195721, 2026-08-21 22:38:58, 597 bytes, complete=True>
# ...

# the api implements __getitem__, so you can interact with it like you would a list
first_ten = cache[:10]

for tex in first_ten:
    if tex.complete:  # some textures are not downloaded
        with open(f"{tex.uuid}.jp2", "wb") as f:
            f.write(tex.jpeg_2000())

thumbnails

the viewer keeps a small decoded copy of each texture in a FastCache.cache beside the cache. texture.thumbnail can read it

thumb = cache[0].thumbnail

# <Thumbnail 32x32, 3 components, discard 5>

print(thumb.dimensions)  # Dimensions(width=32, height=32)

with open(f"{tex.uuid}.png", "wb") as f:
    f.write(thumb.png())

thumb.pixels holds the raw rows if you would rather encode them yourself. the rows run bottom up, unlike most image formats which treat row 0 as the top of the image so you may need to reverse it before using.

refer to the api.py file for additional methods and helpers.

hacking

i use pip install --editable . to install texture-courier as an editable package, which allows the cli to be used like it was installed from pip.

tests/ contains unit tests and they may be executed like this:

uv run pytest

benchmarks/ contains profiling tests and are invoked like so:

CACHE_DIR=/Users/meri/Library/Caches/Firestorm_x64/texturecache uv run pytest benchmarks

CACHE_DIR should be a path to a texture cache, ideally one that is full to represent a real benchmark. this repo contains no fixture for this as the data would be too large to store on git.

lltexturecache.h is the authoritative implementation of the texture cache, which much of this implementation was engineered out of.

prior art

Metadata

Release files for texture-courier 0.3.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 texture-courier 0.3.0
File Size Uploaded Provenance Actions
texture_courier-0.3.0.tar.gz 23.1 kB Without provenance Details for texture_courier-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for texture-courier 0.3.0
File Interpreter ABI Platform Actions
texture_courier-0.3.0-py3-none-any.whl Python 3 none any Details for texture_courier-0.3.0-py3-none-any.whl

Total release size: 43.1 kB

Release files / texture_courier-0.3.0.tar.gz

Download URL texture_courier-0.3.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
52a8f942b4b3caf54ff299b293ef8cae0523a41bb72b736d20497c1217944661
BLAKE2b-256 checksum
How to use checksums
fa32832a81d27cd48e41978986336fe4cfabffab0736a08fc59c767063e84bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / texture_courier-0.3.0-py3-none-any.whl

Download URL texture_courier-0.3.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e02df5961a514c39d19753058dfa1bd954afbd11e8d66d19f6da4ae716952ad
BLAKE2b-256 checksum
How to use checksums
233c792013eb7c2b2f672a21c57c434e712755776584e7c5a0d6087b68571ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for texture-courier 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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