Skip to content

ErnstHaagsman/swapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Star Wars API wrapper with Python 3.7 data classes

main.py shows how to wrap one of the routes of the Star Wars API. The wrapper object StarWarsMovie uses the Python 3.7 @dataclass decorator to automatically generate boilerplate code.

See the python_36 branch to see a Python 3.6 version of the same code.