Table Of Contents

This Page

airframe package

Submodules

airframe.airframe module

class airframe.airframe.AirFrame[source]

Bases: object

flickr_mode()[source]
get_options(argv)[source]

Parse the command-line options and set the following object properties:

I really need to convert this to use docopt!

Parameters:

argv – usually just sys.argv[1:]

Returns:

Nothing

Variables:
  • debug – Enable logging debug statements
  • verbose – Enable verbose logging
go(argv)[source]
local_dir_mode()[source]
airframe.airframe.main()[source]

airframe.flashair module

class airframe.flashair.FlashAir(hostname)[source]

Bases: object

Interface to the REST API of the Toshiba FlashAir card. See the documentation to their API at:

copy_and_rename_file(filename)[source]
Returns:hashed filename in 8.3 format with JPG extension
delete_file(filename)[source]
get_file_list()[source]

The SD card returns a list that looks like the following:

WLANSD_FILELIST /DCIM/100__TSB,FA000001.JPG,128751,33,16602,18432 /DCIM/100__TSB,FLASH3.JPG,370952,32,0,0 /DCIM/100__TSB,FLASH5.JPG,287034,32,0,0 /DCIM/100__TSB,FLASH6.JPG,387163,32,17295,31508 /DCIM/100__TSB,FLASH7.JPG,533998,32,17295,31520

set_timestamp(t)[source]
Parameters:t (time.struct_time) – The time stamp
sync_files_on_card_to_list(filename_list, force=False)[source]

Delete any files on the SD card that are not present in the list. Upload any files not already present on the card (based on name). Ignore any files already present on the card.

upload_file(filename)[source]
airframe.flashair.main()[source]

airframe.flickr module

class airframe.flickr.Flickr[source]

Bases: object

get_auth2()[source]
get_recent(count, download_dir='photos')[source]

get the most recent photos

get_tagged(tags, count, download_dir='photos')[source]

Get photos with the given list of tags

read_keys()[source]

Read the flickr API key and secret from a local file

set_keys(key, secret)[source]
class airframe.flickr.Photo(photo_element)[source]

Bases: object

download_photo(dirname, cache=False, tgt_filename=None)[source]
airframe.flickr.main()[source]

airframe.version module

Module contents