Skip to main content

A Python script to index a large folder structure into a parquet file, along with metadata

Project description

folder-indexer-py

A Python script to index a large folder structure into a parquet file, along with metadata

Description

This script is useful for searching for files stored on a reasonably slow disk from backups, especially in where you aren't sure about the files are are searching for.

Use tools like DBeaver and DuckDB to query and explore the generated index.

Usage

uv tool install folder_indexer

folder_indexer -i /path/to/input/folder -o /path/to/output/folder

Metadata Indexed and Output

The output parquet file (file_index.parquet) has the following columns:

  • file_path
  • folder_path
  • file_name
  • file_size_bytes
  • entry_kind
  • md5_hex
  • sha256_base64
  • date_created
  • date_modified
  • magic_file_type_1
  • first_100_bytes
  • last_100_bytes
  • timestamp_crawled
  • indexing_start_timestamp

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

folder_indexer-0.2.2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

folder_indexer-0.2.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file folder_indexer-0.2.2.tar.gz.

File metadata

  • Download URL: folder_indexer-0.2.2.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for folder_indexer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3b5dffde7f7040df308366178be91ba7bc4392b76b48b930ffd95a79d674551a
MD5 93fde2d6b44d98863de477c67072fb3c
BLAKE2b-256 05a64292e9234d4b3eebbfc15ea661ce02d3827343bd47ddcc422a90dda08df0

See more details on using hashes here.

File details

Details for the file folder_indexer-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for folder_indexer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 299a439dba76fba1f99d773149434d9ab86c9d99c7c164e823a77c5412401081
MD5 9d5e023b5a25d34163c0f5f7e8f9a1f6
BLAKE2b-256 c64f4b196905de95e8821ae857c848ea2ba84cae4e9a22a679bd40b99349b328

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