from pathlib import Path from zipfile import ZipFile, ZIP_DEFLATED root = Path("/mnt/data/plane-t-netlabel") root.mkdir(exist_ok=True) html = r''' plane--t :: independent electronic music archive
PLANE--T ELECTRONIC MUSIC DISTRIBUTIONARCHIVE STATUS: PARTIALLY RECOVERED

plane--t

independent electronic music / mp3 archive

EST. 2001
RECORDINGS & DISTRIBUTION
ISSUE 001—010

welcome / recovered index

plane--t :: mp3 archive

Independent electronic music distribution. A small collection of recordings, experiments and collaborations assembled between 2001 and 2005.

ARCHIVE NOTE — 14.08.2005
The original site is no longer maintained. Some links and files were lost during the final server migration. This mirror preserves the catalogue information currently available.

Styles represented include rhythmic electronica, ambient, breakcore, microsound, dub techno and other difficult-to-classify material.

CURRENT CATALOGUE: 010 RELEASES / 010 ARTISTS / 001 INCOMPLETE COMPILATION

recent additions to the archive

cat.artist / releaseyear

message from the administrator

plane--t was never intended to be particularly organised. The idea was to make a place where people could exchange tracks without worrying too much about genre, equipment or whether something was finished.

— p.t. / archive administrator / 2005

''' (root / "index.html").write_text(html, encoding="utf-8") (root / "README.txt").write_text("""plane--t netlabel archive ======================== Open index.html in a modern browser. No server, framework, build step or internet connection is required. Included: - Home / archive index - Artist directory with live filtering - Release catalogue and individual release pages - Fictional forum archive - About page Customising: - Artist and release data are in the `artists` array near the bottom of index.html. - Replace the generated CSS cover blocks with real cover images if desired. - To add MP3s, create an `audio` folder and add audio files. Then update the release detail template in openRelease() to include . All artists, biographies, release histories and forum posts are fictional. The external links in the sidebar are real reference links. """, encoding="utf-8") zip_path = Path("/mnt/data/plane-t-netlabel.zip") with ZipFile(zip_path, "w", ZIP_DEFLATED) as z: z.write(root / "index.html", "plane-t-netlabel/index.html") z.write(root / "README.txt", "plane-t-netlabel/README.txt") print(f"Created: {root / 'index.html'}") print(f"Created: {zip_path}")