-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Comparing changes
Open a pull request
base repository: dabeaz-course/practical-python
base: master
head repository: bbejeck/practical-python
compare: master
- 8 commits
- 22 files changed
- 1 contributor
Commits on Nov 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0de0576 - Browse repository at this point
Copy the full SHA 0de0576View commit details
Commits on Dec 21, 2023
-
Update output formatting in mortgage.py
The changes involve updating the print statements in the 'mortgage.py' file. This change will now print the 'total_paid' and 'principal' values as floating point numbers. The update enhances the readability of the output by ensuring numerical values are printed in a consistent format.
Configuration menu - View commit details
-
Copy full SHA for 7111e2b - Browse repository at this point
Copy the full SHA 7111e2bView commit details -
Add portfolio cost calculation in pcost.py
Implemented a function called 'portfolio_cost' in 'pcost.py' that calculates the total cost of portfolio based on provided data. It takes a 'filename' as an argument, reads the respective file and computes the total_cost by taking shares and cost into consideration. It also takes care of incorrect values by using try and exception. Completion of the Introduction section of the Python course
Configuration menu - View commit details
-
Copy full SHA for 4351480 - Browse repository at this point
Copy the full SHA 4351480View commit details
Commits on Dec 23, 2023
-
Implement portfolio reporting in report.py and enhance pcost.py
Added functionality in report.py to read portfolio and price data, generate a report, and display it. Adjusted the error handling in pcost.py to provide more detailed information about which row caused an issue during reading the file. The modification in pcost.py improved adherence to the DRY principle by using a dictionary for data record.
Configuration menu - View commit details
-
Copy full SHA for 40eb9a8 - Browse repository at this point
Copy the full SHA 40eb9a8View commit details
Commits on Dec 27, 2023
-
Implement data parsing and reporting features
Added several Python files to perform specific functions like reading stock data (ticker.py), trailing changes in stock data (follow.py), importing a report (importer.py), and defining a Portfolio class (portfolio.py). Improved handling of CSV parsing in 'fileparse.py' and updated 'report.py' to utilize newly added functions and classes. Updated .gitignore to exclude a CSV file and added a new Stock class in 'stock.py'.
Configuration menu - View commit details
-
Copy full SHA for 293078c - Browse repository at this point
Copy the full SHA 293078cView commit details -
Add typed properties and improve portfolio handling
Implemented typed properties for stock data in 'typedproperty.py' and updated the 'stock.py' to use these properties. Refactored 'portfolio.py' to handle the addition of 'Stock' instances, the creation from CSV data and improved various other methods such as iteration, length, and item access. Added a 'timethis.py' for timed function calls. Made usage of these enhancements in 'report.py'.
Configuration menu - View commit details
-
Copy full SHA for ea56d8e - Browse repository at this point
Copy the full SHA ea56d8eView commit details
Commits on Dec 29, 2023
-
Implement cost calculation and stock selling in Stock class
Enhanced the Stock class in 'stock.py' by adding the cost property which calculates the cost depending on the current shares and price, and a 'sell' method that adjusts the number of shares. Refactored the imports from 'typedproperty.py' to be more efficient. Also, created a 'test_stock.py' for unit testing of the modifications made in the Stock class.
Configuration menu - View commit details
-
Copy full SHA for 45305e1 - Browse repository at this point
Copy the full SHA 45305e1View commit details -
Reorganize code project into 'porty-app' directory
Moved the previous code from the 'Work' directory to a new 'porty-app' directory. The restructuring aims to keep the project more organized. This involved moving python scripts such as 'fileparse.py', 'follow.py', 'pcost.py', 'portfolio.py', and others into a new nested 'porty' directory within 'porty-app'. Also, added a README file to provide general information about the app.
Configuration menu - View commit details
-
Copy full SHA for 1d18eea - Browse repository at this point
Copy the full SHA 1d18eeaView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master