search by word
Project description
Find enige 1.2
Table of Contents
Installation
pip install find_word
How to use
- Add to your code:
from find_word import search_word
- To start using all the features of the library you need to enter 2 commands:
a = search_word()
a.search('disk','format','word')
Where the:
disk
parameter is entered as the disk name ('D', 'C', ...)
format
parameter is entered as the format in which the file is written:
'txt'
- text format
'doc'
- word document format
'exl'
- table file format exel
'pdf'
- Portable Document Format
'all'
- if you want to search in all formats at once
parameter word
:
'word'
- the search word
- If you want to get a list of paths with all the files found, then use the construction:
a = search_word()
a.search('D', 'all','hello')
a.list()
- If you want to open the found files use the construction:
a = search_word()
a.search('D', 'all','hello')
a.opening()
By default, you can choose whether to open the file or not, but you can add any parameter and all files will open at once (example: a.opening('x')
- If you want to copy the file, then you just need to enter the command:
a = search_word()
a.search('D', 'all','hello')
a.copying('Disk:\\path')
Example
from find_word import search_word
a = search_word()
a.search('D', 'txt','word')
a.copying('E:\\d')
a.opening()
a.list()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
find_word-1.2.tar.gz
(3.4 kB
view hashes)