ImageCloud found! Sort of…

I was searching through one of the paste-bin sites out there ( or deadbeefbabe) and found part of ImageCloud. The only problem, it’s not a big part. It still saves me about half an hour though. Yeah, I know, I should be sleeping for math class, but I’m not tired for some reason. As always, what ever code you find here is subject to GPL restrictions. Do what you want with it. Use it, hack it, however, if the code causes you problems, I am NOT responsible in any way shape or form. 🙂

#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-  

# Program : ImageCloud - A Python Photo TaggerDB
# Author  : Kristofer White
# E-Mail  :  

## Import Modules And Such ##
import os, sys, glob, pickle  

class iCloud(object):
    def __init__(self):
        print "Do you want to [B]rowse for, [A]dd images, or [Q]uit?"
        ans = raw_input("[B/A/Q] ?")
        if ans.lower() == "b":
            Browse.dbQuery(Browse(), tagDictDB, dbPath)
        elif ans.lower() == "a":
        elif ans.lower() == "q":
            self.dbPickle(tagDictDB, dbPath)
            print "Unrecognized response! Try again"
    def dbPickle(self, tagDB):
        fout = open(os.path.expanduser("~/.imagecloudDB"), "w")
        pickle.dump(tagDB, fout)
    def dbUnPickle(self):
        fin = open(os.path.expanduser("~/.imagecloudDB"), "r")
        tagDB = pickle.load(fin)
        return tagDB  

class Browse(object):
    def dbQuery(self, tagDictDB, dbPath):
        """ Search Gallery for Tag """)
    def tagCloudGen(self):
        """ Generate the Tag Cloud """  

class Add(object):
    def __init__(self):
        """ Ask for image dir """
        path = raw_input("Path ?")
    def folderAdd(self, path):
        """ Add folder passed via path """
        print path
	def tagger(self, list):
		""" Tag files from path and pickle """  

c = iCloud()
Explore posts in the same categories: f/oss, ImageCloud, python

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: