{ "info": { "author": "Brian Wiborg", "author_email": "baccenfutter@c-base.org", "bugtrack_url": null, "classifiers": [], "description": "=========\nFS-Hopper\n=========\n\nFS-Hopper is a simplistic and very thin abstraction layer for\naccessing a filesystem directory tree in an object-oriented style.\nThe only two known filesystem nodes are directories and trees. Both\nare implemented as new-style classes. Each method call to them (e.g.\nDirectoryNode.get_childs()) will return instances of either\nDirectoryNode or FileNode, allowing easy traversal throughout the\ntree.\n\nAdditionally, you can define a set_root, similar to (but not really)\nGNU/chroot. It is prohibited to create Nodes above set_root making it\neasy for you to jail your code into a certain directory within the\nfilesystem.\n\n=====\nUsage\n=====\n\nJail code into /tmp and create a working directory:\n\n #!/usr/bin/env python2\n\n import fs_hopper\n fs_hopper.set_root('/tmp')\n\n workdir = fs_hopper.Directory('/tmp/fs_hopper')\n workdir.mkdir()\n print workdir\n\nRecursively get all configuration files of some_app\n\n #!/usr/bin/env python2\n\n import os\n import fs_hopper\n\n name = os.path.expanduser('~/.config/some_app')\n confdir = fs_hopper.Directory(name)\n confs = confdir.get_subs('*.conf')\n print confs\n\nRead /etc/passwd\n\n #!/usr/bin/env python2\n\n import fs_hopper\n\n passwd = fs_hopper.File('/etc/passwd')\n print passwd.get_content()\n\n=========\nResources\n=========\n\n- Github: https://gihub.com/baccenfutter/fs_hopper/\n- PyPi : https://pypi.python.org/pypi/FS-Hopper/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/FS-Hopper/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "FS-Hopper", "package_url": "https://pypi.org/project/FS-Hopper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/FS-Hopper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/FS-Hopper/" }, "release_url": "https://pypi.org/project/FS-Hopper/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Simple object-oriented access to a filesystem directory tree", "version": "0.1.1" }, "last_serial": 939392, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8f0c8eab65e9d1b7c4b8ebd3a92352c7", "sha256": "46417a397be64782121fe1d43011022675c5ea801298c73897535143a6a2d0e5" }, "downloads": -1, "filename": "FS-Hopper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8f0c8eab65e9d1b7c4b8ebd3a92352c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3297, "upload_time": "2013-12-08T16:05:24", "url": "https://files.pythonhosted.org/packages/33/2e/a4c1684fb16a5f9fbe4063597f14d89760b7477ed90ac9470190edc33ec7/FS-Hopper-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2470c53d5c3248176ce72eb778b42a6c", "sha256": "e79b9cf9f06cdd0162bcd0fd39f00fdbdd5eec0b750b322679f3920d8151d633" }, "downloads": -1, "filename": "FS-Hopper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2470c53d5c3248176ce72eb778b42a6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3368, "upload_time": "2013-12-08T23:27:22", "url": "https://files.pythonhosted.org/packages/6e/4f/b610e2e70d1215cee6cb4492f91fd5c3b350297795b636e044edd29f4099/FS-Hopper-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2470c53d5c3248176ce72eb778b42a6c", "sha256": "e79b9cf9f06cdd0162bcd0fd39f00fdbdd5eec0b750b322679f3920d8151d633" }, "downloads": -1, "filename": "FS-Hopper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2470c53d5c3248176ce72eb778b42a6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3368, "upload_time": "2013-12-08T23:27:22", "url": "https://files.pythonhosted.org/packages/6e/4f/b610e2e70d1215cee6cb4492f91fd5c3b350297795b636e044edd29f4099/FS-Hopper-0.1.1.tar.gz" } ] }