Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Build Status codecov Binder

Lambda SWAPI v.2.0


Simply choose two characters from the Star Wars universe, and the program will query SWAPI (, a Star Wars API, to return the movies in which both of them appear.

If you have never executed a Jupyter Notebook before, just press the Launch Binder icon above, and wait until the program loads (it can take a while!). Once it is ready, go to Cell and choose Run All. If you want to try another combination, select the cell marked as [2] and press Shift + Enter (or click the Run button just below the Cell tab).

Important notes

  • The original site ( suddently stopped working, therefore this program is actually querying a forked version (
  • As of September 2020, SWAPI only covers the original and prequel trilogies.


1.0 to 2.0

The code has been rewritten from scratch.

  • Improved search: The program no longer downloads the whole characters list and then loops over it. Now it "captures" dinamically the names and once it gets both characters' names it automatically stops the searching.
  • Use of fuzzywuzzy library: With the use of this library, now it automatically detects if there are matches with the API, even if there are typing mistakes on user's input. And it even allows for considerable variations; for instance, while the character on the database is called "Jabba Desilijic Tiure", user still can write "Jabba the Hutt" and it will be detected as well.
  • More robust functions: Now they are able to detect several anormal situations and stop the program accordingly (i.e.: list with invalid URLs).
  • Proper Unit Testing: The Unit Tests now were properly implemented, and also a lot more were added, making an approximate total of 111.
  • Easier to use: You only need to load the Jupyter Notebook file, write your two desired characters and simply wait for the program to return some results.
  • Preliminary Static Type Checking on Functions: More information about this functionality can be read here.


Program written from scratch by Daniel Palacio.

SWAPI was written by Paul Hallett ( and currently maintained by Juriy Bura (

Star Wars image by Agnieszka Kowalczyk - (


Version 2.0 of a small program to inspect the famous SWAPI ("Star Wars API") and see if two characters share the same movie. It uses the "requests" and "fuzzy-wuzzy" libraries.





No releases published


No packages published