No project description provided
Project description
Star Wars API Wrapper
This is an asynchronous wrapper for the Star Wars API
Usage
Getting a character by name
if __name__ == "__main__":
from starwarsapi import StarWarsClient
sw = StarWarsClient(base_url="https://starwarsapi.site")
character_by_name = await sw.get_character_by_name("Luke Skywalker")
print("Character by Name:", character_by_name)
Get character count
if __name__ == "__main__":
from starwarsapi import StarWarsClient
sw = StarWarsClient(base_url="https://starwarsapi.site")
character_count_ = await sw.get_character_count()
print(character_count)
More examples to come... Hold on for a while and refer https://starwarsapi.site/docs/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
wookie-1.0.0-py3-none-any.whl
(1.4 kB
view hashes)