{ "info": { "author": "Marcin Sztolcman", "author_email": "marcin@urzenia.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: System :: Filesystems", "Topic :: Utilities" ], "description": "fileperms\n=========\n\n``fileperms`` is small library for describing file permissions.\n\nCurrent stable version\n----------------------\n\n1.0.4\n\nFeatures\n--------\n\n- easy manipulating of permissions\n- works fine with ``os.chmod`` and ``pathlib.Path``\n\nPython version\n--------------\n\n``fileperms`` works only with Python 3.3+. Older Python versions are\nunsupported.\n\nFor Python 3.3 `enum34 `__ library\nmust be installed.\n\nSome examples\n-------------\n\n::\n\n # Some helper\n >>> def show_permissions(path):\n >>> print(stat.filemode(os.stat(path).st_mode))\n >>>\n\n # Create Permissions object from existing file:\n >>> import fileperms\n >>> fileperms.Permissions.from_path('/etc')\n \n\n # We are working on object with permissions 0600 / rw-------\n >>> import os, stat\n >>> show_permissions(path)\n -rw-------\n\n # Verify that\n >>> prm = fileperms.Permissions.from_path(path)\n >>> prm\n \n >>> prm.to_filemode()\n 'rw-------'\n\n # Change them a little using os.chmod\n >>> prm.owner_exec = True\n >>> prm.other_exec = True\n >>> os.chmod(path, prm)\n >>> show_permissions(path)\n -rwx-----x\n\n # Change them more, using pathlib module this time\n >>> import pathlib\n >>> path = pathlib.Path(path)\n >>> prm.group_read = True\n >>> prm.group_write = True\n >>> path.chmod(prm)\n >>> show_permissions(path)\n -rwxrw---x\n\nInstallation\n------------\n\n1. Using PIP\n\n``fileperms`` should work on any platform where\n`Python `__ is available, it means Linux, Windows,\nMacOS X etc, but is not tested on Windows.\n\nSimplest way is to use Python's built-in package system:\n\n::\n\n pip3 install fileperms\n\n2. Using sources\n\nDownload sources from\n`Github `__:\n\n::\n\n wget -O 1.0.4.zip https://github.com/msztolcman/fileperms/archive/1.0.4.zip\n\nor\n\n::\n\n curl -o 1.0.4.zip https://github.com/msztolcman/fileperms/archive/1.0.4.zip\n\nUnpack:\n\n::\n\n unzip 1.0.4.zip\n\nAnd install\n\n::\n\n cd fileperms-1.0.4\n python3 setup.py install\n\nVoila!\n\nAuthors\n-------\n\nMarcin Sztolcman marcin@urzenia.net\n\nContact\n-------\n\nIf you like or dislike this software, please do not hesitate to tell me\nabout this me via email (marcin@urzenia.net).\n\nIf you find bug or have an idea to enhance this tool, please use\nGitHub's `issues `__.\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Marcin Sztolcman\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nChangeLog\n---------\n\nv1.0.4\n~~~~~~\n\n- updated README.rst\n\nv1.0.3\n~~~~~~\n\n- improved documentation\n- Permissions.set method now returns self\n\nv1.0.2\n~~~~~~\n\n- not important\n\nv1.0.1\n~~~~~~\n\n- documentation and pylint\n- dev packages upgraded\n\nv1.0.0\n~~~~~~\n\n- first public version", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://msztolcman.github.io/fileperms/", "keywords": "files permissions posix", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fileperms", "package_url": "https://pypi.org/project/fileperms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fileperms/", "project_urls": { "Homepage": "http://msztolcman.github.io/fileperms/" }, "release_url": "https://pypi.org/project/fileperms/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "fileperms is small library for describing file permissions", "version": "1.0.4" }, "last_serial": 2384637, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "315090057fd1405ff477e8c4917d24ba", "sha256": "525d8b43678d309cdae88bebbc48a18a802ef55448e51a73666fcb1b0217edf8" }, "downloads": -1, "filename": "fileperms-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "315090057fd1405ff477e8c4917d24ba", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6326, "upload_time": "2016-01-09T23:55:26", "url": "https://files.pythonhosted.org/packages/15/9a/2b082a97d5a45db542260ff97a7a0a4d2479f02ced0d06c2eb8ce2aeadcc/fileperms-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b43aaefd9c393f40fdb628184086f9af", "sha256": "7507964b6b0cc8274e614d7c0e0a7c8633beec1c65d69c4587c2fb87ee3871f2" }, "downloads": -1, "filename": "fileperms-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b43aaefd9c393f40fdb628184086f9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5761, "upload_time": "2016-01-09T23:55:33", "url": "https://files.pythonhosted.org/packages/79/b2/505bb654323940f50c87db7cb2875a96769f41294d2493037cb38b7ddc99/fileperms-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a7c265675b1bc5e2afb2342a60a0d3e3", "sha256": "c315ad8c57870c99f0b6bbe664495d7d4354b227e6ab3e83112cad5dcd48a964" }, "downloads": -1, "filename": "fileperms-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a7c265675b1bc5e2afb2342a60a0d3e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6708, "upload_time": "2016-01-10T00:21:01", "url": "https://files.pythonhosted.org/packages/f5/50/c495cf3fab528a205a1453310b61a99bb741e39c8a28b338ba78a293e659/fileperms-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9987aadac99e72f2ffea6400c9f0316f", "sha256": "98b7958609e18356c360444b3037c391cdabf7a7f49e7368305e0c36da5a08dc" }, "downloads": -1, "filename": "fileperms-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9987aadac99e72f2ffea6400c9f0316f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6073, "upload_time": "2016-01-10T00:21:09", "url": "https://files.pythonhosted.org/packages/e4/55/4eed512221e4cb630f01cdfbc883a79f78e69f4f6a79e613014f106f7a35/fileperms-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d72b49273cfc0afbfb077337d6629df0", "sha256": "ae3444d0b8c8dde096e91f60c041f5144f1caa1384d40cb784bfd866ae94a945" }, "downloads": -1, "filename": "fileperms-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d72b49273cfc0afbfb077337d6629df0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6729, "upload_time": "2016-01-10T00:23:22", "url": "https://files.pythonhosted.org/packages/4b/c1/9062c0d418164e672defd84f038034286cb375910738c896d93db7537615/fileperms-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "375a87f260c5a9454f5b0cf4d61e4f3b", "sha256": "1ac2241ff73ef86efb2508134dacdb89eb417300859381f07a98cd534bd63262" }, "downloads": -1, "filename": "fileperms-1.0.2.tar.gz", "has_sig": false, "md5_digest": "375a87f260c5a9454f5b0cf4d61e4f3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6087, "upload_time": "2016-01-10T00:23:27", "url": "https://files.pythonhosted.org/packages/07/c8/eafe7accd9ee598c5344439f8acb7563a638d158c07dea3f1cfb6ba84e47/fileperms-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "b96cbcb2748e10ca1d7205567dd4e1fc", "sha256": "3c236e3d7ebcb20e2cfffdd3477de949e1e00c0926c1eeeea17f79bd946d3853" }, "downloads": -1, "filename": "fileperms-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b96cbcb2748e10ca1d7205567dd4e1fc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7139, "upload_time": "2016-10-06T15:56:12", "url": "https://files.pythonhosted.org/packages/6f/c8/00afb22d7af503786fbdf907dae2dd43ddd8ee6a42e8b890b22880d69c11/fileperms-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a8bf55406373731bd978c925147fae2c", "sha256": "37f1ce885fee6e499f8563e2206afedbad8a2775a4ea93aa4a372622a29e9bdb" }, "downloads": -1, "filename": "fileperms-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a8bf55406373731bd978c925147fae2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6322, "upload_time": "2016-10-06T15:56:14", "url": "https://files.pythonhosted.org/packages/a6/5b/143a23f8e223eea2f29759dca396eed2cd10c4b3cb5d81134a028c8b41f8/fileperms-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "80d87f3d5bfe134a427d064588495f5d", "sha256": "510d3651e25ee450247f7e58dba7ab7adde619aa5fbf5fc6a59178b77be108cc" }, "downloads": -1, "filename": "fileperms-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80d87f3d5bfe134a427d064588495f5d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7161, "upload_time": "2016-10-06T16:04:57", "url": "https://files.pythonhosted.org/packages/6c/1e/634718801d2e0b4919499ca22fdbe4551da190b9b457e875adecee64c619/fileperms-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "417377529fb2f3327cbab3ef842dfb83", "sha256": "d3a6b9bad12c735c52fb55c3073b41f51bcb4d71940aa680cd3ad3d180db08dd" }, "downloads": -1, "filename": "fileperms-1.0.4.tar.gz", "has_sig": false, "md5_digest": "417377529fb2f3327cbab3ef842dfb83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6379, "upload_time": "2016-10-06T16:04:59", "url": "https://files.pythonhosted.org/packages/ca/c6/4c32660faf68452813176ac3aa108bf221b44244ca7e696fedecef146237/fileperms-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "80d87f3d5bfe134a427d064588495f5d", "sha256": "510d3651e25ee450247f7e58dba7ab7adde619aa5fbf5fc6a59178b77be108cc" }, "downloads": -1, "filename": "fileperms-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80d87f3d5bfe134a427d064588495f5d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7161, "upload_time": "2016-10-06T16:04:57", "url": "https://files.pythonhosted.org/packages/6c/1e/634718801d2e0b4919499ca22fdbe4551da190b9b457e875adecee64c619/fileperms-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "417377529fb2f3327cbab3ef842dfb83", "sha256": "d3a6b9bad12c735c52fb55c3073b41f51bcb4d71940aa680cd3ad3d180db08dd" }, "downloads": -1, "filename": "fileperms-1.0.4.tar.gz", "has_sig": false, "md5_digest": "417377529fb2f3327cbab3ef842dfb83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6379, "upload_time": "2016-10-06T16:04:59", "url": "https://files.pythonhosted.org/packages/ca/c6/4c32660faf68452813176ac3aa108bf221b44244ca7e696fedecef146237/fileperms-1.0.4.tar.gz" } ] }