Skip to main content

Python Library for ANTIHEROES APP

Project description

ANTIHEROES

Do you like antiheroes? You can use this python package ANTIHEROES to list and get fascinating antiheroes from movies, TV shows, video games, and comics.

Installation

# Official Version
python -m pip install antiheroes

Getting Started

Directly after the installation you can use this package. You will need Python Release 3.7.0 or older.

You can use 3 Methods:

  • get_hero(): get a random antihero
  • list_heroes(): list all antiheroes
  • popular_heroes(): list top x antiheroes
  1. Open the python console and use the package
>>> from antiheroes import get_hero
>>> get_hero()
THE HULK enters in your room!!!
>>> get_hero()
WOLVERINE enters in your room!!!
>>> get_hero()
ELEKTRA NATCHIOS enters in your room!!!
>>> get_hero()
DUKE NUKEM enters in your room!!!
>>> get_hero()
THE HULK enters in your room!!!


>>> from antiheroes import list_heroes
>>> list_heroes()
ALL ANTI HEROES:
[   {'name': 'WOLVERINE', 'world': 'MARVEL COMICS'},
    {'name': 'DEADPOOL', 'world': 'MARVEL COMICS'},
    {'name': 'ELEKTRA NATCHIOS', 'world': 'MARVEL COMICS'},
    {'name': 'JOHN WICK', 'world': 'JOHN WICK'},
    {'name': 'BLADE', 'world': 'MARVEL COMICS'},


>>> from antiheroes import popular_heroes
>>> popular_heroes(5)
MY TOP 5 ANTI HEROES:
[   {'name': 'WOLVERINE', 'world': 'MARVEL COMICS'},
    {'name': 'DEADPOOL', 'world': 'MARVEL COMICS'},
    {'name': 'ELEKTRA NATCHIOS', 'world': 'MARVEL COMICS'},
    {'name': 'JOHN WICK', 'world': 'JOHN WICK'},
    {'name': 'BLADE', 'world': 'MARVEL COMICS'}]

Project details


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

antiheroes-0.0.4-py3-none-any.whl (3.9 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