Skip to main content

Python tool for finding files in a set of paths. Based on the Hike ruby gem

Project description

Crawl is a port of the Ruby gem Hike to Python. Crawl will scan through a list of given folders for a requested file. You can also configure it to just match any of a given list of extensions.

While Crawl does work at the basic level, it is not yet a complete port of Hike, as it doesn’t implement Hike’s index caching for speedier responses, although I do intend to add that.

Install

$ pip install crawl

Usage

import crawl
trail = crawl.Crawl()
trail.append_paths('lib','foo','bar')
trail.append_extensions('js','py')
trail.find('blah')

License

Copyright 2012 Will McKenzie

Crawl is licensed under the MIT License, please see the LICENSE file for more details.

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

Crawl-0.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page