Skip to main content

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 wookie 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 wookie 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wookie-2.0.0.tar.gz (1.5 kB view hashes)

Uploaded Source

Built Distribution

wookie-2.0.0-py3-none-any.whl (1.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page