Shows a pixel art of any Pokémon in your terminal!

Overview

pokemon-icat

This script is inspired by this project, but since the output heavily depends on the font of your terminal, i decided to make a script that shows a true PNG image of the Pokémon (of course, this script requires a terminal that supports images).

Screenshot

Installation

Important: this script currently works only on Kitty, but in pokemon-icat.sh you can change this behaviour by editing the last line, which shows the picture in the terminal.

To install the script, you must first have all the necessary packages installed:

  • Python 3.x
  • pip3
  • numpy

After making sure that you have all of these installed, run this command:

git clone https://github.com/ph04/pokemon-icat && cd pokemon-icat && chmod +x install.sh && ./install.sh

which should start the installation process of the script, by downloading every picture of every Pokémon.

By default, this will download every Pokémon with an upscaling factor of the original image of 9, but if you want to change this, run the last command with the option --upscale [upscaling factor], for example:

./install.sh -u 15

Usage

To show a random pokemon, simply run:

$HOME/.pokemon-icat/pokemon-icat.sh

If you want to specify one or more generations in particular, simply add "--gen [numbers]" at the end, between quotes, for example:

$HOME/.pokemon-icat/pokemon-icat.sh "-g 3 4 5"
Comments
  • Incorrect functionality when using with fish on Iterm2 on Mac

    Incorrect functionality when using with fish on Iterm2 on Mac

    I tried to configure everything according to my own setup and ended up trying to make it work on Iterm with fish and using imgcat. However I am running into the following error as shown in the screenshot. Any help regarding why this is happening?

    Screenshot 2022-08-08 at 8 53 01 PM

    opened by HarduinLearnsCoding 3
  • Url rate limited suring setup_icons.py

    Url rate limited suring setup_icons.py

    Attempting to run setup_icons.py during the install process tends to get rate limited and fail after ~400-500 downloads.

    Initial fix was adding:

        if exists(f"{home}/.pokemon-icat/pokemon-icons/{pokemon}.png"):
            print(f"{pokemon} exists already")
            continue
    

    to main loop and running multiple times was a workaround, but a better workaround would likely involve a try/catch around requests.get(url) and sleeping for a little if it fails.

    opened by schmuelio 2
  • Fix bug and remove the necessity of double quotes

    Fix bug and remove the necessity of double quotes

    Fix the problem when trying to display a pokemon from any folder other than .pokemon-icat. Remove the necessity of double quotes. For example in "--g 1 2 3", You can now use -g 1 2 3

    opened by Gryfenfer97 1
  • [improvement] async requests

    [improvement] async requests

    The setup_icons.py can be considerably faster using asynchronous requests.

    The current script takes ~7 minutes (~420 seconds) to run. If you make 10 requests for batch, 1s delay between each batch, it would take ~90 seconds to download everything. The server probably can deal with smaller delays though.

    opened by imsamuka 1
  • make http requests asynchronous

    make http requests asynchronous

    Implementation of #2. I introduced some global variables. Some, you can parameterize, others, you can't. Also, there's some magic numbers there, which you can create constants for. I removed the try-except from #1. You can reintroduce it, but i REALLY don't recommend you do it in the same way as before. You can also use a numpy array to store the pokemon names, i guess. It should be better.

    opened by imsamuka 0
Owner
ph04
I make bad codes, and I share them on GitHub, if you are interested in them, well you are welcome.
ph04
Pixelarticons - Pixel Art Icons made simple for Flutter, powered by pixelarticons and fontify

Pixelarticons - Pixel Art Icons made simple for Flutter, powered by pixelarticons and fontify

lask 16 Dec 12, 2022
PaintPrint - This module can colorize any text in your terminal

PaintPrint This module can colorize any text in your terminal Author: tankalxat3

Alexander Podstrechnyy 2 Feb 17, 2022
An awesome list of AI for art and design - resources, and popular datasets and how we may apply computer vision tasks to art and design.

