{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "python-hostsresolver\n====================\n[![Build Status](https://travis-ci.org/internap/python-hostsresolver.svg?branch=master)](https://travis-ci.org/internap/python-hostsresolver)\n[![PyPI version](https://badge.fury.io/py/python-hostsresolver.svg)](http://badge.fury.io/py/python-hostsresolver)\n\nTranslate ephemeral virtual machines names into IP addresses for python\nprojects without requiring any modification to the libraries or any\nexternal domain name server. \n\nBackground\n----------\n\nWhen performing integration testing using ephemeral virtual machines,\nit is not always convenient to have a real domain name server to\nresolve the IP address of each virtual machine, especially if multiple\ninstances of this test is to be ran simultaneously on the same host.\n\nIn most of the cases, it is possible to use directly the IP addresses\nof the virtual machines but in some other cases the domain name must\nbe used. This is the case for Openstack Keystone where the catalog\ncontains the URL of the services.\n\nSupported setup\n---------------\n\nThis project is specifically designed for python projects interacting\nwith Openstack virtual machines managed by Vagrant. It is however\npossible to make it resolve any name by providing the content of a\nhosts file.\n\nUsage\n-----\n\n### Standard setup ###\n\nThe IP addresses of Vagrant managed virtual machines will be mapped to\nthe name provided to Vagrant as if it was a hostname.\n`vagrant ssh-config` will be used internally to fetch the IP address.\n\n >>> from hostsresolver import vagrant_source as resolver\n >>> resolver.install('vagrant_project_folder/')\n\n\n### Using hostmanager plugin ###\n\nIt is possible to specify the virtual machine used to download the\nhostsfile. If not provided, the first available virtual machine will\nbe used. In this case, we will use `/etc/hosts` downloaded from\n`dns.example.org`.\n\n >>> from hostsresolver import vagrant_hostmanager_source as resolver\n >>> resolver.install('vagrant_project_folder/', 'dns.example.org')\n\n### Using a custom hosts file ###\n\nTo simply override some domain name addresses, a custom hosts file may\nbe loaded.\n\n >>> from hostsresolver import hostsfile_source as resolver\n >>> resolver.install('my_project_folder/hosts')\n\nLicence\n-------\n\nLicensed under the Apache License, Version 2.0\n\nContributing\n------------\n\nFeel free to raise issues and send some pull request, we'll be happy to\nlook at them!\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-hostsresolver", "package_url": "https://pypi.org/project/python-hostsresolver/", "platform": null, "project_url": "https://pypi.org/project/python-hostsresolver/", "project_urls": null, "release_url": "https://pypi.org/project/python-hostsresolver/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Translate ephemeral virtual machines names into IP addresses for python projects without requiring", "version": "0.0.4" }, "last_serial": 2842630, "releases": { "0.0.1": [ { "comment_text": "built for Linux-4.4.0-22-generic-x86_64-with-glibc2.7", "digests": { "md5": "2e193fdaa65508f6f651b1abf48189bb", "sha256": "7979de6699887ed334f80c71b3c435662536e2eb8aa08a3c9bdb0dd8498a838f" }, "downloads": -1, "filename": "python-hostsresolver-0.0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "2e193fdaa65508f6f651b1abf48189bb", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5809, "upload_time": "2016-05-19T16:18:50", "url": "https://files.pythonhosted.org/packages/4c/2f/7c5bfd2b45039c855746a1eeaf6933069e793de499fdf868066c558f4aa1/python-hostsresolver-0.0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "0f5861a48bcee7b337c07bd02a1a5111", "sha256": "7b5026e2aafcc7f6285c2d15612075f6855292369066b0d410fcb39170bae629" }, "downloads": -1, "filename": "python_hostsresolver-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0f5861a48bcee7b337c07bd02a1a5111", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8222, "upload_time": "2016-05-19T16:23:13", "url": "https://files.pythonhosted.org/packages/8c/85/09089b4362069e34fe839f7250311cfd7e2675607475cc1ab1d97d39bdde/python_hostsresolver-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "784b8c719f3fe17dc22afe4bbe2d4257", "sha256": "d85e8cc9504ea2b6aa0ff6f54d322514ad8c97f37aa46b0211a75688082e0e34" }, "downloads": -1, "filename": "python-hostsresolver-0.0.1.tar.gz", "has_sig": false, "md5_digest": "784b8c719f3fe17dc22afe4bbe2d4257", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12218, "upload_time": "2016-05-19T16:18:39", "url": "https://files.pythonhosted.org/packages/8d/98/a315d66e4b18b6cb160dec9948fcb4bfbd1ddb583a9fe56344476fe8ea67/python-hostsresolver-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ab17c4c4c95040ccfa3db414fe779e6a", "sha256": "12c5a64f8599c4711779bcfe8109b949f5f2106e42167310cb3deefd29bb9948" }, "downloads": -1, "filename": "python-hostsresolver-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ab17c4c4c95040ccfa3db414fe779e6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13252, "upload_time": "2016-05-19T20:36:51", "url": "https://files.pythonhosted.org/packages/94/9b/bd200c45d2bebae2a368477fd64b3075d89f0a7f3b4cdd0cd31f9e191560/python-hostsresolver-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6ef0f47eda65c8c48a99c58c9c492d90", "sha256": "b13753a08a874e918b506bb2c785f399890b5aaf499a6612a5f3a78b8dcb43aa" }, "downloads": -1, "filename": "python-hostsresolver-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6ef0f47eda65c8c48a99c58c9c492d90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13282, "upload_time": "2016-05-19T21:45:34", "url": "https://files.pythonhosted.org/packages/1d/0a/a775eeb94c8246e52067a6dc04f200dd048a4904888e22254df5dcde0985/python-hostsresolver-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "58ada8766c70d0de4e03186e43003b0e", "sha256": "70acc65aa1a869462e00457398f65b8d67233c278d70b4bc730aa3c579d159fb" }, "downloads": -1, "filename": "python-hostsresolver-0.0.4.tar.gz", "has_sig": false, "md5_digest": "58ada8766c70d0de4e03186e43003b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13624, "upload_time": "2017-05-01T18:32:51", "url": "https://files.pythonhosted.org/packages/ac/70/d34cd340765b0121976fabb3fb8a871fabe28fef87cede7a9e6f8b1a2f59/python-hostsresolver-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58ada8766c70d0de4e03186e43003b0e", "sha256": "70acc65aa1a869462e00457398f65b8d67233c278d70b4bc730aa3c579d159fb" }, "downloads": -1, "filename": "python-hostsresolver-0.0.4.tar.gz", "has_sig": false, "md5_digest": "58ada8766c70d0de4e03186e43003b0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13624, "upload_time": "2017-05-01T18:32:51", "url": "https://files.pythonhosted.org/packages/ac/70/d34cd340765b0121976fabb3fb8a871fabe28fef87cede7a9e6f8b1a2f59/python-hostsresolver-0.0.4.tar.gz" } ] }