66. plugins.web — Tools to access files from the web

This module provides some convenience functions to access files from the web. It is currently highly biased to downloading 3D models from archive3d.net, unzipping the files, and displaying the .3ds models included.

66.1. Functions defined in module plugins.web

plugins.web.download(url, tgt=None)[source]

Download a file with a known url

If no tgt is specified, a temp one is created. The user is responsible to delete it. The full path to the file is returned.


List the files in a zip archive

Returns a list of file names

plugins.web.zipExtract(filename, members=None)[source]

Extract the specified member(s) from the zip file.

The default extracts all.


Return the .3ds files in a zip file


Import and show a 3ds file

Import a 3ds file, render it, and export it to th GUI


Show the .3ds models in a zip file.

fn: a zip file contiaining one or more .3ds models.


Download a file fron archive3d.net by id number.


Show a model from the archive3d.net database.

id: string: the archive3d id number