Skip to main content

A Python library for crawling and analyzing file system hierarchies

Project description

Kombat

A Python library for crawling and analyzing file system hierarchies.

NOTE: Kombat can be found on PyPI.

Installation

pip install kombat

Features

  • Rich File System Metadata

    • File and directory size tracking with aggregation
    • Modification and access timestamps
    • File permissions and security attributes
    • MIME type detection
    • File hash calculation (SHA256) for duplicate detection
  • Multiple Export Formats

    • Interactive HTML visualization with expandable tree view
    • JSON export for structured data analysis
    • CSV export for spreadsheet compatibility

Usage

Basic crawling:

from kombat.crawlers.system_crawler import SystemCrawler

crawler = SystemCrawler()
crawler.build_hierarchy("/path/to/directory")

Export and visualization:

# Generate interactive HTML view
crawler.visualize_with_html("output.html")

# Export to JSON
crawler.export_to_json("hierarchy.json")

# Export to CSV
crawler.export_to_csv("hierarchy.csv")

Advanced options:

# Filter by extensions and limit depth
crawler.build_hierarchy(
    "/path/to/directory",
    extensions={'.txt', '.pdf'},
    depth=2
)

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

kombat-0.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

kombat-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file kombat-0.1.2.tar.gz.

File metadata

  • Download URL: kombat-0.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for kombat-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6d8e6c6b41ea85eadd2a5c8f6a280057b0bc1c219169dc4c712169f9401935b7
MD5 05c54623e402c0be3e4ab5d8d2d024f6
BLAKE2b-256 9c0c1fa58995080f6e3544cb7a0d3943328a1d1a1a8d78a9edca47cd521f3531

See more details on using hashes here.

File details

Details for the file kombat-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kombat-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for kombat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a25b0669e2b27bdc43f38b8672120bff459c54dd2561267c89b62509dc8fa8
MD5 d349f6ea486e3050106a79ae7651d995
BLAKE2b-256 ccc9ebb923cd6bd98521d1422c2103b0b79a9e1da54c5f11af619b957a8e3480

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