{ "info": { "author": "Justin Poliey", "author_email": "justin.d.poliey@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet", "Topic :: Utilities" ], "description": "===\nUrp\n===\n\n**urp** parses URLs.\nIt's a command-line tool that enables users to extract and modify their features.\nIt knows all about\nschemes,\nauthentication,\nhosts,\nports,\npaths,\nparameters,\nquery strings,\nand\nfragments.\n\nBasic Usage\n-----------\n\n**urp** takes URLs as input,\nand outputs URLs or features of URLs depending on its options.\nIt takes URLs specified as arguments and newline-delimited URLs from standard input.\n\n::\n\n $ urp -s https://google.com\n https\n $ echo 'https://google.com' | urp -s\n https\n $ urp -D /search -Q q=urp 'https://google.com'\n https://google.com/search?q=urp\n\nPrinting URL Features\n---------------------\n\nIf any of these options are specified,\n**urp** will abandon its default behavior of printing full URLs\nand instead print the features specified.\n\n-s, --print-scheme Print scheme.\n-u, --print-username Print username.\n-w, --print-password Print password.\n-o, --print-hostname Print hostname.\n-p, --print-port Print port.\n-a, --print-authority\n Print authority.\n The authority is comprised of the `username`,\n `password`,\n `hostname`,\n and\n `port`.\n-d, --print-path Print path.\n--print-params Print params.\n-q, --print-query Print query string.\n--print-query-names Print query parameter names.\n--print-query-values Print query parameter values.\n-f, --print-fragment Print fragment.\n-g QUERY, --print-query-value QUERY\n Print value of query parameter.\n\nModifying URLs\n--------------\n\nModifying features of URLs will cause the changes to be reflected in the output,\nboth through the printing options and through default behavior.\n\n-S SCHEME, --scheme SCHEME\n Set scheme to `SCHEME`.\n-U USERNAME, --username USERNAME\n Set username to `USERNAME`.\n-W PASSWORD, --password PASSWORD\n Set password to `PASSWORD`.\n-O HOSTNAME, --hostname HOSTNAME\n Set hostname to `HOSTNAME`.\n-P PORT, --port PORT Set port to `PORT`.\n-D PATH, --path PATH Set or append path as `PATH`.\n If `PATH` begins with a ``/`` then the path is replaced.\n Otherwise it is appended to the existing path.\n--params PARAMS Set params to `PARAMS`.\n--query QUERY Set query to `QUERY`.\n-Q PAIR, --append-query PAIR\n Append query parameter. `PAIR` should have the format ``NAME=VALUE``.\n-F FRAGMENT, --fragment FRAGMENT\n Set fragment to `FRAGMENT`.\n\nAltering Behavior\n-----------------\n\nBy default,\n**urp** outputs URL-encoded fields where necessary\nand preserves the order of query parameters.\n\n--no-url-encoding Disable URL encoding in output.\n--no-query-params Disable query parameter parsing.\n **urp** will not try to parse `NAME=VALUE` pairs from queries.\n--sort-query Sort query parameters by name in output.\n-x QUERY, --ignore-query QUERY\n Ignore query parameter.\n\nEach URL processed emits a `record`,\nconsisting of multiple `fields`.\nBy default,\nrecords are separated with newlines\nand fields are separated with spaces.\nTo change the record separator,\nset the ``RS`` environment variable.\nTo change the field separator,\nset the ``OFS`` environment variable.", "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/jdp/urp", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "urp", "package_url": "https://pypi.org/project/urp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/urp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jdp/urp" }, "release_url": "https://pypi.org/project/urp/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A tool to extract and modify URL features", "version": "0.1.1" }, "last_serial": 955513, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "87036c2d04494c1f7404223d7328c8d3", "sha256": "47482df8f6ed87abafe714ba4044bb348460ba9fdc5f63342882bf777f58cf49" }, "downloads": -1, "filename": "urp-0.1.0.tar.gz", "has_sig": false, "md5_digest": "87036c2d04494c1f7404223d7328c8d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4823, "upload_time": "2013-12-27T17:39:16", "url": "https://files.pythonhosted.org/packages/3b/45/3179745c9311ed1459fddadafa0d2a11cf2e7bcba6284c17c981fdd8e7bc/urp-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e6370acf7571963049fea204aa6fbb30", "sha256": "5f93b1e1bea93ef2b59800a098d8166dbb4c14f2e4893c1ec9efc3f8c754c658" }, "downloads": -1, "filename": "urp-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e6370acf7571963049fea204aa6fbb30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4797, "upload_time": "2013-12-27T17:40:40", "url": "https://files.pythonhosted.org/packages/58/cf/1993f23fb87b77c919ef222b69d2b64102eaede97511fc5740ff552d4385/urp-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e6370acf7571963049fea204aa6fbb30", "sha256": "5f93b1e1bea93ef2b59800a098d8166dbb4c14f2e4893c1ec9efc3f8c754c658" }, "downloads": -1, "filename": "urp-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e6370acf7571963049fea204aa6fbb30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4797, "upload_time": "2013-12-27T17:40:40", "url": "https://files.pythonhosted.org/packages/58/cf/1993f23fb87b77c919ef222b69d2b64102eaede97511fc5740ff552d4385/urp-0.1.1.tar.gz" } ] }