{ "info": { "author": "Jared Wright", "author_email": "jawerty210@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# res\nA tiny command-line HTTP client. Easily interact with HTTP calls at a faster speed within your terminal. Built on top of the requests library and meant to be a command line wrapper for requests. \n\nCurrent version: v0.1.7\n\n```\nres v0.1.7\n\nHTTP it up with python. Use res to make command line http calls. I made this to make\nthe development of my REST API to be a little bit easier.\n\nUsage:\n res (-h | --help)\n res (-v | --version)\n res [options]\n\nOptions:\n -d --data= Send request data\n -H --HEADER=
Defines custom headers\n -a --auth= Authenticaton with 'user' and 'password' keys\n -p --params= Send request parameters\n -b --bytes Returns content response in bytes\n -r --raw Returns content response in raw format\n -j --json Decodes content response from json\n -c --cookie= Defines cookies\n -x --proxy= Sends proxy with protocal as key and the port as value\n -i --include Include headers\n -h --help Show this screen.\n -v --version Show version.\n```\n\n# Install\nTo download and install res, you must follow the instructions below.\n\n### Install via PIP\n```\n$ pip install res\n```\n\n### Install via setup.py\nFirst you need to get a copy of the source. I'm going to use git and clone it to my local machine. \n\nClone the repository into a folder\n```\ngit clone https://github.com/jawerty/res.git res\n```\n\nInstall with setup.py\n```\n$ cd res\n$ python setup.py install\n```\n\n# Usage\nExample GET, POST, PUT and DELETE calls\n```\n$ res GET http://example.com\n\n$ res POST http://example.com\n\n$ res PUT http://example.com\n\n$ res DELETE http://example.com\n```\n\nInclude headers\n```\n$ res GET http://example.com -i\n```\n\nSend request data to the body\n```\n$ res POST http://example.com -d \"{\n\t\t\t\t\t\t'Hello':'World',\n\t\t\t\t\t\t'REST':'API'\n\t\t\t\t\t}\"\n```\n\nAuthorization\n```\n$ res POST http://example.com -a \"{\n\t\t\t\t\t\t'user':'jawerty',\n\t\t\t\t\t\t'password':'noneofyourbusiness'\n\t\t\t\t\t}\"\n```\n\nParameters\n```\n$ res POST http://example.com -p \"{ 'q':'names' }\" \n```\n\n### Change data response content (new in v0.1.7)\n\nBinary response -> bytes \n```\n$ res GET http://example.com -b\n```\nor\n```\n$ res GET http://example.com --bytes\n```\n\n\nRaw socket response -> raw\n```\n$ res GET http://example.com -r\n```\nor\n```\n$ res GET http://example.com --raw\n```\n\n\nJSON response decoder -> json\n```\n$ res GET http://example.com -j\n```\nor\n```\n$ res GET http://example.com --json\n```\n\n### Interactive Console\nThe interactive console current (v0.1.7) cannot pass any arguments that require dictionaries (i.e. --data, --proxy, --cookie, etc.). However, arguments like --bytes, --encoding, --raw, etc., are allowed.\n```\n$ res console\n>>> get http://example.com -e `// -e is for encoding`\nUTF-8\n>>> get http://example.com\n`response content....`\n>>>\n```\n\nThere are even more HTTP options that are compatible with res. Run the command at `$ res -h` to see all of the functions res wraps around.\n\n# Contact\nIf you would like to contact me for further information on the project, see the info below.\n\nEmail: jawerty210@gmail.com\n\nGithub: jawerty\n\nTwitter: @jawerty\n\nBlog: \n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jawerty/res", "keywords": "res http rest client command line tool cli minimalistic API http calls", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "res", "package_url": "https://pypi.org/project/res/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/res/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jawerty/res" }, "release_url": "https://pypi.org/project/res/0.1.7/", "requires_dist": null, "requires_python": null, "summary": "res is a tiny command line HTTP client", "version": "0.1.7" }, "last_serial": 798897, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2c7c21f3ddaef52015a75a0c5a365f39", "sha256": "09f66916be19aa8ac5522fe9aaa98d61eecafd6b1ed953b032ef975401c86400" }, "downloads": -1, "filename": "res-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2c7c21f3ddaef52015a75a0c5a365f39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2268, "upload_time": "2013-02-22T01:22:55", "url": "https://files.pythonhosted.org/packages/2c/ea/3bce1cc5a8c98a39e39244d8e26ea41cf8ccfb5e549a5e7ae963eac1333f/res-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "870c353d86ef089479de0c31917379b7", "sha256": "e2989c25390ee87d839cd47d79139bc0a96d1aa1b44bf4223a51936d2713d6a8" }, "downloads": -1, "filename": "res-0.1.1.tar.gz", "has_sig": false, "md5_digest": "870c353d86ef089479de0c31917379b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2261, "upload_time": "2013-02-22T01:35:38", "url": "https://files.pythonhosted.org/packages/77/72/110758d2032d85423916232a0c9d5c87fc56f88b13d22c1d90233d16eb01/res-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b41cf1aa39c467218c682428adb8bd9c", "sha256": "eb41d92604aaa28d0e59a5098cb8d2f3f47d78042551187d5cb68672829c318d" }, "downloads": -1, "filename": "res-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b41cf1aa39c467218c682428adb8bd9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2270, "upload_time": "2013-02-22T21:54:11", "url": "https://files.pythonhosted.org/packages/cb/ec/41a57c4d4dd5e8b68eab6ca990b147ed4412dd52447893e6a6401a30f955/res-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "32d9e660fda2cc5fe168eb0933cc6539", "sha256": "2ecf8fefbb22abbb3b5306d111de5941b6974c33fd10fbd119dcd2b5ec1f24d6" }, "downloads": -1, "filename": "res-0.1.3.tar.gz", "has_sig": false, "md5_digest": "32d9e660fda2cc5fe168eb0933cc6539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2333, "upload_time": "2013-02-23T17:39:47", "url": "https://files.pythonhosted.org/packages/6c/04/1620bef1417ef065ba04262dffbc86a87d1a3376b5cb846e78934fdef3e7/res-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0fca03b8e851ab1088fc73389f4f08da", "sha256": "d95721f9627cf7d19cb5fb88092c22c86deaf89c774d905e651ba89ab6f0b361" }, "downloads": -1, "filename": "res-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0fca03b8e851ab1088fc73389f4f08da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2334, "upload_time": "2013-02-23T18:31:27", "url": "https://files.pythonhosted.org/packages/33/db/135fe09d10c3b9a63f56e30062b4d86fbdcec1b24248ea2d8a6303cad9c8/res-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2964d9e127eb9dc474bf7c928e39b57f", "sha256": "803cd181257bfbba9dd79eb3c8c8228d0f8f05b3565c282be962a4d8d51c6a9b" }, "downloads": -1, "filename": "res-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2964d9e127eb9dc474bf7c928e39b57f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2366, "upload_time": "2013-03-02T16:23:56", "url": "https://files.pythonhosted.org/packages/73/60/1ceb3153df799d8dd0b980b2a9a44086e08e79103d6695ee2c8a977b7026/res-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "a9588c9212ae2d49998b7863817e22a9", "sha256": "8329058ae9d8254439b01f489ade28c805594e6721075952de945e0e7d8daa2e" }, "downloads": -1, "filename": "res-0.1.6.tar.gz", "has_sig": false, "md5_digest": "a9588c9212ae2d49998b7863817e22a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2532, "upload_time": "2013-03-06T02:48:02", "url": "https://files.pythonhosted.org/packages/c7/8d/6780cc23879f3b407516ce1434476eaaa0cdc7e34ef16936c5d50d3b4230/res-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "6eaad1cd33f1f44a5920a26f0c4e0508", "sha256": "1f4b463214eb36bf080d1b2effd616a60b1943c07a6fea8ffd1017d70a643b55" }, "downloads": -1, "filename": "res-0.1.7.tar.gz", "has_sig": false, "md5_digest": "6eaad1cd33f1f44a5920a26f0c4e0508", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3821, "upload_time": "2013-03-13T05:44:42", "url": "https://files.pythonhosted.org/packages/46/60/1ea0f5cdcf4468236bec4356d937fb73210de80252de7ddfc1de4e0464be/res-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6eaad1cd33f1f44a5920a26f0c4e0508", "sha256": "1f4b463214eb36bf080d1b2effd616a60b1943c07a6fea8ffd1017d70a643b55" }, "downloads": -1, "filename": "res-0.1.7.tar.gz", "has_sig": false, "md5_digest": "6eaad1cd33f1f44a5920a26f0c4e0508", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3821, "upload_time": "2013-03-13T05:44:42", "url": "https://files.pythonhosted.org/packages/46/60/1ea0f5cdcf4468236bec4356d937fb73210de80252de7ddfc1de4e0464be/res-0.1.7.tar.gz" } ] }