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.1.tar.gz (21.5 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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for folder_indexer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dfab4fc6e1a4f2244ecb3bb4cf4f3dca125105de832ff96398852be6be215066
MD5 b5144a499e50d0b7dc02f2e8f596e1fb
BLAKE2b-256 b28b9c5729a4297c636fa208e0e65bd8d3ba6c3f8ae7592cfd2a108ed74135dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for folder_indexer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73d32a75f059cf53dbce15e27b214b51f5002e5409642350a5d58cf03e0e4c3c
MD5 f642de82230afa06fa63c5589cb13bec
BLAKE2b-256 377af5ad1934cc47a4b2e956c2050ac6c42317b4d2fd4e97e579c70b277b768c

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