The idea of this script is to run a showcase on how to parse a csv file, with data from my portfolio using only pandas.
To ensure the robustness and reliability of the parser.py
script, error handling and logging have been significantly improved. These enhancements aim to catch potential errors during data parsing or file operations and provide a structured approach to monitoring and debugging the script's execution.
The parser.py
script now generates logs that can be found in the parser.log
file. These logs include timestamps, log levels, and messages that describe the script's execution flow and any errors encountered. To view the logs, simply open the parser.log
file with a text editor or a log viewer tool.
By analyzing the logs, users can gain insights into the script's behavior, identify any issues that occurred during execution, and understand the context in which these issues happened. This information is invaluable for debugging purposes and for improving the script's performance and reliability.
To run the tests for this repository, you can use the following command:
pytest
This will execute all the test cases defined in the tests
directory and provide a summary of the test results.
The parser.py
script generates logs that can be found in the parser.log
file. These logs include timestamps, log levels, and messages that describe the script's execution flow and any errors encountered. To view the logs, simply open the parser.log
file with a text editor or a log viewer tool.
By analyzing the logs, users can gain insights into the script's behavior, identify any issues that occurred during execution, and understand the context in which these issues happened. This information is invaluable for debugging purposes and for improving the script's performance and reliability.
To update the dependencies for this repository, you can use the following command:
pip install --upgrade -r requirements.txt
This will upgrade all the dependencies listed in the requirements.txt
file to their latest versions.
If you would like to contribute to this repository, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes and commit them with descriptive messages
- Push your changes to your fork
- Create a pull request to the main repository
Please ensure that your code follows the existing coding style and includes appropriate tests.