{
"info": {
"author": "Oxford University Computing Services",
"author_email": "infodev@oucs.ox.ac.uk",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: System :: Filesystems",
"Topic :: System :: Systems Administration"
],
"description": "python-libmount\n===============\n\nA library for reading and manipulating filesystem tables, such as ``/etc/fstab``.\n\nIt uses ``ctypes`` to wrap ``libmount``, part of\n`util-linux `_.\n\n\nUsage\n-----\n\nEvery reading and manipulation of the filesystem table should take place in a\n``with`` block to take the lock::\n\n from libmount import FilesystemTable\n \n with FilesystemTable() as fstab:\n print fstab[0].target\n\nA ``FilesystemTable`` acts like a list, so you can slice and iterate::\n\n with FilesystemTable() as fstab:\n print [fs.source for fs in fstab]\n print fs[2:5]\n\n``FilesystemTable`` objects contain ``Filesystem`` objects, that each have\n``source``, ``target``, ``fstab`` and ``options`` attributes. The first three\nare strings, whereas the latter is ``set``-like::\n\n with FilesystemTable() as fstab:\n fs = fstab[0]\n \n # Will print e.g. \"/dev/sda1 on / type ext4 (user_xattr)\"\n print fs\n \n fs.source = '/dev/sda2'\n print \"Options: %s\" % \", \".join(fs.options)\n fs.options -= set(['user_xattr'])\n\nTo update the on-disk filesystem table, call ``save()``::\n\n with FilesystemTable() as fstab:\n for fs in fstab:\n if fs.fstype in ('ext3', 'ext4'):\n fs.options.add('user_xattr')\n fstab.save()\n\n\nLimitations\n-----------\n\nIt is not yet possible to add or remove entries. This has not been thoroughly\ntested when run by non-privileged users.\n\n\nFeedback\n--------\n\nFeedback is gratefully received to `infodev@oucs.ox.ac.uk `_,\nor as an issue in `the issue tracker `_.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/oucs/python-libmount",
"keywords": "University of Oxford,libmount,filesystem table,fstab",
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "libmount",
"package_url": "https://pypi.org/project/libmount/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/libmount/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/oucs/python-libmount"
},
"release_url": "https://pypi.org/project/libmount/0.9/",
"requires_dist": null,
"requires_python": null,
"summary": "A wrapper around libmount, for reading and manipulating filesystem tables.",
"version": "0.9"
},
"last_serial": 794177,
"releases": {
"0.9": [
{
"comment_text": "",
"digests": {
"md5": "175897121291e60bc7f98f78dac1c823",
"sha256": "016b61dfce3e8b0a5ea9367dc44cb54a6fc80cb04d0e5493fca2be41b4ba504a"
},
"downloads": -1,
"filename": "libmount-0.9.tar.gz",
"has_sig": false,
"md5_digest": "175897121291e60bc7f98f78dac1c823",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2815,
"upload_time": "2012-02-05T19:18:30",
"url": "https://files.pythonhosted.org/packages/fe/4d/3bd201d78d9ff51c2eeb278603dae915ef695999fb4cc132a28cc6f1cd0a/libmount-0.9.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "175897121291e60bc7f98f78dac1c823",
"sha256": "016b61dfce3e8b0a5ea9367dc44cb54a6fc80cb04d0e5493fca2be41b4ba504a"
},
"downloads": -1,
"filename": "libmount-0.9.tar.gz",
"has_sig": false,
"md5_digest": "175897121291e60bc7f98f78dac1c823",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2815,
"upload_time": "2012-02-05T19:18:30",
"url": "https://files.pythonhosted.org/packages/fe/4d/3bd201d78d9ff51c2eeb278603dae915ef695999fb4cc132a28cc6f1cd0a/libmount-0.9.tar.gz"
}
]
}