GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — practical-python/Solutions/9_5/porty-app at master · engti/practical-python

Expand file tree

/

porty-app

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

porty-app

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
porty
porty
 
 
MANIFEST.in
MANIFEST.in
 
 
README.txt
README.txt
 
 
portfolio.csv
portfolio.csv
 
 
prices.csv
prices.csv
 
 
print-report.py
print-report.py
 
 
setup.py
setup.py
 
 

README.txt

Code from Practical Python.

The "porty" directory is a Python package of code that's loaded via 
import.  The "print-report.py" program is a top-level script that
produces a report.  Try it:

shell % python3 print-report.py portfolio.csv prices.csv txt
      Name     Shares      Price     Change 
---------- ---------- ---------- ---------- 
        AA        100       9.22     -22.98 
       IBM         50     106.28      15.18 
       CAT        150      35.46     -47.98 
      MSFT        200      20.89     -30.34 
        GE         95      13.48     -26.89 
      MSFT         50      20.89     -44.21 
       IBM        100     106.28      35.84 
shell %
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.