Skip to main content

This python module provides support for retrieving mount information and assists in mounting and unmounting.

Project description

jk_mounting

Introduction

This python module provides support for retrieving mount information and assists in mounting and unmounting.

Information about this module can be found here:

How to use this module

Import

To import this module use the following statement:

import jk_mounting

Retrieve Information

In order to get information about what kind of devices are mounted, use the following command:

mounter = jk_mounting.Mounter()

for mi in mounter.getMountInfos(isRegularDevice = True):
	print(mi)

Mount a Device

To mount a device you can use the following command:

mounter = jk_mounting.Mounter()

mounter.mount("/dev/sdd1", "/mnt")

Contact Information

This is Open Source code. That not only gives you the possibility of freely using this code it also allows you to contribute. Feel free to contact the author(s) of this software listed below, either for comments, collaboration requests, suggestions for improvement or reporting bugs:

License

This software is provided under the following license:

  • Apache Software License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jk_mounting-0.2021.11.15.tar.gz (13.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page