diff --git a/extractor/__init__.py b/nirjas/__init__.py similarity index 78% rename from extractor/__init__.py rename to nirjas/__init__.py index 81fa6cd..be4acf5 100644 --- a/extractor/__init__.py +++ b/nirjas/__init__.py @@ -1,4 +1,4 @@ -from extractor.main import * +from nirjas.main import * def extract(file): return file_runner(file) diff --git a/extractor/binder.py b/nirjas/binder.py similarity index 100% rename from extractor/binder.py rename to nirjas/binder.py diff --git a/extractor/languages/__init__.py b/nirjas/languages/__init__.py similarity index 100% rename from extractor/languages/__init__.py rename to nirjas/languages/__init__.py diff --git a/extractor/languages/c.py b/nirjas/languages/c.py similarity index 99% rename from extractor/languages/c.py rename to nirjas/languages/c.py index 63362f1..031cd10 100644 --- a/extractor/languages/c.py +++ b/nirjas/languages/c.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def cExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/c_sharp.py b/nirjas/languages/c_sharp.py similarity index 98% rename from extractor/languages/c_sharp.py rename to nirjas/languages/c_sharp.py index b7966d6..8f427dd 100644 --- a/extractor/languages/c_sharp.py +++ b/nirjas/languages/c_sharp.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def c_sharpExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/cpp.py b/nirjas/languages/cpp.py similarity index 99% rename from extractor/languages/cpp.py rename to nirjas/languages/cpp.py index f1e7aa2..f4917a8 100644 --- a/extractor/languages/cpp.py +++ b/nirjas/languages/cpp.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def cppExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/css.py b/nirjas/languages/css.py similarity index 98% rename from extractor/languages/css.py rename to nirjas/languages/css.py index f34f15f..e10f5ef 100644 --- a/extractor/languages/css.py +++ b/nirjas/languages/css.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def cssExtractor(file): output = CommentSyntax() diff --git a/extractor/languages/go.py b/nirjas/languages/go.py similarity index 98% rename from extractor/languages/go.py rename to nirjas/languages/go.py index 2cc8653..56a739f 100644 --- a/extractor/languages/go.py +++ b/nirjas/languages/go.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def goExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/haskell.py b/nirjas/languages/haskell.py similarity index 98% rename from extractor/languages/haskell.py rename to nirjas/languages/haskell.py index 3106569..a273f76 100644 --- a/extractor/languages/haskell.py +++ b/nirjas/languages/haskell.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def haskellExtractor(file): diff --git a/extractor/languages/html.py b/nirjas/languages/html.py similarity index 98% rename from extractor/languages/html.py rename to nirjas/languages/html.py index 30a06bf..05c7c4f 100644 --- a/extractor/languages/html.py +++ b/nirjas/languages/html.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def htmlExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/java.py b/nirjas/languages/java.py similarity index 98% rename from extractor/languages/java.py rename to nirjas/languages/java.py index d74f307..dc1b6d8 100644 --- a/extractor/languages/java.py +++ b/nirjas/languages/java.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def javaExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/javascript.py b/nirjas/languages/javascript.py similarity index 99% rename from extractor/languages/javascript.py rename to nirjas/languages/javascript.py index 5058167..2e9511f 100644 --- a/extractor/languages/javascript.py +++ b/nirjas/languages/javascript.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def javascriptExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/kotlin.py b/nirjas/languages/kotlin.py similarity index 98% rename from extractor/languages/kotlin.py rename to nirjas/languages/kotlin.py index 8fe54eb..01ec0d1 100644 --- a/extractor/languages/kotlin.py +++ b/nirjas/languages/kotlin.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def kotlinExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/matlab.py b/nirjas/languages/matlab.py similarity index 98% rename from extractor/languages/matlab.py rename to nirjas/languages/matlab.py index be052ea..0374fae 100644 --- a/extractor/languages/matlab.py +++ b/nirjas/languages/matlab.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def matlabExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/perl.py b/nirjas/languages/perl.py similarity index 98% rename from extractor/languages/perl.py rename to nirjas/languages/perl.py index 490ed9e..b0c56e2 100644 --- a/extractor/languages/perl.py +++ b/nirjas/languages/perl.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def perlExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/php.py b/nirjas/languages/php.py similarity index 98% rename from extractor/languages/php.py rename to nirjas/languages/php.py index 0fb5a74..3bdf899 100644 --- a/extractor/languages/php.py +++ b/nirjas/languages/php.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def phpExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/python.py b/nirjas/languages/python.py similarity index 99% rename from extractor/languages/python.py rename to nirjas/languages/python.py index 47ce665..8eeb4bc 100644 --- a/extractor/languages/python.py +++ b/nirjas/languages/python.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def pythonExtractor(file): diff --git a/extractor/languages/r.py b/nirjas/languages/r.py similarity index 98% rename from extractor/languages/r.py rename to nirjas/languages/r.py index 9a7128a..4d2ed06 100644 --- a/extractor/languages/r.py +++ b/nirjas/languages/r.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def rExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/ruby.py b/nirjas/languages/ruby.py similarity index 98% rename from extractor/languages/ruby.py rename to nirjas/languages/ruby.py index f91bf4a..4e59ae5 100644 --- a/extractor/languages/ruby.py +++ b/nirjas/languages/ruby.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def rubyExtractor(file): diff --git a/extractor/languages/rust.py b/nirjas/languages/rust.py similarity index 98% rename from extractor/languages/rust.py rename to nirjas/languages/rust.py index 3b6ec61..9bbaa6f 100644 --- a/extractor/languages/rust.py +++ b/nirjas/languages/rust.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def rustExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/scala.py b/nirjas/languages/scala.py similarity index 98% rename from extractor/languages/scala.py rename to nirjas/languages/scala.py index 167030f..34c390a 100644 --- a/extractor/languages/scala.py +++ b/nirjas/languages/scala.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def scalaExtractor(file): diff --git a/extractor/languages/shell.py b/nirjas/languages/shell.py similarity index 98% rename from extractor/languages/shell.py rename to nirjas/languages/shell.py index e4a3214..ff907ec 100644 --- a/extractor/languages/shell.py +++ b/nirjas/languages/shell.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def shellExtractor(file): result = CommentSyntax() diff --git a/extractor/languages/swift.py b/nirjas/languages/swift.py similarity index 98% rename from extractor/languages/swift.py rename to nirjas/languages/swift.py index 5684956..1c64096 100644 --- a/extractor/languages/swift.py +++ b/nirjas/languages/swift.py @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ''' -from extractor.binder import * +from nirjas.binder import * def swiftExtractor(file): diff --git a/extractor/languages/tests/__init__.py b/nirjas/languages/tests/__init__.py similarity index 100% rename from extractor/languages/tests/__init__.py rename to nirjas/languages/tests/__init__.py diff --git a/extractor/languages/tests/test_c.py b/nirjas/languages/tests/test_c.py similarity index 100% rename from extractor/languages/tests/test_c.py rename to nirjas/languages/tests/test_c.py diff --git a/extractor/languages/tests/test_c_sharp.py b/nirjas/languages/tests/test_c_sharp.py similarity index 100% rename from extractor/languages/tests/test_c_sharp.py rename to nirjas/languages/tests/test_c_sharp.py diff --git a/extractor/languages/tests/test_cpp.py b/nirjas/languages/tests/test_cpp.py similarity index 100% rename from extractor/languages/tests/test_cpp.py rename to nirjas/languages/tests/test_cpp.py diff --git a/extractor/languages/tests/test_css.py b/nirjas/languages/tests/test_css.py similarity index 100% rename from extractor/languages/tests/test_css.py rename to nirjas/languages/tests/test_css.py diff --git a/extractor/languages/tests/test_go.py b/nirjas/languages/tests/test_go.py similarity index 100% rename from extractor/languages/tests/test_go.py rename to nirjas/languages/tests/test_go.py diff --git a/extractor/languages/tests/test_haskell.py b/nirjas/languages/tests/test_haskell.py similarity index 100% rename from extractor/languages/tests/test_haskell.py rename to nirjas/languages/tests/test_haskell.py diff --git a/extractor/languages/tests/test_html.py b/nirjas/languages/tests/test_html.py similarity index 100% rename from extractor/languages/tests/test_html.py rename to nirjas/languages/tests/test_html.py diff --git a/extractor/languages/tests/test_java.py b/nirjas/languages/tests/test_java.py similarity index 100% rename from extractor/languages/tests/test_java.py rename to nirjas/languages/tests/test_java.py diff --git a/extractor/languages/tests/test_javascript.py b/nirjas/languages/tests/test_javascript.py similarity index 100% rename from extractor/languages/tests/test_javascript.py rename to nirjas/languages/tests/test_javascript.py diff --git a/extractor/languages/tests/test_kotlin.py b/nirjas/languages/tests/test_kotlin.py similarity index 100% rename from extractor/languages/tests/test_kotlin.py rename to nirjas/languages/tests/test_kotlin.py diff --git a/extractor/languages/tests/test_matlab.py b/nirjas/languages/tests/test_matlab.py similarity index 100% rename from extractor/languages/tests/test_matlab.py rename to nirjas/languages/tests/test_matlab.py diff --git a/extractor/languages/tests/test_perl.py b/nirjas/languages/tests/test_perl.py similarity index 100% rename from extractor/languages/tests/test_perl.py rename to nirjas/languages/tests/test_perl.py diff --git a/extractor/languages/tests/test_php.py b/nirjas/languages/tests/test_php.py similarity index 100% rename from extractor/languages/tests/test_php.py rename to nirjas/languages/tests/test_php.py diff --git a/extractor/languages/tests/test_python.py b/nirjas/languages/tests/test_python.py similarity index 100% rename from extractor/languages/tests/test_python.py rename to nirjas/languages/tests/test_python.py diff --git a/extractor/languages/tests/test_r.py b/nirjas/languages/tests/test_r.py similarity index 100% rename from extractor/languages/tests/test_r.py rename to nirjas/languages/tests/test_r.py diff --git a/extractor/languages/tests/test_ruby.py b/nirjas/languages/tests/test_ruby.py similarity index 100% rename from extractor/languages/tests/test_ruby.py rename to nirjas/languages/tests/test_ruby.py diff --git a/extractor/languages/tests/test_rust.py b/nirjas/languages/tests/test_rust.py similarity index 100% rename from extractor/languages/tests/test_rust.py rename to nirjas/languages/tests/test_rust.py diff --git a/extractor/languages/tests/test_scala.py b/nirjas/languages/tests/test_scala.py similarity index 100% rename from extractor/languages/tests/test_scala.py rename to nirjas/languages/tests/test_scala.py diff --git a/extractor/languages/tests/test_shell.py b/nirjas/languages/tests/test_shell.py similarity index 100% rename from extractor/languages/tests/test_shell.py rename to nirjas/languages/tests/test_shell.py diff --git a/extractor/languages/tests/test_swift.py b/nirjas/languages/tests/test_swift.py similarity index 100% rename from extractor/languages/tests/test_swift.py rename to nirjas/languages/tests/test_swift.py diff --git a/extractor/languages/text.py b/nirjas/languages/text.py similarity index 100% rename from extractor/languages/text.py rename to nirjas/languages/text.py diff --git a/extractor/main.py b/nirjas/main.py similarity index 98% rename from extractor/main.py rename to nirjas/main.py index 42ea83f..f589f9e 100644 --- a/extractor/main.py +++ b/nirjas/main.py @@ -24,8 +24,8 @@ import json import argparse -from extractor.binder import * -from extractor.languages import * +from nirjas.binder import * +from nirjas.languages import * class CommentExtractor: diff --git a/extractor/testScript.py b/nirjas/testScript.py similarity index 100% rename from extractor/testScript.py rename to nirjas/testScript.py diff --git a/setup.py b/setup.py index 58fec9f..d6decec 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ setup( name='Nirjas', - version='0.0.2', + version='0.0.3', description='A Python library to extract comments and source code out of your file(s)', long_description=long_description, long_description_content_type='text/markdown', @@ -47,12 +47,12 @@ author_email='classicayush@gmail.com, kaushlendrapratap.9837@gmail.com', classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], - keywords='Comment Extractor, Code Comment Extractor, Source Code Extractor, Source Extractor', + keywords='Nirjas,Code Comment, Comment Extractor, Code Comment Extractor, Source Code Extractor, Source Extractor', packages=find_packages(), python_requires = ">=3", entry_points = { 'console_scripts': [ - 'nirjas = extractor.main:main' + 'nirjas = nirjas.main:main' ] }, ) \ No newline at end of file