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', ...)
formatparameter 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 details)
File details
Details for the file find_word-1.2.tar.gz.
File metadata
- Download URL: find_word-1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
359d9b651267bc15e06d5f7d5b7620011756c126f0ad1714f4c86031784c4694
|
|
| MD5 |
f1a5063aff61f6f84bdef9a64c25c34e
|
|
| BLAKE2b-256 |
be23b47cca6d377604835e824cf0997bd1e38b407c7192a5f5c75d3b6dac71db
|