Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Data for the course

This course uses custom data from PyPI sources.

Start by installing MongoDB (steps) and MongoDB Management Tools (steps). Start the MongoDB server running as well as the management tools binaries in the path.

Download the data from Talk Python at:

https://talkpython.fm/pypi5k

Unzip the data temporarily wherever you like. Let's assume the downloaded pypi-5k-mongodb-dump.zip file is in ~/Downloads/. Then once you uncompress it, there will be a pypi folder with many *.bson and *.json files. In that directory (e.g. ~/Downloads/pypi), run this command:

mongorestore --drop --db pypi ./

You should see output roughly analogous to:

Note that we did not restore all the indexes you would want for this data. Rather, that will be added when we get to the performance section of the course.