Skip to main content

search by word

Project description

Find enige 1.2

Table of Contents

  1. Installation
  2. How to use

Installation

pip install find_word

How to use

  1. Add to your code:
from find_word import search_word

  1. 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

  1. 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()

  1. 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')

  1. 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

This version

1.2

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)

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