Validation improvements
Description
Cleaned up the code to make it more readable and minimized some of the repetitiveness that existed. Renamed the file from Main.py to validate.py. This also includes the ability for the terminal to ask which file you would like to analyze and then automatically opens the report generated.
Related Issues
N/A
Changes Made
- Added
open_report() - Renamed
file_type()toanalyze_file()and cleaned this file up a good amount - Replaced all
with open(report_file, 'a') as file:withopen_report()and a f-string for easier readability - Created
main()at the bottom of the file that now handles the terminal workflow and opening the report automatically
Screenshots (if applicable)
Checklist
Please review and check the following before submitting your pull request:
- [x] I have followed the project's coding conventions and guidelines
- [x] I have tested my changes thoroughly
- [ ] I have added/updated relevant documentation
- [x] My code follows best practices and is easy to understand
- [ ] I have added necessary test cases (if applicable)
- [ ] All existing tests are passing
- [x] My changes do not introduce any new warnings or errors
Additional Notes
N/A
Someone is attempting to deploy a commit to a Personal Account owned by @neokd on Vercel.
@neokd first needs to authorize it.
Gave it more of a pleasant looking prompt
@Bchass is this under hacktoberfest?
@Bchass appreciation for your work, can you modify your code that user can give their own directory path so that they can run this code on any dataset.
@Bchass is this under hacktoberfest?
Not originally when I first started on these changes. But now I can see a new issue open regarding data validation.
Yeah that's regarding generation of an entire report like format for each dataset.we'll slowly develop more on that issue into chunks so can work with any type of dataset
@Bchass appreciation for your work, can you modify your code that user can give their own directory path so that they can run this code on any dataset.
Added the requested functionality
For printing the data store house we can use a existing python pip package which does this for us.
Package name?
For printing the data store house we can use a existing python pip package which does this for us.
Package name?
There are multiple terminal enhancement packages. https://pypi.org/project/art/ - this will help you create a similar visualization you implemented using print.
few other I got from search https://github.com/Textualize/rich/tree/master#rich-library https://pypi.org/project/simple-term-menu/
@Gladwin001 , @Bchass anything more to add on this PR?
I'm all set on my end
@Bchass Thanks for all your contribution 🥇 🌟