Skip to content

codesrg/local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local

PyPI Pypi - License PyPI - Python Version

To browse local files.

Installation

pip install -U local

Usage

usage: local [options]

optional arguments:
  -h, --help       show this help message and exit
  -v, --version    show version number and exit.

to browse local files:
  keys             keyword to search
  -p , --path      root path
  -n, --no-prompt  do not interactively prompt for choice

Python Script

To browse local files.

from local import Local

loc = Local("../path").search("key", "words")
loc.display()  # to display results
loc.open("category-index")  # to open specified file/folder

Command Line

To browse local files.

$ local "key" "word" --path "/"
### matched results ###

Issues:

If you encounter any problems, please file an issue along with a detailed description.