Skip to main content

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


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

Uploaded Source

File details

Details for the file pyhacks-1.0.8.tar.gz.

File metadata

  • Download URL: pyhacks-1.0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyhacks-1.0.8.tar.gz
Algorithm Hash digest
SHA256 e751abec1415911ae91d00f3f9db44c67addba3e65753c4f0de3d8cd795d276f
MD5 75bca19b0deb4a25d8b960697554ff81
BLAKE2b-256 18508c3ffdd2bc37918ec46163a5eab8f7a6cc1736dc574fb61e347fb2e1c66e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page