Giter Site home page Giter Site logo

curiouslearner / taglask Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 444 KB

A light weight webapp made on Flask to index and search user files.

License: MIT License

Python 35.67% CSS 0.94% JavaScript 3.32% HTML 60.07%
webapp search-engine python filesearch

taglask's Introduction

TagLask

A light weight webapp made on Flask to index and search user files. It contains three files:

  • addtags.py
  • findmyfiles.py
  • webapp.py

addtags.py and findmyfiles.py can be used as a command line application too, seperately, without using the webapp.py

Addtags.py

Use this script to traverse a directory and add tags to it. It can be used as a command line application as following:

python addtags.py -h to ask for help and you'll get the following:

usage: addtags.py [-h] [-d DIRECTORY]

Index & alot tags to files.

optional arguments:
  -h, --help            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY
                        Recursively traverse given directory and alot tags.

To traverse a directory run addtags.py as following:

python addtags.py -d /home/

or

python addtags.py --directory /home/

This would index all the files under /home/ directory.

Now you can run findmyfiles.py to search for the files.

FindMyFiles.py

Use this script to find the files under the directory already traversed by addtags.py. It can be used as a command line application as the following:

python findmyfiles.py -h to ask for help and you'll get the following:

usage: findmyfiles.py [-h] [-f FILE] [-t TAG]

Find your files.

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  give filename/pattern to match files.
  -t TAG, --tag TAG     give the tag

It is optional to give filename but tag is essential. This application wouldn't work without tag. Here tag can be anything from pre-defined list (given at the end).

You can run findmyfiles as following:

python findmyfiles -t "WORD DOCUMENT"

OPTIONALLY, you can provide a filename too.

Webapp.py

You can simply run a webapp to traverse, index & search files.

Go to /add to add the files.

Go to /search to search the files.

Tags currently the app has:

* 'TEXT' 
* 'PYTHON' 
* 'PHOTO' 
* 'C' 
* 'C++' 
* 'MEDIA' 
* 'HTML' 
* 'CSS' 
* 'JAVASCRIPT'
* 'JAVA' 
* 'ANDROID' 
* 'WINDOWS EXECUTABLE'
* 'WORD DOCUMENT' 
* 'PRESENTATION'
* 'PDF'
* 'COMPRESSED'
* 'ASP'
* 'JAVA SERVER PAGES'
* 'FONT'
* 'VOICE RECORDING'
* 'AUDIO'
* 'VIDEO'
* 'EXTENSIBLE MARKUP'
* 'OBJECT'
* 'COMPRESS'
* 'PHOTO'
* 'SYSTEM IMAGE'
* 'BINARY'
* 'CONFIGURATION'
* 'SHELL SCRIPT'
* 'ARCHIVE'
* 'JSON'
* 'NONE'

taglask's People

Contributors

curiouslearner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.