66. plugins.web — Tools to access files from the web — pyFormex 1.0.5 documentation

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

  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.

`plugins.web.` `zipList`(filename)

  List the files in a zip archive

  Returns a list of file names

`plugins.web.` `zipExtract`(filename, members=None)

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

  The default extracts all.

`plugins.web.` `find3ds`(fn)

  Return the .3ds files in a zip file

`plugins.web.` `show3ds`(fn)

  Import and show a 3ds file

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

`plugins.web.` `show3dzip`(fn)

  Show the .3ds models in a zip file.

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

`plugins.web.` `download3d`(id)

  Download a file fron archive3d.net by id number.

`plugins.web.` `show3d`(id)

  Show a model from the archive3d.net database.

  id: string: the archive3d id number