{ "info": { "author": "Azul", "author_email": "pyarchops@azulinho.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.7" ], "description": "=====================\npyArchOps/dnsmasq\n=====================\n\n.. image:: https://badge.fury.io/py/pyarchops-dnsmasq.svg\n :target: https://pypi.python.org/pypi/pyarchops-dnsmasq\n\n.. image:: https://img.shields.io/gitlab/pipeline/pyarchops/dnsmasq/next-release.svg\n :target: https://gitlab.com/pyarchops/dnsmasq/pipelines\n\n.. image:: https://readthedocs.org/projects/dnsmasq/badge/?version=latest\n :target: https://dnsmasq.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/pyarchops/dnsmasq/shield.svg\n :target: https://pyup.io/repos/github/pyarchops/dnsmasq/\n :alt: Updates\n\n\ndnsmasq\n\n\n* Free software: MIT license\n* Documentation: https://pyarchops-dnsmasq.readthedocs.io.\n\n\nFeatures\n--------\n\n* dnsmasq\n\nInstalation\n--------------\n\n.. code-block:: console\n\n $ pip install pyarchops-dnsmasq\n\n\nUsage\n--------\n\n.. code-block:: python\n\n impor os\n import textwrap\n from suitable import Api\n from pyarchops import helpers\n from pyarchops_dnsmasq import dnsmasq\n\n api = Api(\n '127.0.0.1:22',\n connection='smart',\n remote_user='root',\n private_key_file=os.getenv('HOME') + '/.ssh/id_rsa',\n become=True,\n become_user='root',\n sudo=True,\n ssh_extra_args='-o StrictHostKeyChecking=no'\n )\n\n dnsmasq_conf = textwrap.dedent('''\n no-poll\n no-resolv\n cache-size=1500\n no-negcache\n server=/core-vpn/10.16.254.1\n server=/core-vpn/10.16.254.2\n server=/core-vpn/10.16.254.3\n server=8.8.4.4\n server=8.8.8.8\n ''')\n\n resolve_conf = 'nameserver 127.0.0.1'\n\n config = {\n 'dnmasq_conf': dnsmasq_conf,\n 'resolv_conf': resolve_conf\n }\n\n result = dnsmasq.apply(api, config=config)\n print(result)\n\nDevelopment\n-----------\n\nInstall requirements:\n\n.. code-block:: console\n\n $ sudo pacman -S tmux python-virtualenv python-pip libjpeg-turbo gcc make vim git tk tcl\n\nGit clone this repository\n\n.. code-block:: console\n\n $ git clone https://github.com/pyarchops/dnsmasq.git pyarchops.dnsmasq\n $ cd pyarchops.dnsmasq\n\n\n2. See the `Makefile`, to get started simply execute:\n\n.. code-block:: console\n\n $ make up\n\n\nCredits\n-------\n\n* TODO\n\n\n\n=======\nHistory\n=======\n\n0.0.1 (2018-12-11)\n------------------\n\n* First release on PyPI.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pyarchops/dnsmasq", "keywords": "pyarchops_dnsmasq", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "pyarchops-dnsmasq", "package_url": "https://pypi.org/project/pyarchops-dnsmasq/", "platform": "", "project_url": "https://pypi.org/project/pyarchops-dnsmasq/", "project_urls": { "Homepage": "https://github.com/pyarchops/dnsmasq" }, "release_url": "https://pypi.org/project/pyarchops-dnsmasq/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Install All dnsmasq", "version": "0.0.2" }, "last_serial": 5349865, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "85e31006152fbae6861cbcc5f5ded656", "sha256": "e9185023a79a2103ecb7085d5e0bb1afc1862112f43d0db1a86cc97aebbe1b62" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "85e31006152fbae6861cbcc5f5ded656", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4215, "upload_time": "2018-12-29T19:42:19", "url": "https://files.pythonhosted.org/packages/65/e3/918c558c01f420f4f613f0d1b5fbb1aeebbcb21ef6ea0bdfd9ff2e746e46/pyarchops_dnsmasq-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ee4740a9c745ee6d905b5020725b3dbb", "sha256": "702534c06e317b2338cc44aee781bab13e6746ed49866d4083bbc1ec7fc76397" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ee4740a9c745ee6d905b5020725b3dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17052, "upload_time": "2018-12-29T19:42:21", "url": "https://files.pythonhosted.org/packages/60/b8/36c1403a03623fe7ce3e1172f142d6337b6010c994d301ac0deeffb17cbe/pyarchops_dnsmasq-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a663761bb59456c0fe4122375cc71a71", "sha256": "e9de7ffa0431b05138338d007982cfc80b3cbfa2ae5c501f7265c61d26d016b5" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a663761bb59456c0fe4122375cc71a71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4069, "upload_time": "2019-06-02T20:48:09", "url": "https://files.pythonhosted.org/packages/f5/3d/aa2ecc4002ad799e3dc723df6c949cd73136eadf03cbb63f7e5d01cda6b2/pyarchops_dnsmasq-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "26e83107b31ed67a2cf43918bab2c715", "sha256": "b5c17379832cc055c365a0eb32072b34c74059080132a4f2b53b179deeeb1ed6" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.2.tar.gz", "has_sig": false, "md5_digest": "26e83107b31ed67a2cf43918bab2c715", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10938, "upload_time": "2019-06-02T20:24:40", "url": "https://files.pythonhosted.org/packages/75/3d/983382168775857387219dadc7ac49e2b0cf41ded9c3fe26808848bc2a3c/pyarchops_dnsmasq-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a663761bb59456c0fe4122375cc71a71", "sha256": "e9de7ffa0431b05138338d007982cfc80b3cbfa2ae5c501f7265c61d26d016b5" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a663761bb59456c0fe4122375cc71a71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4069, "upload_time": "2019-06-02T20:48:09", "url": "https://files.pythonhosted.org/packages/f5/3d/aa2ecc4002ad799e3dc723df6c949cd73136eadf03cbb63f7e5d01cda6b2/pyarchops_dnsmasq-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "26e83107b31ed67a2cf43918bab2c715", "sha256": "b5c17379832cc055c365a0eb32072b34c74059080132a4f2b53b179deeeb1ed6" }, "downloads": -1, "filename": "pyarchops_dnsmasq-0.0.2.tar.gz", "has_sig": false, "md5_digest": "26e83107b31ed67a2cf43918bab2c715", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10938, "upload_time": "2019-06-02T20:24:40", "url": "https://files.pythonhosted.org/packages/75/3d/983382168775857387219dadc7ac49e2b0cf41ded9c3fe26808848bc2a3c/pyarchops_dnsmasq-0.0.2.tar.gz" } ] }