{"id":16452933,"url":"https://github.com/titaniumhocker/mount","last_synced_at":"2026-03-15T03:18:20.660Z","repository":{"id":153077136,"uuid":"623572097","full_name":"TitaniumHocker/mount","owner":"TitaniumHocker","description":"Python wrapper for sys/mount.h","archived":false,"fork":false,"pushed_at":"2024-08-20T11:21:48.000Z","size":145,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T07:27:49.942Z","etag":null,"topics":["mount","package","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mount/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TitaniumHocker.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-04T16:32:10.000Z","updated_at":"2024-08-20T11:21:46.000Z","dependencies_parsed_at":"2023-11-13T13:39:47.084Z","dependency_job_id":"7e2da047-388c-4622-9038-3686d44bd838","html_url":"https://github.com/TitaniumHocker/mount","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TitaniumHocker%2Fmount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TitaniumHocker%2Fmount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TitaniumHocker%2Fmount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TitaniumHocker%2Fmount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TitaniumHocker","download_url":"https://codeload.github.com/TitaniumHocker/mount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230047874,"owners_count":18164657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mount","package","python"],"created_at":"2024-10-11T10:14:13.301Z","updated_at":"2026-03-15T03:18:15.626Z","avatar_url":"https://github.com/TitaniumHocker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mount\n=====\n\n|pythonver|\n|license|\n|black|\n\n|lint|\n|mypy|\n\n\nSimple python wrapper around ``sys/mount.h``'s ``mount`` and ``umount2`` libc functions.\n\n\nInstallation\n------------\n\nThis package is available on PyPI, so it can be installed with `pip` or\nanother regular package manager you use:\n\n.. code:: sh\n\n   python3 -m pip install mount\n\n\nUsage\n-----\n\nThis library is a tiny wrapper around ``mount`` and ``umount2`` functions, so\nmost information about them you can find in ``man 2 mount`` and ``man 2 umount``.\n\nGenerally there are only 4 objects provided by this package:\n\n- ``mount.mount`` function that is wrapper around ``mount`` libc function.\n- ``mount.umount`` function that is wrapper around ``umount2`` libc function.\n- ``mount.MountFlag`` enum with available mount flags.\n- ``mount.UmountFlag`` enum with available umount flags.\n\n``mount`` and ``umount`` functions raises ``OSError`` on errors.\n\nHere is a simple script that will mount in-memory 1G temporary filesystem\nwith `NOEXEC` and `NOSYMFOLLOW` flags in temporary created directory:\n\n.. code:: python\n\n   from tempfile import TemporaryDirectory\n   from mount import mount, MountFlag\n\n\n   if __name__ == \"__main__\":\n       target = TemporaryDirectory()\n       mount(\"tmpfs\", target.name, \"tmpfs\", MountFlag.NOEXEC | MountFlag.NOSYMFOLLOW, \"size=1G\")\n       print(\"Mounted to: \", target)\n\n\n.. |lint| image:: https://github.com/TitaniumHocker/mount/workflows/lint/badge.svg\n\n.. |mypy| image:: https://github.com/TitaniumHocker/mount/workflows/mypy/badge.svg\n\n.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\n.. |pythonver| image:: https://img.shields.io/pypi/pyversions/mount\n   :alt: PyPI - Python Version\n\n.. |license| image:: https://img.shields.io/pypi/l/mount\n   :alt: PyPI - License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumhocker%2Fmount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitaniumhocker%2Fmount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumhocker%2Fmount/lists"}