#!/bin/env python

#    A-John-Shots - Python module/library for saving Security Hash Algorithms into JSON format.
#    Copyright (C) 2017  Funilrys - Nissar Chababy <contact at funilrys dot com>
#
#    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#    SOFTWARE.

#    Original Version: https://github.com/funilrys/A-John-Shots


from .core import Core


def get(path, **args):
    """
    A simple script to get Security Hash Algorithms into JSON format

    :param path: A string, the path of the file or the directory we have to return.
    :param search: A string, the pattern the file have to match in ordrer to be included in the results
    :param output: A bool, Print on screen (False), print on file (True)
    :param output_destination: A string, the destination of the results
    :param algorithm: A string, the algorithm to use. Possibility: all, sha1, sha224, sha384, sha512
    :param exclude: A list, the list of path, filename or in general, a pattern to exclude
    """

    return Core(path, **args).get()

@@ -757,14 +757,168 @@
 ts%0A%0A
-%0Afrom 
+%22%22%22%0AThis is the main entry to a_john_shots.%0AA John Shots is a Python module/library for saving Security Hash Algorithms%0Ainto JSON format.%0A%22%22%22%0A%0Afrom a_john_shots
 .cor
@@ -1042,32 +1042,52 @@
     
-:param
+Arguments:%0A        -
  path:
- A
  str
-ing, t
+%0A            T
 he p
@@ -1140,28 +1140,26 @@
 turn
-.
 %0A    
-:param
+    -
  search:
  A s
@@ -1154,28 +1154,34 @@
  search:
- A
  str
-ing, t
+%0A            T
 he patte
@@ -1212,17 +1212,16 @@
 h in ord
-r
 er to be
@@ -1240,35 +1240,47 @@
  the
- results%0A    :param
+%0A            results.%0A        -
  output:
  A b
@@ -1279,16 +1279,31 @@
 put:
- A
  bool
-,
+%0A            True:
  Pri
@@ -1312,25 +1312,23 @@
  on 
-screen (
+file %7C 
 False
-), p
+: P
 rint
@@ -1340,97 +1340,32 @@
 ile 
-(True)%0A    :param output_destination: A string, the destination of the results%0A    :param
+and on screen.%0A        -
  alg
@@ -1375,20 +1375,26 @@
 thm:
- A
  str
-ing, t
+%0A            T
 he a
@@ -1413,48 +1413,148 @@
 use.
- Possibility: all, sha1, sha224, sha384,
+%0A            Possibilities:%0A                - all%0A                - sha1%0A                - sha224%0A                - sha384%0A                -
  sha
@@ -1565,14 +1565,13 @@
     
-:param
+    -
  exc
@@ -1579,18 +1579,27 @@
 ude:
- A
  list
-, t
+%0A            T
 he l
@@ -1619,16 +1619,17 @@
 filename
+s
  or in g
@@ -1656,16 +1656,56 @@
  exclude
+.%0A%0A    Returns:%0A        Pretty dict/JSON
 %0A    %22%22%22

Update docstrings