Skip to main content

PyCrawlerX is a Python CLI tool to crawl through directories and execute files.

Project description

PyCrawlerX

PyCrawlerX is a Python CLI tool to crawl through directories and execute files.

Installation

python -m pip install pycrawlerx

Example Usage

Read input from command line

import sys
from PyCrawlerX import PyCrawlerX

if __name__ == "__main__":
    pcx = PyCrawlerX()
    code_folder = sys.argv[1]
    pcx.run_pycrawlerx(folder_path = code_folder)

Read input from the script

from PyCrawlerX import PyCrawlerX

if __name__ == "__main__":
    pcx = PyCrawlerX()
    code_folder = './test'
    pcx.run_pycrawlerx(folder_path = code_folder)

Load environment variables

from PyCrawlerX import PyCrawlerX

if __name__ == "__main__":
    pcx = PyCrawlerX()
    code_folder = './test'
    pcx.run_pycrawlerx(folder_path = code_folder)
    pcx.load_environment_variables(key_value = {"key": "value"})

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

PyCrawlerX-0.0.4.tar.gz (4.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