Chapter materials
For this chapter, we will be creating our own package for stock analysis. This makes it extremely easy for us to distribute our code and for others to use our code. The final product of this package is on GitHub at https://github.com/stefmolin/stock-analysis/tree/2nd_edition. Python's package manager, pip
, is capable of installing packages from GitHub and also building them locally; this leaves us with either of the following choices as to how we want to proceed:
- Install from GitHub if we don't plan on editing the source code for our own use.
- Fork and clone the repository and then install it on our machine in order to modify the code.
If we wish to install from GitHub directly, we don't need to do anything here since this was installed when we set up our environment back in Chapter 1, Introduction to Data Analysis; however, for reference, we would do the following to install packages from GitHub:
(book_env) $ pip3 install \ git...