Awesome AI for Art & Design An awesome list of AI for art and design - resources, and popular datasets and how we may apply computer vision tasks to a

Margaret Maynard-Reid 20 Dec 21, 2022
Pokemon catch events project to demonstrate data pipeline on AWS

Pokemon Catches Data Pipeline This is a sample project to practice end-to-end data project; Terraform is used to deploy infrastructure; Kafka is the t

Vitor Carra 4 Sep 3, 2021
Pokemon sword replay capture

pokemon-sword-replay-capture This is an old version (March 2020) pokemon-sword-replay-capture-mar-2020-version of my Pokemon Replay Capture software.

null 11 May 15, 2022
Python script to preprocess images of all Pokémon to finetune ruDALL-E

ai-generated-pokemon-rudalle Python script to preprocess images of all Pokémon (the "official artwork" of each Pokémon via PokéAPI) into a format such

Max Woolf 132 Dec 11, 2022
Python library for datamining glitch information from Gen 1 Pokémon GameBoy ROMs

g1utils This is a Python library for datamining information about various glitches (glitch Pokémon, glitch maps, etc.) from Gen 1 Pokémon ROMs. TODO A

null 1 Jan 13, 2022
Pokehandy - Data web app sobre Pokémon TCG que desarrollo durante transmisiones de Twitch, 2022

⚡️ Pokéhandy – Pokémon Hand Simulator [WIP ?? ] This application aims to simulat

Rodolfo Ferro 5 Feb 23, 2022
An unofficial opensource Pokemon cursor theme for Windows and Linux.

pokemon-cursor An unofficial opensource Pokemon cursor theme for Windows and Linux. Cursor Sizes 22 24 28 32 40 48 56 64 72 80 88 96 Colors Quick inst

Kaiz Khatri 72 Dec 26, 2022
Shows VRML team stats of all players in your pubs

VRML Team Stat Searcher Displays Team Name, Team Rank (Worldwide), and tier of all the players in your pubs. GUI WIP: Only username search works (for

Hamish Burke 2 Dec 22, 2022
Hacktoberfest2021 🥳- Contribute Any Pattern In Any Language😎 Every PR will be accepted Pls contribute

✨ Hacktober Fest 2021 ✨ ?? All Contributors are requested to star this repo and follow me for a successful merge of pull request. ?? ?? Add any patter

Md. Almas Ali 103 Jan 7, 2023
IDA Pro plugin that shows the comments in a database

ShowComments A Simple IDA Pro plugin that shows the comments in a database Installation Copy the file showcomments.py to the plugins folder under IDA

Fernando Mercês 32 Dec 10, 2022
A simple script that shows important photography times. written in python.

A simple script that shows important photography times. written in python.

John Evans 13 Oct 16, 2022
An example project that shows how to check if a certain macro is active in a file.

PlatformIO Check Compiler Flags Example Description Demonstrates the usage of an extra script and a special compilter invocation to get the active mac

Maximilian Gerhardt 1 Oct 28, 2021
Cisco IOS-XE Operations Program. Shows operational data using restconf and yang

XE-Ops View operational and config data from devices running Cisco IOS-XE software. NoteS The build folder is the latest build. All other files are fo

null 18 Jul 23, 2022
A tool for RaceRoom Racing Experience which shows you launch data

R3E Launch Tool A tool for RaceRoom Racing Experience which shows you launch data. Usage Run the tool, change the Stop Speed to whatever you want, and

Yuval Rosen 2 Feb 1, 2022
Aero is an open source airplane intelligence tool. Aero supports more than 13,000 airlines and 250 countries. Any flight worldwide at your fingertips.

Aero Aero supports more than 13,000 airlines and 250 countries. Any flight worldwide at your fingertips. Features Main : Flight lookup Aircraft lookup

Vickey 비키 4 Oct 27, 2021
Magenta: Music and Art Generation with Machine Intelligence

Magenta is a research project exploring the role of machine learning in the process of creating art and music. Primarily this involves developing new

Magenta 18.1k Jan 5, 2023