Skip to content

added dynamic parameters for reuse and updated readme.md #6

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ManasMalla
Copy link

Signed-off-by: Manas Malla manasmalla.dev@gmail.com

  1. Update README to add instructions for usage of the script #3
    Updated README.md for documenting the changes required in the files for every event.
  2. Get input CSV file name from command line #1
    Updated the serializer and deserializer to take in dynamic inputs, like the csv file, and generate the respective .side file

Also updated deserializer to create the generated directory, if it doesn't exist

Signed-off-by: Manas Malla <manasmalla.dev@gmail.com>

Added input statements and applied processing to extract information for more dyanmicity and reusablility when generating scripts for multiple events and updated readme for more understanding on the params to change for specific events
Copy link
Member

@sampathbalivada sampathbalivada left a comment

Choose a reason for hiding this comment

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

Shared my review comments. Please look into them.

1. Chrome
Copy link
Member

Choose a reason for hiding this comment

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

Need more info here. Could you please move the README changes to a separate PR so that we can work on it in length?

def __init__(self) -> None:
print("Enter the name of the csv file")
csv_file_path = input()
Copy link
Member

Choose a reason for hiding this comment

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

Would be preferable to get the path from the command line using the argparse module.

https://docs.python.org/3/library/argparse.html

This parser should be in the root of the project.

@@ -26,40 +26,40 @@ def get_base_dict(self):
"""
fetches the base template
"""
return self.load_json("templates/base.json")
return self.load_json("../templates/base.json")
Copy link
Member

Choose a reason for hiding this comment

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

Using the prev directory specifier ../ depends on the current working directory.

If the user is executing from / this will not work.

If the user is executing from 'src/` the will work.

Using an argparser and generating absolute paths during runtime should fix this.

Copy link
Author

Choose a reason for hiding this comment

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

Updated it. --path and --csv have been added

@sampathbalivada
Copy link
Member

Hi @ManasMalla, I don't see the requested changes in the PR. Were you able to push the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants