Skip to main content

package for parsing mft from volume. a python wheel

Project description

alt text

A Python extension for parsing the MFT on Windows 10 / Windows 11. Returns a list of tuples for all active entries on the volume. This can be used to find new or modified files efficiently as its not necessary to walk the file system.

Requires administrator privileges.

Install

pip install mftparser

Parameters

  • drive — drive letter e.g. "C:" (default "C:")
  • only_active — if False, return all entries (default True)
  • microseconds — if True, return timestamps as epoch microseconds (default False, returns NTFS ticks)
  • cutoff — takes timestamp format "2026-05-10T07:33:12" or "2026-05-10 07:33:12" in system time. return entries only from that time onward

Functions

results = mftparser.ScanVolume("C:", only_active=True, microseconds=False)

returns tuple with 18 fields per entry

recno, sequence_num, parent_recno, parent_sequence, in_use, path, name, size, hardlinks, is_dir, is_hardlink, has_ads, file_attribs, mod_time, creation_time, mft_mod, access_time, last_usn = results

or

(
recno, sequence_num, parent_recno, parent_sequence,
in_use, path, name, size, hardlinks,
is_dir, is_hardlink, has_ads, file_attribs,
mod_time, creation_time, mft_mod, access_time, last_usn
) = results

mftparser.ntfs_to_us(ts)

ntfs ticks to epoch microseconds

mftparser.ntfs_to_ns(ts)

ntfs ticks to epoch nanoseconds

recno, seq = mftparser.frn_to_entry(frn)

file reference number to record number and sequence

frn = mftparser.entry_to_frn(recno, seq)

record number and sequence to a file reference number

Example

results = mftparser.ScanVolume()
print(len(results))
for entry in results:
    is_dir = entry[9]
    if is_dir:
        continue
    ...

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mftparser-1.6.1-cp39-abi3-win_amd64.whl (15.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

File details

Details for the file mftparser-1.6.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: mftparser-1.6.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mftparser-1.6.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 baf0d9d85d6d1704dd4a33dfe91325228b22f4009013c59604705156cfee862b
MD5 b2bccd28ff38589f0fddb2bee773242b
BLAKE2b-256 908f933f478cb88b479f212523a1434c460c4bbf5e1146670bfc47c14cc6ba40

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