{ "info": { "author": "Ashwini Purohit", "author_email": "geek.ashwini@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "hackr: Unicorn library for Hackathons\n=====================================\n\nAn All-in-one library, safe for hackathon consumption.\n\nYou can perform every task using a single library.\n\nFeatures\n--------\n\nhackr currently supports the following features:\n\n- Generate random names\n- Generate random address\n- Generate random dates\n- Generate random digits\n- Generate random characters\n- Generate QRCode\n- Scrape any webpage\n- Send web requests (GET, POST, PUT)\n- Parse data in JSON\n- Send Emails\n\nhackr officially supports Python 2.7 currently.\n\nUsage\n-----\n\nGenerate Random names\n\n\n >>> import hackr\n >>> a = hackr.generator.names(5)\n >>> print a\n [u'Mr. Thomas Wolf MD', u'Valerie Turner', u'Maria Knight', u'Raymond Shelton', u'Erica Glenn']\n\nGenerate Random dates\n\n >>> import hackr\n >>> a= hackr.generator.dates(5,1995,2017)\n >>> print a\n ['1998-08-17 00:00:00', '2007-03-25 00:00:00', '2003-01-27 00:00:00', '2014-10-13 00:00:00', '1995-02-10 00:00:00']\n\nGenerate Random json data\n\n >>> import hackr\n >>> a = hackr.object_generator.generate_json(4, name='names', address='address')\n >>> print a\n '[{\"name\": \"Jeffery Russell\", \"address\": \"USNV Bradley\\\\nFPO AA 49483-3369\"}, {\"name\": \"Caitlin Wong\", \"address\": \"4622 Richard Summit Apt. 325\\\\nHollow\n aystad, OH 88464\"}, {\"name\": \"Adrian Pugh\", \"address\": \"977 Hill Meadows Suite 944\\\\nVictoriaton, PR 58653-2191\"}, {\"name\": \"Christopher Schaefer\", \"add\n ress\": \"62215 Charles Cape Apt. 039\\\\nHaleymouth, ND 82518-8938\"}]'\n\nGenerate QRCode\n\n >>> import hackr\n >>> # default save to current path\n >>> img = hackr.image.qrcode(\"https://github.com/pytorn/hackr\")\n >>> # or manually assign dest path\n >>> img = hackr.image.qrcode(\"https://github.com/pytorn/hackr\", dest_path=\"/tmp/hackr_qrcode.png\")\n\nScrape a webpage\n\n >>> import hackr\n >>>#To get the response as JSON(if the url returns a JSON response, otherwise an exception is returned)\n >>> json_response = hackr.web.scrape(\"https://api.github.com/users/ashwini0529\", type=\"json\")\n >>>#To get the response as XML\n >>> xml_response = hackr.web.scrape(\"https://api.github.com/users/ashwini0529\", type=\"xml\")\n\nMake Web Requests\n\n >>> import hackr\n >>> #If you want the response as a string\n >>> a= hackr.web.request(\"http://httpbin.org/post\", method=\"post\", params={'a':'b'})\n >>> If you want the response as JSON\n >>> a= hackr.web.request(\"http://httpbin.org/post\", method=\"post\", params={'a':'b'}, type=\"JSON\")\n\nSend Emails\n\n >>> import hackr\n >>> #Enter your GMAIL email address and password in the parameters email, and password.\n >>> hackr.actions.email(\"Hey there\", email=\"foo@bar.com\", password=\"foobar\", to=\"bar@foo.com\", subject=\"Foo Bar\")\n\n \nContribution Guidelines\n-----------------------\n\n- Fork the repository\n- Find an issue or create one\n- Create a branch(we prefer to name it patch)\n- Inform everyone that you're working on the issue\n- Send a pull request with proper explanation of what you did\n- Wait for getting it reviewed.\n- We'd be glad to merge your PR\n\nMade with \u2665 by: `PyTorn `_ | `Ashwini Purohit `_", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pytorn/hackr", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "hackr", "package_url": "https://pypi.org/project/hackr/", "platform": "", "project_url": "https://pypi.org/project/hackr/", "project_urls": { "Homepage": "https://github.com/pytorn/hackr" }, "release_url": "https://pypi.org/project/hackr/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "A unicorn for Hackathons", "version": "0.1.2" }, "last_serial": 3231287, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "c6f831b0cc6c524d58c013e6233c3722", "sha256": "196b8544844262b51362205f539189c63eaa70982156144a89b092ca84be81ac" }, "downloads": -1, "filename": "hackr-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c6f831b0cc6c524d58c013e6233c3722", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5862, "upload_time": "2017-09-26T22:50:37", "url": "https://files.pythonhosted.org/packages/1d/4f/d50aac92fb0f204b2c11ee5c1c677c59e4d911ab50ae2f3d2e91bf15f6c8/hackr-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "607df655b62c2dc7945ddad3b4819a6c", "sha256": "04808a8b7a6395102d40f964524b1ac33f657e3dcd4b326f45d4c34bce88fd39" }, "downloads": -1, "filename": "hackr-0.1.1.tar.gz", "has_sig": false, "md5_digest": "607df655b62c2dc7945ddad3b4819a6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7482, "upload_time": "2017-09-26T22:50:39", "url": "https://files.pythonhosted.org/packages/cb/ff/6e16bae6418cb4d4d4b88e0d0e274cc1309296defd3ba63134521e636f2d/hackr-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "929ec16012170b1db861c0933e975bdd", "sha256": "c79afc3eba8ab8e2f22000b18af0e833e4ba42151b8547754c9c6c06ddd9c3c2" }, "downloads": -1, "filename": "hackr-0.1.2.tar.gz", "has_sig": false, "md5_digest": "929ec16012170b1db861c0933e975bdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10362, "upload_time": "2017-10-06T19:16:31", "url": "https://files.pythonhosted.org/packages/78/d8/a7bab3b36e847ec80259a446a60d53095474118a420a3b78b4bd51c8a5d8/hackr-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "929ec16012170b1db861c0933e975bdd", "sha256": "c79afc3eba8ab8e2f22000b18af0e833e4ba42151b8547754c9c6c06ddd9c3c2" }, "downloads": -1, "filename": "hackr-0.1.2.tar.gz", "has_sig": false, "md5_digest": "929ec16012170b1db861c0933e975bdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10362, "upload_time": "2017-10-06T19:16:31", "url": "https://files.pythonhosted.org/packages/78/d8/a7bab3b36e847ec80259a446a60d53095474118a420a3b78b4bd51c8a5d8/hackr-0.1.2.tar.gz" } ] }