Skip to main content

A python package that crawls a directory recursively and returns the file names and file stats as well as execute a custom function passed as an argument.

Project description

🚀 CrawlerUgo

Crawler Ugo is a Python package for recursively crawling directories, collecting file stats, and executing custom actions on each file.
It’s perfect for building file search tools, batch processors, or custom directory explorers.


📦 Installation

$ pip install crawlerugo

Usage

crawl() takes three arguments => path (str), max_depth (int), function (callable)

from crawlerugo.crawler import crawl
import os

# Set your target directory
base_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')

def main():
    # Crawl the directory and run a custom action on each file
    result = crawl(base_dir, max_depth=1000, action=lambda f: f)
    print("Crawled Data:", result)

if __name__ == "__main__":
    main()

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

crawlerugo-0.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

crawlerugo-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file crawlerugo-0.0.3.tar.gz.

File metadata

  • Download URL: crawlerugo-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for crawlerugo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 309c892ff40ec54d8cc0830f102c363e66d3d0ac60ea9455528dd4118d5e973a
MD5 230a4c81459a464d01dc4bd1fc54c485
BLAKE2b-256 541134d3dad0ebb0bd3959745533dd729f0fdc7eed9ca86c08e798738e37d59c

See more details on using hashes here.

File details

Details for the file crawlerugo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: crawlerugo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for crawlerugo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 034d607d31fb39064e7285ab52ffacb5485f0c3ef7ab73b831f553c662529dea
MD5 8ab67ba9021baf947f283fdfd3e6689a
BLAKE2b-256 5b793f57e3c549990f9517e89517aec93a1259d44918374f515aacf942d65ede

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