πŸ› οΈGetting set up

Steps to install CSAPP and start the web app

chevron-rightStep1: Clone the CSAPP repositoryhashtag
git clone https://github.com/adamcysec/CSAPP.git
chevron-rightStep 2: Install the dependencieshashtag
pip install streamlit duckdb csapptools beautifulsoup4 requests argparse
chevron-rightStep 3: Download the full PyPI data sethashtag

https://drive.google.com/file/d/176E-5gb97egmRe8W9K-bh2YqHPn1W0PE/view?usp=sharingarrow-up-right

  • Due to the file size being about 160 MB, I have to host the file on Google Drive.

  • Store the data set CSV file in the CSAPP directory.

chevron-rightStep 4: Update the data sethashtag

pypi_data_harvest.py requires an API key from libraries.ioarrow-up-right

  1. Create an account on libraries.ioarrow-up-right

  2. Create a hidden directory in your user's home folder called .librariesio

  3. Saved libraries.io api key in a txt file called api_key.txt

py pypi_data_harvest.py --update "pypi_info_db.csv"
  • New PyPI packages are uploaded every day, therefore you will want to update the data set before use.

chevron-rightStep 5: Run the web app locallyhashtag
streamlit run pypi_streamlit.py

if you have more than one version of python installed you may need to run streamlit like so:

python3 -m streamlit run pypi_streamlit.py
  • You will want to run the app locally to use the full data set.

Last updated