{ "info": { "author": "Michael de Villiers", "author_email": "twistedcomplexity@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: System :: Networking" ], "description": "python-pppd\n###########\nSimple library for controlling PPP connections with pppd. Under the hood it uses\nthe `subprocess` module to interact with `pppd` to create and disconnect PPP\nconnections. Positional and keyword arguments are passed to the `pppd` command-\nline although there is protection for shell exploits.\n\nThis library has been production tested connecting daily to 280+ remote\nlocations via dial-up PPP connection for over a year. I have simply packaged and\ncleaned up the module as some may find it useful.\n\nAnyone wanting to do something similar in a Windows environment should probably\ntake a look at `win32ras`.\n\nRequirements\n============\nYou will require `pppd`, the PPP daemon and PPP kernel modules.\n\nInstallation\n============\nTo install simply:\n\n pip install python-pppd\n\nAlternatively, install from the repository:\n\n git clone https://github.com/cour4g3/python-pppd\n cd python-pppd\n python setup.py install\n\nGetting Started\n===============\nYou can connect to an existing configured PPP connection:\n\n.. code:: python\n\n >>> from pppd import PPPConnection\n >>> ppp = PPPConnection(call='work') # blocks until connected\n >>> ppp.connected() # check if connected, raises error if connection error\n True\n >>> ppp.laddr # address of local host\n '10.0.0.1'\n >>> ppp.raddr # address of remote client\n '10.0.0.2'\n\nYou can specify any positional or keyword arguments:\n\n.. code:: python\n\n PPPConnection('/dev/ttyS0', connect='/usr/bin/chat -v -f /etc/chatscripts/A1')\n\nWhich is equivalent to the following:\n\n sudo pppd /dev/ttyS0 connect \"/usr/bin/chat -v -f /etc/chatscripts/A1\"\n\nNormally you require `sudo` to use `pppd`, if you don't have it and have setup\nthe `pppd` binary with setuid-root or are running as root you can use:\n\n.. code:: python\n\n PPPConnection(sudo=False)\n\nYou can also specify an alternate paths to `pppd` or `sudo` if the libary cannot\nfind them:\n\n.. code:: python\n\n PPPConnection(sudo_path='/usr/local/bin/sudo', pppd_path='/usr/local/sbin/pppd')\n\nLicense\n=======\nDistributed under the MIT license.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cour4g3/python-pppd", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-pppd", "package_url": "https://pypi.org/project/python-pppd/", "platform": "any", "project_url": "https://pypi.org/project/python-pppd/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cour4g3/python-pppd" }, "release_url": "https://pypi.org/project/python-pppd/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "Simple library for controlling PPP connections with pppd.", "version": "1.0.3" }, "last_serial": 2532659, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "25641766bc7ffd0abf6876af3319e960", "sha256": "1ab49bd12bc52a3e73924c0e12942bc1e36f4668ebbcc0724681f6f6ff244d32" }, "downloads": -1, "filename": "python-pppd-1.0.0.tar.gz", "has_sig": false, "md5_digest": "25641766bc7ffd0abf6876af3319e960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3449, "upload_time": "2016-08-22T07:30:29", "url": "https://files.pythonhosted.org/packages/77/28/a85dfb1c87968694ffa4f72b6893e37bfdafd1b892edc48bc6f96d445ef6/python-pppd-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f67cd9cf1c19fa282c895a771af5b05f", "sha256": "4ede970da04e7763093c4091560c672d721956d5cfef3e9bcc9163ffdcb0bf29" }, "downloads": -1, "filename": "python-pppd-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f67cd9cf1c19fa282c895a771af5b05f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3581, "upload_time": "2016-11-30T10:16:30", "url": "https://files.pythonhosted.org/packages/67/61/78cb013645af12d8d1802102adde4f8b5c4b0143a4176f6a2e69b56478cb/python-pppd-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "be41d22390bf9ae9f6ab1415d88ba22e", "sha256": "8cfd017a6013e4e8c44932607c9d1d13467df460a2e18ddb30a0dc6e8e69b232" }, "downloads": -1, "filename": "python-pppd-1.0.2.tar.gz", "has_sig": false, "md5_digest": "be41d22390bf9ae9f6ab1415d88ba22e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3588, "upload_time": "2016-12-02T06:59:28", "url": "https://files.pythonhosted.org/packages/c3/15/30eb10eaca172a682f1b9bf27fe296347fba7ade4907b90163fc1231c741/python-pppd-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "66e1fe154619fef269d58b6febfe5718", "sha256": "263a3187cad021634a51cabe2ba4ece6fd730c1d238f94d7802c6217593d695a" }, "downloads": -1, "filename": "python-pppd-1.0.3.tar.gz", "has_sig": false, "md5_digest": "66e1fe154619fef269d58b6febfe5718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3583, "upload_time": "2016-12-21T13:37:04", "url": "https://files.pythonhosted.org/packages/5e/24/a7e81274595d44a6c69ff4e56d20e5b8ef1270f8354d4198c6596cf112d1/python-pppd-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66e1fe154619fef269d58b6febfe5718", "sha256": "263a3187cad021634a51cabe2ba4ece6fd730c1d238f94d7802c6217593d695a" }, "downloads": -1, "filename": "python-pppd-1.0.3.tar.gz", "has_sig": false, "md5_digest": "66e1fe154619fef269d58b6febfe5718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3583, "upload_time": "2016-12-21T13:37:04", "url": "https://files.pythonhosted.org/packages/5e/24/a7e81274595d44a6c69ff4e56d20e5b8ef1270f8354d4198c6596cf112d1/python-pppd-1.0.3.tar.gz" } ] }