Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status codecov Binder

Lambda SWAPI v.2.0

Instructions

Simply choose two characters from the Star Wars universe, and the program will query SWAPI (https://swapi.dev/), 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 (SWAPI.co) suddently stopped working, therefore this program is actually querying a forked version (SWAPI.dev).
  • As of September 2020, SWAPI only covers the original and prequel trilogies.

Changelog

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.

Credits

Program written from scratch by Daniel Palacio.

SWAPI was written by Paul Hallett (https://github.com/phalt) and currently maintained by Juriy Bura (https://github.com/Juriy/swapi).

Star Wars image by Agnieszka Kowalczyk - Unsplash.com (https://unsplash.com/photos/c0VRNWVEjOA)

About

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.

Topics

Resources

License

Releases

No releases published

Packages

No packages published