{ "info": { "author": "Idin", "author_email": "py@idin.ca", "bugtrack_url": null, "classifiers": [], "description": "# Disk\n\nDisk is a Python library for interacting with the file system in an object oriented manner. I know you can use os and os.path to do all of these but I find their usage hard to remember and not very object oriented. \n\n# Installation\n\nYou can use pip to install Disk.\n\n```bash\npip install disk\n```\n\n# Usage\n\nDisk is an object oriented interface for the file system. All files and directories (folders) are considered *Path* objects. Any path except the root, has a parent: the directory it is in. Directories have children, some of them are files and some are subdirectories.\n\n## Path\n\nUsually we want to start in the current working directory:\n\n```python\nfrom disk import Path\ncurrent_directory = Path.get_current_directory()\n\n# ls or dir:\nprint(current_directory.list())\n\n# get the first subdirectory:\nfirst_subdirectory = current_directory.directories[0]\n\n# get the parent directory:\nparent_directory = current_directory.parent_directory\n```\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/idin/disk", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "disk", "package_url": "https://pypi.org/project/disk/", "platform": "", "project_url": "https://pypi.org/project/disk/", "project_urls": { "Homepage": "https://github.com/idin/disk" }, "release_url": "https://pypi.org/project/disk/0.1.2/", "requires_dist": null, "requires_python": "~=3.6", "summary": "Python library for interacting with the file system", "version": "0.1.2" }, "last_serial": 4902779, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "11241e246adec0dee289714c81089a4f", "sha256": "af2137e9a1b302ad8867ee9bc3eec9debae2331a55afaf40343ae51fa69f2244" }, "downloads": -1, "filename": "disk-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "11241e246adec0dee289714c81089a4f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 4555, "upload_time": "2019-03-06T00:29:52", "url": "https://files.pythonhosted.org/packages/4c/ce/e41a1492fade7920aaac4d7d4e3e8c622e2b861b4ecb8a66d92795f0a1e9/disk-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f4c4cb38324d8dd3e29e8bfb5eab069", "sha256": "4b37a0b74994525fa64918f0a1199899811a789e5903ba1b0bc9e6181a7b73b4" }, "downloads": -1, "filename": "disk-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5f4c4cb38324d8dd3e29e8bfb5eab069", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 3182, "upload_time": "2019-03-06T00:29:54", "url": "https://files.pythonhosted.org/packages/77/6b/5a3222b8c8661c09fcf2f0f8028aea1e3449c8c23489e464c4585764ca89/disk-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "89a48dca6535ada4d6aa31fd39955960", "sha256": "60d977e1ccf3b49e972d42d2a80e23df32adb41135cff4d0ee9bbd13b56ff312" }, "downloads": -1, "filename": "disk-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "89a48dca6535ada4d6aa31fd39955960", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 4552, "upload_time": "2019-03-06T00:36:20", "url": "https://files.pythonhosted.org/packages/9d/68/e819c3b0b9d3a9669f145f161cd103cbb83ac6e7f45905a1a14cbf251c9c/disk-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5874cfb70d9d87e4807a754b0b1a3d93", "sha256": "be664e343a0b10bdd7f2304df28c859eae4768d24ce08d9b9cc12d8d50f8221d" }, "downloads": -1, "filename": "disk-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5874cfb70d9d87e4807a754b0b1a3d93", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 3183, "upload_time": "2019-03-06T00:36:21", "url": "https://files.pythonhosted.org/packages/3f/51/8944c7a2350b17ac21e15ba13a0f23a25c46199de84511e08df76aa7bb69/disk-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89a48dca6535ada4d6aa31fd39955960", "sha256": "60d977e1ccf3b49e972d42d2a80e23df32adb41135cff4d0ee9bbd13b56ff312" }, "downloads": -1, "filename": "disk-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "89a48dca6535ada4d6aa31fd39955960", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 4552, "upload_time": "2019-03-06T00:36:20", "url": "https://files.pythonhosted.org/packages/9d/68/e819c3b0b9d3a9669f145f161cd103cbb83ac6e7f45905a1a14cbf251c9c/disk-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5874cfb70d9d87e4807a754b0b1a3d93", "sha256": "be664e343a0b10bdd7f2304df28c859eae4768d24ce08d9b9cc12d8d50f8221d" }, "downloads": -1, "filename": "disk-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5874cfb70d9d87e4807a754b0b1a3d93", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 3183, "upload_time": "2019-03-06T00:36:21", "url": "https://files.pythonhosted.org/packages/3f/51/8944c7a2350b17ac21e15ba13a0f23a25c46199de84511e08df76aa7bb69/disk-0.1.2.tar.gz" } ] }