{ "info": { "author": "Paul Diaconescu", "author_email": "p@afajl.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration" ], "description": "**Documentation:** http://sy.afajl.com\n\n**Source:** http://github.com/afajl/sy\n\nThis library is a set of easy to use modules to help with automation of \nsystem administration tasks::\n\n import sy.path, sy.net.intf, sy.net.ip, sy.cmd\n\n # Replace lines in '/etc/hosts' that match nis.*\n sy.path.replace_lines('/etc/hosts', 'nis.*', '10.2.3.1 ldap')\n 1\n\n # Fetch information about the interface hme0\n hme0 = sy.net.intf.get('hme0')\n\n # Get the IP of hme0\n hme0.ipaddress\n '192.168.2.2'\n\n # Check if hme0 is up\n hme0.is_up\n True\n\n # Find files named '*.pl' but time out after 10 seconds\n out, err = sy.cmd.do('find /mnt -name {}', '*.pl', timeout=10)\n \n # Check if port 22 is answering on bart\n if not sy.net.ip.port_is_open('bart', 22):\n sy.log.warning('Ssh is down on bart') \n \n\n\nThe library is heavily inspired by `Werkzeug`_ which is a great WSGI utility \ncollection.\n\n.. _Werkzeug: http://werkzeug.pocoo.org/\n\nDeveloping\n==========\n\n.. _pip: http://pip.openplans.org/\n.. _virtualenv: http://pypi.python.org/pypi/virtualenv\n.. _fabric: http://docs.fabfile.org/0.9.1/\n.. _nose: http://somethingaboutorange.com/mrl/projects/nose/0.11.2/\n.. _sphinx: http://sphinx.pocoo.org/\n.. _git: http://git-scm.com\n\nThe repository path for ``sy`` is located at \nhttp://github.com/afajl/sy. Clone with `git`_ by typing::\n\n $ git clone http://github.com/afajl/sy.git\n\nThe requirements for developing are listed in ``dev-reqs.pip`` that\ncan be install with `pip`_ with:: \n\n $ pip install -r dev-reqs.pip\n\nThe library currently targets python 2.4.4 - 2.6.\n\nTesting\n-------\n\nTo run the test suite use `nose`_::\n\n $ nosetests -a '!host' tests\n\nThe ``!host`` parameter tells the suite to not run tests that change the hosts\nconfiguration (like reconfiguring network interfaces).\n\nThere currently isn't any automated way to run the testsuite on virtual machines.\nThis feature is greatly needed to be able to test all parts of the library and\nto test it on different versions and operating systems.\n\n\nDocumentation\n-------------\n\nThe documentation is built with `sphinx`_ and is locate under the ``docs`` folder.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://sy.afajl.com", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "sy", "package_url": "https://pypi.org/project/sy/", "platform": "Python 2.4 and later on Unix", "project_url": "https://pypi.org/project/sy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://sy.afajl.com" }, "release_url": "https://pypi.org/project/sy/0.3/", "requires_dist": null, "requires_python": null, "summary": "Simple tools for system administration tasks", "version": "0.3" }, "last_serial": 800306, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "f4b49731d13517bc12fad0832254fa01", "sha256": "6c502da7c8062fee12a223b47e6f2197980b8dd75a655e0c6571f1d24af4cc3a" }, "downloads": -1, "filename": "sy-0.3-py2.5.egg", "has_sig": false, "md5_digest": "f4b49731d13517bc12fad0832254fa01", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 54699, "upload_time": "2011-06-14T19:59:34", "url": "https://files.pythonhosted.org/packages/91/25/8e5e68f4877e1cac63f2ead718e7ababafa1941e82eccada6ff2da901905/sy-0.3-py2.5.egg" } ], "0.3dev": [ { "comment_text": "", "digests": { "md5": "b92fc91be085e871e89f0b004b2fe95c", "sha256": "a2b8e9f7c5813c6adeb9044d5d6d6c84a38530b03f1d25e4a4f026828858b5da" }, "downloads": -1, "filename": "sy-0.3dev.tar.gz", "has_sig": false, "md5_digest": "b92fc91be085e871e89f0b004b2fe95c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 125390, "upload_time": "2011-02-06T13:54:18", "url": "https://files.pythonhosted.org/packages/dd/95/c350597c2703de729d5e4e617adc951302d4219dde8f4cfb4a04a74bb7ef/sy-0.3dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4b49731d13517bc12fad0832254fa01", "sha256": "6c502da7c8062fee12a223b47e6f2197980b8dd75a655e0c6571f1d24af4cc3a" }, "downloads": -1, "filename": "sy-0.3-py2.5.egg", "has_sig": false, "md5_digest": "f4b49731d13517bc12fad0832254fa01", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 54699, "upload_time": "2011-06-14T19:59:34", "url": "https://files.pythonhosted.org/packages/91/25/8e5e68f4877e1cac63f2ead718e7ababafa1941e82eccada6ff2da901905/sy-0.3-py2.5.egg" } ] }