{ "info": { "author": "Yonathan Klijnsma", "author_email": "admin@0x3a.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# hostparse\n`hostparse` - A command-line client for URL and hostname swizzling\n\n## Installation\n`hostparse` can be installed manually by cloning this repository, going to the main directory and typing:\n\n```\npip install .\n```\n\nOr it can be installed using PyPI:\n\n```\npip install hostparse\n```\n\n## Usage\n`hostparse` installs as a commandline utility and takes input from stdin. In essence hostparse has a few simple parseable items it can extract from a URL. This is the full list of items:\n\n* scheme\n* username\n* password\n* subdomain\n* domain\n* hostname\n* tld\n* port\n* path\n* params\n* query\n* fragment\n\nThese items can be used as 'swizzling' operators seperated by a comma (`,`). For example, lets say the input contains a url from which you want to extract just the registered domain with its tld you can do:\n\n```\nhostparse domain,tld\n```\n\nNow what is neat with these items is that the tool will match the shortest match without duplicates. This means that instead of typing `tld` you can also type `tl` or even `t` as there are no other items that would conflict. The same query as before can also be written as:\n\n```\nhostparse d,t\n```\n\nThe only thing to be careful of is the match, for example you can't use `p` for `port` as it will also match other items (the tool will warn you about this and simply return without processing data). You have to get the right match, `po` will work for `ports` however `pa` won't work woth `path` as it will also match `params` which means you have to use `pat` for path.\n\nAdditionally the data the tool outputs uses a delimiter based on the items you choose, so if you choose `domain` and `tld` it will be outputed as: `.`. You can change this delimiter value with the `-d` operator after you specify the items to filter out. If you don't want a delimiter you can specify it as `-d''`.\n\nOne extra thing to point out: the order of the items you specify is also how they are represented in the output.\n\n## Bugs & Features\n\nFeel free to open issues for features or bugs you've found or do a pull request and you will be rewarded somewhere later in life for it.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/0x3a/hostparse", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "hostparse", "package_url": "https://pypi.org/project/hostparse/", "platform": "", "project_url": "https://pypi.org/project/hostparse/", "project_urls": { "Homepage": "https://github.com/0x3a/hostparse" }, "release_url": "https://pypi.org/project/hostparse/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "A command-line client for URL and hostname swizzling", "version": "0.0.6" }, "last_serial": 5574822, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "43bde46577ae51095c5499e040b872ee", "sha256": "6cc57c0bd52bfa42a1c1b391d226bccc4262d3070f0088fb1fca6d3dda8b348c" }, "downloads": -1, "filename": "hostparse-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "43bde46577ae51095c5499e040b872ee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5128, "upload_time": "2019-05-29T23:25:50", "url": "https://files.pythonhosted.org/packages/ea/73/b6fab49d01ea503e043028d0686c4710f38ec65298293ce6212f95aee21e/hostparse-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "98ee352cf43247ef5d2768ad827b456b", "sha256": "f7e4c09c8cf8368160002f5acbda5b5751b3ed0f2b5d6ab16793fe621a14a5d6" }, "downloads": -1, "filename": "hostparse-0.0.2.tar.gz", "has_sig": false, "md5_digest": "98ee352cf43247ef5d2768ad827b456b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3624, "upload_time": "2019-05-29T23:25:53", "url": "https://files.pythonhosted.org/packages/36/15/fea1de92c02babeb8bf7a1ae7691b1970b3b2b6e5b272e5065912d58fffe/hostparse-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6a41606640274eb178c6080e2573cc24", "sha256": "3990ac83a28646b63d18487bf353bd3a2feb766a569beaa2a5ec4381140ded7b" }, "downloads": -1, "filename": "hostparse-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6a41606640274eb178c6080e2573cc24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3961, "upload_time": "2019-07-17T20:13:04", "url": "https://files.pythonhosted.org/packages/67/4e/9e39e7d15388295e5eb4aa738bacc91124a268e4c73bbb7ce74a43a77812/hostparse-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "32bb942a939d6ba032402c6d86580d3a", "sha256": "66dde2dba825b612b703b301e8b8d0dfc7a325bcb4cbab8eeeeddc75b1b87ab9" }, "downloads": -1, "filename": "hostparse-0.0.4.tar.gz", "has_sig": false, "md5_digest": "32bb942a939d6ba032402c6d86580d3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3795, "upload_time": "2019-07-18T16:39:34", "url": "https://files.pythonhosted.org/packages/3a/2a/089041e892882374882344d78c3517f10c64855d4b48087386332f749a8f/hostparse-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "3544e17a40edacd37abb23d285ffdfae", "sha256": "2de67e223de35ddcf8c4fc9d5ed868076dd78530eb9b2ee27d59d655a947faad" }, "downloads": -1, "filename": "hostparse-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3544e17a40edacd37abb23d285ffdfae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3844, "upload_time": "2019-07-23T21:38:33", "url": "https://files.pythonhosted.org/packages/3b/5d/d0dc92556a41117a48fa80c1688759b0431ca98771f5c25c32dd444e775e/hostparse-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "e9be5b0e336c3676f496b50a6fdb9b53", "sha256": "f8f6c4b67aee2b9d9bf9c371f2e76a43b37f1c2a0dd0f1c41b44323ad55a0181" }, "downloads": -1, "filename": "hostparse-0.0.6.tar.gz", "has_sig": false, "md5_digest": "e9be5b0e336c3676f496b50a6fdb9b53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3784, "upload_time": "2019-07-23T23:09:27", "url": "https://files.pythonhosted.org/packages/b8/ca/4fdc9cd3eb02061a075d1400b31108d2b83c52cc813e0ead616febc0316b/hostparse-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e9be5b0e336c3676f496b50a6fdb9b53", "sha256": "f8f6c4b67aee2b9d9bf9c371f2e76a43b37f1c2a0dd0f1c41b44323ad55a0181" }, "downloads": -1, "filename": "hostparse-0.0.6.tar.gz", "has_sig": false, "md5_digest": "e9be5b0e336c3676f496b50a6fdb9b53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3784, "upload_time": "2019-07-23T23:09:27", "url": "https://files.pythonhosted.org/packages/b8/ca/4fdc9cd3eb02061a075d1400b31108d2b83c52cc813e0ead616febc0316b/hostparse-0.0.6.tar.gz" } ] }