Metadata-Version: 2.4
Name: mount-image-udisks
Version: 0.1.1
Summary: Disk image mounting via udisksctl (Linux)
Author-email: Michael Banucu <michael.banucu@googlemail.com>
License-Expression: GPL-3.0-only
Project-URL: Homepage, https://github.com/MBanucu/mount-image-udisks
Project-URL: Repository, https://github.com/MBanucu/mount-image-udisks
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System :: Filesystems
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: unmount-image>=0.1.1
Dynamic: license-file

# mount-image-udisks

Disk image mounting via udisksctl (Linux).

[![PyPI version](https://img.shields.io/pypi/v/mount-image-udisks)](https://pypi.org/project/mount-image-udisks/)
[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue)](https://www.python.org/)
[![License](https://img.shields.io/github/license/MBanucu/mount-image-udisks)](LICENSE)
[![OS](https://img.shields.io/badge/OS-Linux-blue)](https://github.com/MBanucu/mount-image-udisks)

[![CI](https://img.shields.io/github/actions/workflow/status/MBanucu/mount-image-udisks/test.yml?branch=main)](https://github.com/MBanucu/mount-image-udisks/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/MBanucu/mount-image-udisks/branch/main/graph/badge.svg)](https://codecov.io/gh/MBanucu/mount-image-udisks)

[![Downloads total](https://pepy.tech/badge/mount-image-udisks)](https://pepy.tech/project/mount-image-udisks)
[![Downloads/month](https://pepy.tech/badge/mount-image-udisks/month)](https://pepy.tech/project/mount-image-udisks)
[![Downloads/week](https://pepy.tech/badge/mount-image-udisks/week)](https://pepy.tech/project/mount-image-udisks)

## Quick start

```python
from mount_image_udisks import mount_image, umount_image

device, mount_point = mount_image('/path/to/disk.img')
print(f'Mounted {device} at {mount_point}')
umount_image(device, mount_point)
```

## API

- `mount_image(path, fstype='exfat', options=None)` → `(device, mount_point)`
- `umount_image(device, mount_point=None)`
- `attach_image(path)` → `device`
- `detach_image(device)`
- `umount_inner(device)` — unmount only, used by the [mount-image](https://github.com/MBanucu/mount-image) orchestrator
- `detach_inner(device)` — detach only, used by the [mount-image](https://github.com/MBanucu/mount-image) orchestrator

## License

GPL-3.0-only
