8000 Comparing dabeaz-course:master...bbejeck:master · dabeaz-course/practical-python · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dabeaz-course/practical-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: bbejeck/practical-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 22 files changed
  • 1 contributor

Commits on Nov 28, 2023

  1. Exercises 1 and 2

    bbejeck committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    0de0576 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. 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.
    bbejeck committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    7111e2b View commit details
    Browse the repository at this point in the history
  2. 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
    bbejeck committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    4351480 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2023

  1. 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.
    bbejeck committed Dec 23, 2023
    Configuration menu
    Copy the full SHA
    40eb9a8 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2023

  1. 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'.
    bbejeck committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    293078c View commit details
    Browse the repository at this point in the history
  2. 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'.
    bbejeck committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    ea56d8e View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2023

  1. 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.
    bbejeck committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    45305e1 View commit details
    Browse the repository at this point in the history
  2. 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.
    bbejeck committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    1d18eea View commit details
    Browse the repository at this point in the history
Loading
0