{ "info": { "author": "Leon Smith", "author_email": "_@leonmarksmith.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: Name Service (DNS)", "Topic :: System :: Monitoring", "Topic :: Utilities" ], "description": "# pydig\n\npydig is a python wrapper library for the 'dig' command line tool.\n\n[![Build Status](https://travis-ci.org/leonsmith/pydig.svg?branch=master)](https://travis-ci.org/leonsmith/pydig)\n[![Python Versions](https://img.shields.io/pypi/pyversions/pydig.svg)](https://pypi.org/project/pydig/)\n[![License](https://img.shields.io/pypi/l/pydig.svg?color=informational)](https://pypi.org/project/pydig/)\n\n## Versioning\n\npydig follows [SemVer](https://semver.org/) (MAJOR.MINOR.PATCH) to track what is in each release.\n\n* Major version number will be bumped when there is an incompatible API change\n* Minor version number will be bumped when there is functionality added in a backwards-compatible manner.\n* Patch version number will be bumped when there is backwards-compatible bug fixes.\n\nAdditional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.\n\n\n## Installation\n\nInstallation the package from pypi with your tool of choice `pip`, `poetry`\nor `pipenv`.\n\n```bash\npip install pydig\n```\n\n## Usage\n\nTo use the default resolver you can call `pydig.query` this resolver will use\nthe `dig` command found in your `$PATH`.\n```\n>>> import pydig\n>>> pydig.query('example.com', 'A')\n['93.184.216.34']\n>>> pydig.query('www.github.com', 'CNAME')\n['github.com.']\n>>> pydig.query('example.com', 'NS')\n['a.iana-servers.net.', 'b.iana-servers.net.']\n```\n\nIf your want to adjust the executable location, the nameservers to dig will\nquery against or would like to pass additional arguments/flags, you can\nconfigure your own instance of a resolver. and call the `query` method of your\ncustom resolver.\n\n```\n>>> import pydig\n>>> resolver = pydig.Resolver(\n... executable='/usr/bin/dig',\n... nameservers=[\n... '1.1.1.1',\n... '1.0.0.1',\n... ],\n... additional_args=[\n... '+time=10',\n... ]\n... )\n>>> resolver.query('example.com', 'A')\n>>> ['93.184.216.34']\n```\n\n## Documentation\n\nThe code is 150~ lines with 100% test coverage\n\nhttps://github.com/leonsmith/pydig/tree/master/pydig\n\n\n## Support\n*If you\u2019re interested in financially supporting open source, consider donating.*\n\n\n[![XLM Wallet](https://img.shields.io/keybase/xlm/leonsmith.svg)](https://keybase.io/leonsmith)\n[![BTC Wallet](https://img.shields.io/keybase/btc/leonsmith.svg)](https://keybase.io/leonsmith)\n", "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/leonsmith/pydig", "keywords": "dig,dns,pydig,resolver,lookup", "license": "GPL-3.0", "maintainer": "Leon Smith", "maintainer_email": "_@leonmarksmith.com", "name": "pydig", "package_url": "https://pypi.org/project/pydig/", "platform": "", "project_url": "https://pypi.org/project/pydig/", "project_urls": { "Homepage": "https://github.com/leonsmith/pydig", "Repository": "https://github.com/leonsmith/pydig" }, "release_url": "https://pypi.org/project/pydig/0.2.0/", "requires_dist": null, "requires_python": ">=3.4,<4.0", "summary": "Python wrapper library for the 'dig' command line tool", "version": "0.2.0" }, "last_serial": 5164589, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7538cf2bc1fe7a17fc971ccebe293a57", "sha256": "95adecee918743660271ffe38ca4f17006c7a35ef211170dbb369107b54ce990" }, "downloads": -1, "filename": "pydig-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7538cf2bc1fe7a17fc971ccebe293a57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 15275, "upload_time": "2019-04-18T23:25:50", "url": "https://files.pythonhosted.org/packages/7f/3c/9b3a68d1c7c59d6f421d2f3cb04800e0e567a5d7eaa97b9892d9e2f7c22b/pydig-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6dfdffe49cea83422080f171830bb11e", "sha256": "172e7bb347f7b40a9abc6f35009335afe3f7dc0ecd9d7ab3afff98d864e1c6bc" }, "downloads": -1, "filename": "pydig-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6dfdffe49cea83422080f171830bb11e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 14693, "upload_time": "2019-04-18T23:25:52", "url": "https://files.pythonhosted.org/packages/0a/90/832a6f2c94e0980cc04522d552d3d168644eed0e80c7102ce4f0d51a02d5/pydig-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6b6c9e9dd21f0e1c257e3ffd0debc9a8", "sha256": "3c43239cd831140ff9b142cce5200ab802e85cac74f7fd152301f5dc6abf9724" }, "downloads": -1, "filename": "pydig-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6b6c9e9dd21f0e1c257e3ffd0debc9a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 16232, "upload_time": "2019-04-19T12:05:24", "url": "https://files.pythonhosted.org/packages/9f/a0/901e84d15a5c062f82e309bf5b2af4e16cd3bce243145038731cfc2c74f6/pydig-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b1fd7fd3f78ef33cc444bad96bd57da", "sha256": "6c438a04120adc3b84118cb86c88cb6397b6d72683b94df442790649906f43f0" }, "downloads": -1, "filename": "pydig-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6b1fd7fd3f78ef33cc444bad96bd57da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 15777, "upload_time": "2019-04-19T12:05:26", "url": "https://files.pythonhosted.org/packages/13/f7/8b2b5e78db2ff3dea379530429c08318411c3c63a53e935e19d08e183700/pydig-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b6c9e9dd21f0e1c257e3ffd0debc9a8", "sha256": "3c43239cd831140ff9b142cce5200ab802e85cac74f7fd152301f5dc6abf9724" }, "downloads": -1, "filename": "pydig-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6b6c9e9dd21f0e1c257e3ffd0debc9a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 16232, "upload_time": "2019-04-19T12:05:24", "url": "https://files.pythonhosted.org/packages/9f/a0/901e84d15a5c062f82e309bf5b2af4e16cd3bce243145038731cfc2c74f6/pydig-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b1fd7fd3f78ef33cc444bad96bd57da", "sha256": "6c438a04120adc3b84118cb86c88cb6397b6d72683b94df442790649906f43f0" }, "downloads": -1, "filename": "pydig-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6b1fd7fd3f78ef33cc444bad96bd57da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 15777, "upload_time": "2019-04-19T12:05:26", "url": "https://files.pythonhosted.org/packages/13/f7/8b2b5e78db2ff3dea379530429c08318411c3c63a53e935e19d08e183700/pydig-0.2.0.tar.gz" } ] }