Skip to main content

Tools for Python projects

Project description

mauztoolslib – Dokumentation

Dies ist die Dokumentation für die mauztoolslib-Bibliothek, die derzeit nur disklib enthält, um Festplatten- und Speicherinformationen abzurufen.


Installation

pip install mauztoolslib

Hinweis: mauztoolslib enthält aktuell nur disklib.


Verwendung

Hier ein Beispiel für die Nutzung von disklib innerhalb von mauztoolslib:

from mauztoolslib.disklib import DiskUsage

# DiskUsage für Laufwerk C: in GB
disk = DiskUsage("C:/", "GB")

disk.free_on()
disk.usage_on()
disk.total_on()

print(disk)

Klassen und Methoden

DiskUsage

Die DiskUsage-Klasse ermöglicht das Abrufen von Festplattennutzungsinformationen.

Initialisierung

disk = DiskUsage(pfad: str, einheit: str = "GB")
  • pfad: Pfad des Laufwerks oder Verzeichnisses.
  • einheit: Einheit für die Anzeige (B, KB, MB, GB, TB). Standard ist "GB".

Methoden

  • free_on(): Ruft den freien Speicherplatz ab.
  • usage_on(): Ruft den verwendeten Speicherplatz ab.
  • total_on(): Ruft den gesamten Speicherplatz ab.
  • free_print(sprache: str = "DE") -> str: Gibt freien Speicherplatz als String zurück.
  • usage_print(sprache: str = "DE") -> str: Gibt verwendeten Speicherplatz als String zurück.
  • total_print(sprache: str = "DE") -> str: Gibt gesamten Speicherplatz als String zurück.
  • get_einheit_auto(update: bool = False) -> str: Bestimmt automatisch die passende Einheit.

Fehlerbehandlung

  • NotValidPfadError: Ausgelöst, wenn der angegebene Pfad ungültig ist.
  • NotValidEinheitError: Ausgelöst, wenn die angegebene Einheit ungültig ist.

Lizenz

mauztoolslib ist unter der MIT-Lizenz lizenziert.

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

mauztoolslib-0.1.0.post1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mauztoolslib-0.1.0.post1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file mauztoolslib-0.1.0.post1.tar.gz.

File metadata

  • Download URL: mauztoolslib-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mauztoolslib-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 cfc8ff4f9627752a951be44f91ca73a32b79a4a76319cc07a744e50280b737a2
MD5 1c475302ec23bcfbbce842a19434d765
BLAKE2b-256 c5c025ef59ab1d5f2cdebd4a510ad867c04ba8f9bf6960a44284e04d933ba706

See more details on using hashes here.

File details

Details for the file mauztoolslib-0.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for mauztoolslib-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 26514d69d0d9fd596b902b987963236b11add226b9fb995cc4dad0a2095cf552
MD5 0796eb9ff68ce28843096f7fb032f10f
BLAKE2b-256 43197fb4111286baa5e813582a9fe683ef0d95cb3b8180a064f706363b14abe1

See more details on using hashes here.

Supported by

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