Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python module refactor #158

Merged
merged 6 commits into from
Aug 10, 2022
Merged

Python module refactor #158

merged 6 commits into from
Aug 10, 2022

Conversation

kavitharaju
Copy link
Collaborator

 - Enum Format.ST = "syntax-tree"
 - Class data member USFMParser.syntax_tree
 - Class data member USFMParser.USFM_bytes
 - Class member function USFMParser.to_syntax_tree()
 - Class member function USFMParser.to_dict()
 - Class member function USFMParser.to_list()
 - Class member function USFMParser.to_markdown()
 - Class member function USFMParser.to_usx()
@@ -1,2 +1,4 @@
tree-sitter==0.20.0
jupyterlab==3.3.2
jupyterlab==3.4.4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is okay for now. But maybe you should move jupyterlab to a dev-requirements.txt file so that it doesn't get mixed up with the actual package dependencies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am looking into how python modules are packaged for publishing on pypi. I think this file is not used there. But I shall make changes if required to separate it as dev dependency in a later PR

def __init__(self, usfm_string):
# super(USFMParser, self).__init__()
self.USFM = usfm_string
self.USFMbytes = None
self.AST = None
self.USFM_bytes = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep all the attribute names in lowercase for consistency sake.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@joelthe1 joelthe1 merged commit 990f8b1 into Bridgeconn:version-3 Aug 10, 2022
@kavitharaju kavitharaju deleted the dev branch August 11, 2022 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants