Ease developers to use queue/threads functions to handle big amount of data
Project description
pyhacks
Python module to ease writing scripts go over big amount of data in order to perform the same actions. A simple preconfigured threads and queue management and more hacking utils
Will elaborate more when it will get mature enough :)
code example
from pyhacks import Logger, QueueThreads, Parser
if __name__ == "__main__":
def handleItem(item):
content = "{},{}".format(item.get("Name"),item.get("Phone 1 - Value"))
logger.log(content, "output.txt")
return True
logger = Logger()
parse = Parser()
x = QueueThreads(handleItem, 25, logger, True)
contacts = parse.csv("contacts.csv")
for contact in contacts:
x.put(contact)
x.finish()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhacks-1.0.8.tar.gz
(3.6 kB
view hashes)