{ "info": { "author": "Andrii Rusanov", "author_email": "andrey@rusanov.me", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# Permissions\n`Permissions` provides a tiny wrapper on top of built-in Python's libraries \nto get information about file permissions in Unix systems. \n\n## Motivation\nCurrently everything related to permission management is spreaded across few packages. \nIt is nice and handy to have everything gathered together. `Permissions` is quite incomplete \nat the moment and any kind of missed functionality is welcome as pull requests or GitHub issues.\n\n## Installation\n```\npip install file-permissions\n```\n\n## Example\n```python\nfrom permissions import get_permissions_from\n\np = get_permissions_from('test.txt') # returns PermissionsContainer object\np.executable()\n# False\np.readable()\n# True\n\n```\n\n## Reference\nAvailable fields in PermissionsContainer:\n1. executable - boolean, indicates whether file could be executed by current user or not; \n2. group - object(pwd.struct_group), contains information about group the file belongs to. Available fields there are:\n - gr_name\n - gr_passwd\n - gr_gid\n - gr_mem\n3. is_sticky - boolean, inficates whether file has sticky bit or not.\n4. owner - object(pwd.struct_passwd), contains information about user the file belongs to. Available fields there are: \n - pw_name\n - pw_passwd\n - pw_uid\n - pw_gid\n - pw_gecos\n - pw_dir\n - pw_shell\n5. readable - boolean, indicates whether file could be read by current user or not; \n6. sgid - returns SGID if set or 0;\n7. suid - returns SUID if set or 0;\n8. umask - str, file permissions as umask, e. g. 0755, 0400;\n9. writable - boolean, indicates whether file could be written by current user or not;\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/andreyrusanov/permissions", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "file-permissions", "package_url": "https://pypi.org/project/file-permissions/", "platform": "", "project_url": "https://pypi.org/project/file-permissions/", "project_urls": { "Homepage": "https://github.com/andreyrusanov/permissions" }, "release_url": "https://pypi.org/project/file-permissions/0.2/", "requires_dist": null, "requires_python": "", "summary": "A tiny wrapper to get information about file permissions", "version": "0.2" }, "last_serial": 4321263, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "94a01a06606b3a25b65882ce0244f64f", "sha256": "ae25e93f5913244f60b01c056a6048b9cfa692ca56a7c87b41269b993d3faede" }, "downloads": -1, "filename": "file-permissions-0.1.tar.gz", "has_sig": false, "md5_digest": "94a01a06606b3a25b65882ce0244f64f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2098, "upload_time": "2018-09-21T21:03:38", "url": "https://files.pythonhosted.org/packages/a5/76/88bcabaf460a7ce2765a9637b23c19b6efb524c662dfa49562bd6286079f/file-permissions-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e325f22c6ae936830b09781ed6aa19e7", "sha256": "95236d8a12a40b4dc8739f24efaee8cd1491c43b1fcacdd214f5b29fa986db55" }, "downloads": -1, "filename": "file_permissions-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e325f22c6ae936830b09781ed6aa19e7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2620, "upload_time": "2018-09-28T20:46:22", "url": "https://files.pythonhosted.org/packages/4c/aa/a86de98bcca1e1336de41e6f96cf0de04547df806a7edbf44dd3785253cc/file_permissions-0.2-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e325f22c6ae936830b09781ed6aa19e7", "sha256": "95236d8a12a40b4dc8739f24efaee8cd1491c43b1fcacdd214f5b29fa986db55" }, "downloads": -1, "filename": "file_permissions-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e325f22c6ae936830b09781ed6aa19e7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2620, "upload_time": "2018-09-28T20:46:22", "url": "https://files.pythonhosted.org/packages/4c/aa/a86de98bcca1e1336de41e6f96cf0de04547df806a7edbf44dd3785253cc/file_permissions-0.2-py2-none-any.whl" } ] }