lair.records#

Files, downloads and caching.

Download by FTP (ftp_download()) or with wget, unzip, list the files in a folder that match a pattern, read a KML file, and cache a function’s results in a pickle file (Cacher).

Functions

ftp_download

Recursively download files from an FTP server.

list_files

Return a list of files in the specified directory that match the specified pattern.

read_kml

Read kml file from path

unzip

Unzip a file into a folder.

wget_download

Download multiple files from given URLs using wget and extract them if they are ZIP files.

Classes

Cacher

A class that caches function results to a file for future use.