Skip to main content

pylibblkid

PyPI version

Python bindings for libblkid library.

import blkid

pr = blkid.Probe()
pr.set_device("/dev/sda1")

pr.enable_superblocks(True)
pr.set_superblocks_flags(blkid.SUBLKS_TYPE | blkid.SUBLKS_USAGE | blkid.SUBLKS_UUID)

pr.do_safeprobe()

# print usage
pr["USAGE"]

Download files

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

Source Distribution

pylibblkid-0.3.tar.gz (34.3 kB view details)

Uploaded Source

File details

Details for the file pylibblkid-0.3.tar.gz.

File metadata

  • Download URL: pylibblkid-0.3.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for pylibblkid-0.3.tar.gz
Algorithm Hash digest
SHA256 e1da36b47b96345199abbc383051cfa1470555f1dc624a012d1c8b9b0aff75fc
MD5 8cf6966e301018d983ed8ab47d8ff1eb
BLAKE2b-256 67a3c7cbe68dc5da0d891adeae3dcf66438f521c026f3134a2b221dd0b2b2d76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3 This release

1 file

0.2

1 file

Supported by

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