antiheroes-0.0.4
توضیحات
Python Library for ANTIHEROES APP
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | antiheroes-0.0.4 |
| نام | antiheroes |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | yuya tinnefeld |
| ایمیل نویسنده | yuyatinnefeld@gmail.com |
| آدرس صفحه اصلی | https://github.com/yuyatinnefeld/antiheros |
| آدرس اینترنتی | https://pypi.org/project/antiheroes/ |
| مجوز | Copyright (c) 2022 Yuya Tinnefeld |
# 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
```bash
# 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
```bash
>>> 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'}]
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl antiheroes-0.0.4:
pip install antiheroes-0.0.4.whl
نصب پکیج tar.gz antiheroes-0.0.4:
pip install antiheroes-0.0.4.tar.gz