{ "info": { "author": "roopeshv", "author_email": "roopeshvaddepally@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=================\nIntroduction\n=================\n\nThis is a collection of utility functions, which can simple,\nand are a whole lot useful.\n\nThis version of the utility functions includes only those \ndealing with the files, directories, full paths of those.\n\n\n\n============\nfunctions\n============\n\nGet the expanded path of directory ``dir_``\n\nThe home directory of ~ is /home/rv and home directory\nof zope is /usr/local/zope ::\n\n >>> full_path('~')\n '/home/rv'\n >>> full_path('~zope')\n '/usr/local/zope'\n\nFor a non existant user `~test`, the result will be \ncurrent_directory/~test\n::\n\n >>> full_path('~test')\n '/home/rv/expertpy/roopeshv.utils/roopeshv/utils/~test'\n\n\nJoin the list to form a directory path\n \nThis is just a convenience function.\n::\n\n >>> join_path('~', 'test')\n '~/test'\n >>> join_path('/home/rv', 'test')\n '/home/rv/test'\n >>> join_path('test', 'README.txt')\n 'test/README.txt'\n\n\ndetermine if `dir_` is a directory.\n\n::\n\n >>> is_directory('.')\n True\n >>> is_directory('~')\n True\n >>> is_directory('/')\n True\n >>> is_directory('no/such/directory')\n False\n\n\nget a list of files(absolute path) in directory ``dir_``\n\n::\n\n the .directory happens to exist in my computer, but for now\n the function works as intended.\n \n >>> get_files_in('/home/')\n ['/home/.directory']\n >>> '/etc/passwd' in get_files_in('/etc/') \n True\n\n\nget a list of directories(absolute path) in directory ``dir_``\n\n::\n\n >>> sorted(get_directories_in('/home/'))\n ['/home/guest', '/home/rv']\n >>> '/home/rv/Desktop' in get_directories_in('~')\n True\n\n\n\nget the latest file in given directory\n\n::\n\n >>> get_latest_file_in('~/expertpy/roopeshv.utils', prefix=[])\n\n\n============\nHistory\n============\n\nversion 0.0.1\n=============\n* added few convenience functions", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "roopeshv utility functions", "license": "LGPLv3", "maintainer": null, "maintainer_email": null, "name": "roopeshv.utils", "package_url": "https://pypi.org/project/roopeshv.utils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/roopeshv.utils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/roopeshv.utils/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "My utility functions. Will be adding more", "version": "0.0.2" }, "last_serial": 799031, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fde58b69122fa1f3ee7e2c0eed678c9b", "sha256": "2df55d6f220ad03838502d904b52731aa93fa81dd27d7a1c62bf93b894333506" }, "downloads": -1, "filename": "roopeshv.utils-0.0.1-py2.6.egg", "has_sig": false, "md5_digest": "fde58b69122fa1f3ee7e2c0eed678c9b", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 5252, "upload_time": "2010-06-16T21:42:59", "url": "https://files.pythonhosted.org/packages/a6/29/a7a23554deb67d7073876789b69b0e6ce97dabd839bde719947eda4353f9/roopeshv.utils-0.0.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "0191630b9383b18218d8358ee0fb46a9", "sha256": "ca466605eac8e2e8611b620529088ce23f1da3efcd06c5f45c11deda55f43e8b" }, "downloads": -1, "filename": "roopeshv.utils-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0191630b9383b18218d8358ee0fb46a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2454, "upload_time": "2010-06-16T21:42:58", "url": "https://files.pythonhosted.org/packages/31/56/bc56d95ea544f4bf55c809e4ce393e424780be04f6e31e2d0d530c084193/roopeshv.utils-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7b1affd7b727bcd4f5127bb008adc1d4", "sha256": "74d44de1248d30bb5d9cb55f9899279b7095467a5ef9d8172e623bc48d448f2e" }, "downloads": -1, "filename": "roopeshv.utils-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "7b1affd7b727bcd4f5127bb008adc1d4", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6147, "upload_time": "2010-06-17T19:52:39", "url": "https://files.pythonhosted.org/packages/57/f5/d470423dd6e175e8b81fea28c61f8312c23cea8cf538e10cae878fabc8a2/roopeshv.utils-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "bcb029d74854227d72db5298ac0b2b5f", "sha256": "419ee4d265ee63725cb6d92b7cee18b4360642610660e77642b672681c212771" }, "downloads": -1, "filename": "roopeshv.utils-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bcb029d74854227d72db5298ac0b2b5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2871, "upload_time": "2010-06-17T19:52:37", "url": "https://files.pythonhosted.org/packages/38/6b/5142f1edc1b06bd190f36eabd60f8bb30270e0b478d12167091c695a62e8/roopeshv.utils-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b1affd7b727bcd4f5127bb008adc1d4", "sha256": "74d44de1248d30bb5d9cb55f9899279b7095467a5ef9d8172e623bc48d448f2e" }, "downloads": -1, "filename": "roopeshv.utils-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "7b1affd7b727bcd4f5127bb008adc1d4", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6147, "upload_time": "2010-06-17T19:52:39", "url": "https://files.pythonhosted.org/packages/57/f5/d470423dd6e175e8b81fea28c61f8312c23cea8cf538e10cae878fabc8a2/roopeshv.utils-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "bcb029d74854227d72db5298ac0b2b5f", "sha256": "419ee4d265ee63725cb6d92b7cee18b4360642610660e77642b672681c212771" }, "downloads": -1, "filename": "roopeshv.utils-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bcb029d74854227d72db5298ac0b2b5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2871, "upload_time": "2010-06-17T19:52:37", "url": "https://files.pythonhosted.org/packages/38/6b/5142f1edc1b06bd190f36eabd60f8bb30270e0b478d12167091c695a62e8/roopeshv.utils-0.0.2.tar.gz" } ] }