Skip to content

Commit

Permalink
2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirudh Palaparthi committed Sep 7, 2021
1 parent 0f54e25 commit e743fd4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pyostie.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: Pyostie
Version: 2.6.1
Version: 2.6.2
Summary: A python package to OCR data and extract text with insights too.
Home-page: https://github.com/anirudhpnbb/Pyostie
Author: Anirudh Palaparthi
Expand Down
5 changes: 3 additions & 2 deletions build/lib/pyostie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class extract:

def __init__(self, filename, insights=False, tess_path=None, extension=None):
def __init__(self, filename, insights=False, tess_path=None, extension=None, sheet_name=None):
"""
:param filename:
:param insights:
Expand All @@ -19,6 +19,7 @@ def __init__(self, filename, insights=False, tess_path=None, extension=None):
self.insights = insights
self.path = tess_path
self.ext = extension
self.sheet = sheet_name

# noinspection PyBroadException
def start(self):
Expand Down Expand Up @@ -78,7 +79,7 @@ def ext_type_check(extnsn):

elif ext.upper() == "XLSX":
if isinstance(self.file, str):
excel = XLSXParser(self.file)
excel = XLSXParser(filename=self.file, sheet_name=self.sheet)
output = excel.extract_xlsx()
return output

Expand Down
Binary file removed dist/Pyostie-2.6.1.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/Pyostie-2.6.2.tar.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions pyostie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class extract:

def __init__(self, filename, insights=False, tess_path=None, extension=None):
def __init__(self, filename, insights=False, tess_path=None, extension=None, sheet_name=None):
"""
:param filename:
:param insights:
Expand All @@ -19,6 +19,7 @@ def __init__(self, filename, insights=False, tess_path=None, extension=None):
self.insights = insights
self.path = tess_path
self.ext = extension
self.sheet = sheet_name

# noinspection PyBroadException
def start(self):
Expand Down Expand Up @@ -78,7 +79,7 @@ def ext_type_check(extnsn):

elif ext.upper() == "XLSX":
if isinstance(self.file, str):
excel = XLSXParser(self.file)
excel = XLSXParser(filename=self.file, sheet_name=self.sheet)
output = excel.extract_xlsx()
return output

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name="Pyostie",

# version of the module
version="2.6.1",
version="2.6.2",

# Name of Author
author="Anirudh Palaparthi",
Expand Down

0 comments on commit e743fd4

Please sign in to comment.