Data 25 Star Wars Project


The character data in your MongoDB database has been pulled from
As well as ‘people’, the API has data on starships.
Using Python, write code to pull data on all available starships from the API.
The “pilots” key contains URLs pointing to the characters who pilot the starship.
Use these to replace ‘pilots’ with a list of ObjectIDs from our characters collection, then insert the starships into their own collection in MongoDB.
(Make sure you drop any existing starships collections.)

You have until after Christmas.


  • Use good coding principles. That means testing, appropriate comments, good naming conventions and handling errors gracefully.
  • Follow PEP 8
  • Create a job board in Trello or similar to keep track of your user stories. Provide a link to that job board in your version of this README.
  • Your code should utilise functional programming OR object-oriented programming
  • Use Test Driven Development: write your tests first

Using this repo

  • Branch off from main.
  • Use your own name for the name of the branch (e.g. mine would be PaulaKedra – please copy this format).
  • Make sure you commit and push to the remote repo frequently to keep your work up-to-date.
  • The gitignore should catch most unnecessary project files, but do pay attention to what you are adding to the repo.
  • Replace this README with an appropriate README for your project (including a link to your job board).


View Github