You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M4: Python client in mat — Material.textures works end-to-end #8
Wire into Material.properties.pbr.textures — lazy load
on first access
Material.prefetch(source, tier) — bulk download
MAT_VIS_CACHE_DIR env var support
cache=False parameter for no-cache mode
Integration test against a local test Parquet (from M1)
Test cases
deftest_texture_fetch_and_cache(tmp_path):
# Serve a test parquet + rowmap on localhostmat=Material("ambientcg/Metal064", tier="1k",
cache_dir=tmp_path)
png=mat.properties.pbr.textures.colorassertpng[:4] ==b'\x89PNG'# Second access hits cache, not networkpng2=mat.properties.pbr.textures.colorassertpng2==pngdeftest_prefetch(tmp_path):
Material.prefetch(source="ambientcg", tier="1k",
cache_dir=tmp_path)
# All rowmap entries should be cachedcached=list(tmp_path.glob("ambientcg/1k/*/color.png"))
assertlen(cached) >0
Activity
gerchowl commentedon Apr 17, 2026
mat client working against v2026.04.0 manifest. PR #50 shipped installable package.