diff --git a/works/pokedex-api/Dockerfile b/works/pokedex-api/Dockerfile new file mode 100644 index 0000000..8ece00f --- /dev/null +++ b/works/pokedex-api/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY app ./app +COPY data ./data + +EXPOSE 8000 + +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file diff --git a/works/pokedex-api/app/__init__.py b/works/pokedex-api/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/works/pokedex-api/app/database.py b/works/pokedex-api/app/database.py new file mode 100644 index 0000000..96aefc9 --- /dev/null +++ b/works/pokedex-api/app/database.py @@ -0,0 +1,21 @@ +from sqlalchemy import create_engine +from sqlalchemy.orm import sessionmaker, declarative_base + +DATABASE_URL = "sqlite:///./pokedex.db" + +engine = create_engine( + DATABASE_URL, + connect_args={"check_same_thread": False}, +) + +SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) + +Base = declarative_base() + + +def get_db(): + db = SessionLocal() + try: + yield db + finally: + db.close() \ No newline at end of file diff --git a/works/pokedex-api/app/errors.py b/works/pokedex-api/app/errors.py new file mode 100644 index 0000000..af3d1da --- /dev/null +++ b/works/pokedex-api/app/errors.py @@ -0,0 +1,103 @@ +from datetime import datetime, timezone +from typing import Any, List, Optional + +from fastapi import Request +from fastapi.exceptions import RequestValidationError +from fastapi.responses import JSONResponse +from starlette.exceptions import HTTPException as StarletteHTTPException + + +def _timestamp() -> str: + return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z" + + +def error_body( + status_code: int, + error_code: str, + message: str, + path: str, + errors: Optional[List[Any]] = None, +) -> dict: + return { + "statusCode": status_code, + "errorCode": error_code, + "message": message, + "errors": errors, + "timestamp": _timestamp(), + "path": path, + } + + +class AppError(Exception): + def __init__( + self, + status_code: int, + error_code: str, + message: str, + errors: Optional[List[Any]] = None, + ): + self.status_code = status_code + self.error_code = error_code + self.message = message + self.errors = errors + + +async def app_error_handler(request: Request, exc: AppError) -> JSONResponse: + return JSONResponse( + status_code=exc.status_code, + content=error_body( + exc.status_code, exc.error_code, exc.message, request.url.path, exc.errors + ), + ) + + +async def http_exception_handler( + request: Request, exc: StarletteHTTPException +) -> JSONResponse: + code = "INTERNAL_SERVER_ERROR" + if exc.status_code == 404: + code = "POKEMON_NOT_FOUND" + elif exc.status_code == 400: + code = "VALIDATION_FAILED" + return JSONResponse( + status_code=exc.status_code, + content=error_body(exc.status_code, code, str(exc.detail), request.url.path), + ) + + +async def validation_exception_handler( + request: Request, exc: RequestValidationError +) -> JSONResponse: + errors = [] + for err in exc.errors(): + loc = err.get("loc", []) + field = ".".join(str(x) for x in loc if x not in ("query", "path", "body")) + errors.append( + { + "field": field, + "message": err.get("msg", "invalid value"), + "value": err.get("input"), + } + ) + return JSONResponse( + status_code=400, + content=error_body( + 400, + "VALIDATION_FAILED", + "Validation failed for query parameters", + request.url.path, + errors, + ), + ) + + +async def unhandled_exception_handler(request: Request, exc: Exception) -> JSONResponse: + return JSONResponse( + status_code=500, + content=error_body( + 500, + "INTERNAL_SERVER_ERROR", + "An unexpected error occurred on the server", + request.url.path, + ), + ) \ No newline at end of file diff --git a/works/pokedex-api/app/loader.py b/works/pokedex-api/app/loader.py new file mode 100644 index 0000000..7d6e5a3 --- /dev/null +++ b/works/pokedex-api/app/loader.py @@ -0,0 +1,130 @@ +import csv +import os +from decimal import Decimal + +from sqlalchemy.orm import Session + +from . import models + +DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data") + + +def _read(name: str): + path = os.path.join(DATA_DIR, name) + if not os.path.exists(path): + return [] + with open(path, "r", encoding="utf-8-sig", newline="") as f: + return list(csv.DictReader(f)) + + +def _int(value): + if value is None or value == "": + return None + try: + return int(float(value)) + except (ValueError, TypeError): + return None + + +def _dec(value): + if value is None or value == "": + return None + try: + return Decimal(str(value)) + except Exception: + return None + + +def load_all(db: Session) -> None: + if db.query(models.Pokemon).first() is not None: + return + + for row in _read("types.csv"): + db.add( + models.Type( + id=_int(row.get("id")), + name=row.get("name") or row.get("identifier") or "", + color_hex=row.get("color_hex") or row.get("color"), + ) + ) + db.commit() + + for row in _read("pokemons.csv"): + db.add( + models.Pokemon( + id=_int(row.get("id")), + name=row.get("name") or row.get("identifier") or "", + height_m=_dec(row.get("height_m") or row.get("height")), + weight_kg=_dec(row.get("weight_kg") or row.get("weight")), + image_url=row.get("image_url"), + description=row.get("description"), + ) + ) + db.commit() + + for row in _read("pokemon_types.csv"): + db.add( + models.PokemonType( + pokemon_id=_int(row.get("pokemon_id")), + type_id=_int(row.get("type_id")), + ) + ) + db.commit() + + for row in _read("pokemon_stats.csv"): + db.add( + models.PokemonStat( + pokemon_id=_int(row.get("pokemon_id")), + hp=_int(row.get("hp")), + atk=_int(row.get("atk")), + def_=_int(row.get("def")), + satk=_int(row.get("satk")), + sdef=_int(row.get("sdef")), + spd=_int(row.get("spd")), + ) + ) + db.commit() + + for row in _read("move_categories.csv"): + db.add( + models.MoveCategory( + id=_int(row.get("id")), + name=row.get("name") or row.get("identifier") or "", + ) + ) + db.commit() + + for row in _read("moves.csv"): + db.add( + models.Move( + id=_int(row.get("id")), + name=row.get("name") or row.get("identifier") or "", + type_id=_int(row.get("type_id")), + category_id=_int(row.get("category_id")), + power=_int(row.get("power")), + accuracy=_int(row.get("accuracy")), + description=row.get("description"), + ) + ) + db.commit() + + for row in _read("learn_methods.csv"): + db.add( + models.LearnMethod( + id=_int(row.get("id")), + name=row.get("name") or row.get("identifier") or "", + ) + ) + db.commit() + + for row in _read("pokemon_moves.csv"): + db.add( + models.PokemonMove( + id=_int(row.get("id")), + pokemon_id=_int(row.get("pokemon_id")), + move_id=_int(row.get("move_id")), + level_learned=_int(row.get("level_learned")), + learn_method_id=_int(row.get("learn_method_id")), + ) + ) + db.commit() \ No newline at end of file diff --git a/works/pokedex-api/app/main.py b/works/pokedex-api/app/main.py new file mode 100644 index 0000000..a81118b --- /dev/null +++ b/works/pokedex-api/app/main.py @@ -0,0 +1,35 @@ +from fastapi import FastAPI +from fastapi.exceptions import RequestValidationError +from starlette.exceptions import HTTPException as StarletteHTTPException + +from . import models +from .database import Base, engine, SessionLocal +from .errors import ( + AppError, + app_error_handler, + http_exception_handler, + unhandled_exception_handler, + validation_exception_handler, +) +from .loader import load_all +from .routers import pokemons + +Base.metadata.create_all(bind=engine) + +with SessionLocal() as _db: + load_all(_db) + +app = FastAPI( + title="Pokédex API", + version="1.0.0", + docs_url="/docs", + redoc_url="/redoc", + openapi_url="/openapi.json", +) + +app.add_exception_handler(AppError, app_error_handler) +app.add_exception_handler(StarletteHTTPException, http_exception_handler) +app.add_exception_handler(RequestValidationError, validation_exception_handler) +app.add_exception_handler(Exception, unhandled_exception_handler) + +app.include_router(pokemons.router) \ No newline at end of file diff --git a/works/pokedex-api/app/models.py b/works/pokedex-api/app/models.py new file mode 100644 index 0000000..df5bbb2 --- /dev/null +++ b/works/pokedex-api/app/models.py @@ -0,0 +1,86 @@ +from sqlalchemy import Column, Integer, String, Numeric, Text, ForeignKey +from sqlalchemy.orm import relationship + +from .database import Base + + +class Pokemon(Base): + __tablename__ = "pokemons" + + id = Column(Integer, primary_key=True, index=True) + name = Column(String, nullable=False, index=True) + height_m = Column(Numeric, nullable=True) + weight_kg = Column(Numeric, nullable=True) + image_url = Column(Text, nullable=True) + description = Column(Text, nullable=True) + + stats = relationship("PokemonStat", back_populates="pokemon", uselist=False) + types = relationship("PokemonType", back_populates="pokemon") + + +class Type(Base): + __tablename__ = "types" + + id = Column(Integer, primary_key=True, index=True) + name = Column(String, nullable=False) + color_hex = Column(String, nullable=True) + + +class PokemonType(Base): + __tablename__ = "pokemon_types" + + pokemon_id = Column(Integer, ForeignKey("pokemons.id"), primary_key=True) + type_id = Column(Integer, ForeignKey("types.id"), primary_key=True) + + pokemon = relationship("Pokemon", back_populates="types") + type = relationship("Type") + + +class PokemonStat(Base): + __tablename__ = "pokemon_stats" + + pokemon_id = Column(Integer, ForeignKey("pokemons.id"), primary_key=True) + hp = Column(Integer, nullable=True) + atk = Column(Integer, nullable=True) + def_ = Column("def", Integer, nullable=True) + satk = Column(Integer, nullable=True) + sdef = Column(Integer, nullable=True) + spd = Column(Integer, nullable=True) + + pokemon = relationship("Pokemon", back_populates="stats") + + +class MoveCategory(Base): + __tablename__ = "move_categories" + + id = Column(Integer, primary_key=True, index=True) + name = Column(String, nullable=False) + + +class Move(Base): + __tablename__ = "moves" + + id = Column(Integer, primary_key=True, index=True) + name = Column(String, nullable=False) + type_id = Column(Integer, ForeignKey("types.id"), nullable=True) + category_id = Column(Integer, ForeignKey("move_categories.id"), nullable=True) + power = Column(Integer, nullable=True) + accuracy = Column(Integer, nullable=True) + description = Column(Text, nullable=True) + + +class LearnMethod(Base): + __tablename__ = "learn_methods" + + id = Column(Integer, primary_key=True, index=True) + name = Column(String, nullable=False) + + +class PokemonMove(Base): + __tablename__ = "pokemon_moves" + + id = Column(Integer, primary_key=True, index=True) + pokemon_id = Column(Integer, ForeignKey("pokemons.id"), nullable=False) + move_id = Column(Integer, ForeignKey("moves.id"), nullable=False) + level_learned = Column(Integer, nullable=True) + learn_method_id = Column(Integer, ForeignKey("learn_methods.id"), nullable=True) \ No newline at end of file diff --git a/works/pokedex-api/app/routers/__init__.py b/works/pokedex-api/app/routers/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/works/pokedex-api/app/routers/pokemons.py b/works/pokedex-api/app/routers/pokemons.py new file mode 100644 index 0000000..6bf617c --- /dev/null +++ b/works/pokedex-api/app/routers/pokemons.py @@ -0,0 +1,187 @@ +from typing import Optional + +from fastapi import APIRouter, Depends, Query +from sqlalchemy import or_, cast, String +from sqlalchemy.orm import Session + +from .. import models, schemas +from ..database import get_db +from ..errors import AppError + +router = APIRouter(prefix="/api/v1/pokemons", tags=["pokemons"]) + + +@router.get("", response_model=schemas.PokemonListResponse) +def list_pokemons( + search: Optional[str] = Query(default=None), + sort_by: str = Query(default="id"), + order: str = Query(default="asc"), + limit: int = Query(default=20), + offset: int = Query(default=0), + db: Session = Depends(get_db), +): + errors = [] + if sort_by not in ("id", "name"): + errors.append( + { + "field": "sort_by", + "message": "sort_by must be one of: 'id', 'name'", + "value": sort_by, + } + ) + if order not in ("asc", "desc"): + errors.append( + { + "field": "order", + "message": "order must be one of: 'asc', 'desc'", + "value": order, + } + ) + if limit < 1 or limit > 100: + errors.append( + { + "field": "limit", + "message": "limit must not be greater than 100", + "value": limit, + } + ) + if offset < 0: + errors.append( + { + "field": "offset", + "message": "offset must be greater than or equal to 0", + "value": offset, + } + ) + if errors: + raise AppError( + 400, "VALIDATION_FAILED", "Validation failed for query parameters", errors + ) + + query = db.query(models.Pokemon) + + if search: + term = f"%{search.strip()}%" + query = query.filter( + or_( + models.Pokemon.name.ilike(term), + cast(models.Pokemon.id, String).ilike(term), + ) + ) + + column = models.Pokemon.id if sort_by == "id" else models.Pokemon.name + query = query.order_by(column.desc() if order == "desc" else column.asc()) + + total = query.count() + rows = query.offset(offset).limit(limit).all() + + return schemas.PokemonListResponse( + total=total, + limit=limit, + offset=offset, + data=[ + schemas.PokemonListItem( + id=r.id, name=r.name, image_url=r.image_url + ) + for r in rows + ], + ) + + +@router.get("/{id_or_name}", response_model=schemas.PokemonDetailResponse) +def get_pokemon(id_or_name: str, db: Session = Depends(get_db)): + pokemon = None + + if id_or_name.isdigit(): + pokemon = db.query(models.Pokemon).filter(models.Pokemon.id == int(id_or_name)).first() + + if pokemon is None: + pokemon = ( + db.query(models.Pokemon) + .filter(models.Pokemon.name.ilike(id_or_name)) + .first() + ) + + if pokemon is None: + raise AppError( + 404, + "POKEMON_NOT_FOUND", + f"Pokemon with identifier '{id_or_name}' was not found", + ) + + type_rows = ( + db.query(models.Type) + .join(models.PokemonType, models.PokemonType.type_id == models.Type.id) + .filter(models.PokemonType.pokemon_id == pokemon.id) + .all() + ) + + types = [ + schemas.TypeItem( + id=t.id, + code=(t.name or "").upper() if t.name else None, + name=t.name, + color_hex=t.color_hex, + ) + for t in type_rows + ] + + color_hex = type_rows[0].color_hex if type_rows else None + + stats_row = ( + db.query(models.PokemonStat) + .filter(models.PokemonStat.pokemon_id == pokemon.id) + .first() + ) + + stats = schemas.StatsBlock( + hp=stats_row.hp if stats_row else None, + atk=stats_row.atk if stats_row else None, + def_=stats_row.def_ if stats_row else None, + satk=stats_row.satk if stats_row else None, + sdef=stats_row.sdef if stats_row else None, + spd=stats_row.spd if stats_row else None, + ) + + move_names = [ + m.name + for m in ( + db.query(models.Move) + .join(models.PokemonMove, models.PokemonMove.move_id == models.Move.id) + .filter(models.PokemonMove.pokemon_id == pokemon.id) + .all() + ) + ] + + about = schemas.AboutBlock( + weight_kg=float(pokemon.weight_kg) if pokemon.weight_kg is not None else None, + height_m=float(pokemon.height_m) if pokemon.height_m is not None else None, + moves=move_names, + description=pokemon.description, + ) + + prev_id = ( + db.query(models.Pokemon.id) + .filter(models.Pokemon.id < pokemon.id) + .order_by(models.Pokemon.id.desc()) + .limit(1) + .scalar() + ) + next_id = ( + db.query(models.Pokemon.id) + .filter(models.Pokemon.id > pokemon.id) + .order_by(models.Pokemon.id.asc()) + .limit(1) + .scalar() + ) + + return schemas.PokemonDetailResponse( + id=pokemon.id, + name=pokemon.name, + image_url=pokemon.image_url, + color_hex=color_hex, + types=types, + about=about, + stats=stats, + navigation=schemas.NavigationBlock(prev_id=prev_id, next_id=next_id), + ) \ No newline at end of file diff --git a/works/pokedex-api/app/schemas.py b/works/pokedex-api/app/schemas.py new file mode 100644 index 0000000..79496a6 --- /dev/null +++ b/works/pokedex-api/app/schemas.py @@ -0,0 +1,60 @@ +from typing import List, Optional, Union +from pydantic import BaseModel + + +class PokemonListItem(BaseModel): + id: int + name: str + image_url: Optional[str] = None + + class Config: + from_attributes = True + + +class PokemonListResponse(BaseModel): + total: int + limit: int + offset: int + data: List[PokemonListItem] + + +class TypeItem(BaseModel): + id: int + code: Optional[str] = None + name: str + color_hex: Optional[str] = None + + class Config: + from_attributes = True + + +class AboutBlock(BaseModel): + weight_kg: Optional[float] = None + height_m: Optional[float] = None + moves: List[str] = [] + description: Optional[str] = None + + +class StatsBlock(BaseModel): + hp: Optional[int] = None + atk: Optional[int] = None + def_: Optional[int] = None + satk: Optional[int] = None + sdef: Optional[int] = None + spd: Optional[int] = None + + +class NavigationBlock(BaseModel): + prev_id: Optional[int] = None + next_id: Optional[int] = None + + +class PokemonDetailResponse(BaseModel): + id: int + name: str + image_url: Optional[str] = None + color_hex: Optional[str] = None + types: List[TypeItem] = [] + about: AboutBlock + stats: StatsBlock + navigation: NavigationBlock \ No newline at end of file diff --git a/works/pokedex-api/data/learn_methods.csv b/works/pokedex-api/data/learn_methods.csv new file mode 100644 index 0000000..28ed23a --- /dev/null +++ b/works/pokedex-api/data/learn_methods.csv @@ -0,0 +1,4 @@ +id,name +1,Level +2,TM +3,HM diff --git a/works/pokedex-api/data/move_categories.csv b/works/pokedex-api/data/move_categories.csv new file mode 100644 index 0000000..1211f25 --- /dev/null +++ b/works/pokedex-api/data/move_categories.csv @@ -0,0 +1,4 @@ +id,name +1,Physical +2,Special +3,Status diff --git a/works/pokedex-api/data/moves.csv b/works/pokedex-api/data/moves.csv new file mode 100644 index 0000000..75d8054 --- /dev/null +++ b/works/pokedex-api/data/moves.csv @@ -0,0 +1,164 @@ +id,name,type_id,category_id,power,accuracy,description +1,Pound,7,1,40.0,100.0,Pounds with forelegs or tail. +2,Karate Chop,11,1,50.0,100.0,Has a high critical-hit ratio. +3,Double Slap,7,1,15.0,85.0,Repeatedly slaps 2 to 5 times. +4,Comet Punch,7,1,18.0,85.0,Repeatedly punches 2 to 5 times. +5,Mega Punch,7,1,80.0,85.0,A powerful punch thrown with incredible power. +6,Pay Day,7,1,40.0,100.0,Coins are hurled at the target. Money is earned after battle. +7,Fire Punch,3,1,75.0,100.0,The target is punched with a fiery fist. May burn. +8,Ice Punch,15,1,75.0,100.0,The target is punched with an icy fist. May freeze. +9,Thunder Punch,8,1,75.0,100.0,The target is punched with an electrified fist. May paralyze. +10,Scratch,7,1,40.0,100.0,"Hard, pointed claws rake the target." +11,Vise Grip,7,1,55.0,100.0,"A large, powerful pincer squeezes the target." +12,Guillotine,7,1,,30.0,A one-hit KO attack using pincers. +13,Razor Wind,7,2,80.0,100.0,A two-turn blade-of-wind attack. +14,Swords Dance,7,3,,,A frenetic dance to uplift spirit and sharply raise Attack. +15,Cut,7,1,50.0,95.0,The target is cut with scythes or claws. +16,Gust,6,2,40.0,100.0,A gust of wind whipped up by wings. +17,Wing Attack,6,1,60.0,100.0,The target is struck with large wings. +18,Whirlwind,7,3,,,Blows away the target to end the battle. +19,Fly,6,1,90.0,95.0,The user flies up on turn 1 and strikes on turn 2. +20,Bind,7,1,15.0,85.0,Binds and squeezes the target for 4-5 turns. +21,Slam,7,1,80.0,75.0,Slams the target with a long tail or vine. +22,Vine Whip,1,1,45.0,100.0,"Strikes with slender, whip-like vines." +23,Stomp,7,1,65.0,100.0,The target is stomped with a big foot. May flinch. +24,Double Kick,11,1,30.0,100.0,A double-kicking attack that strikes twice. +25,Mega Kick,7,1,120.0,75.0,An extremely fierce kick packed with power. +26,Jump Kick,11,1,100.0,95.0,A jumping kick attack that hurts user if missed. +27,Rolling Kick,11,1,60.0,85.0,"A fast, spinning kick. May cause flinching." +28,Sand Attack,9,3,,100.0,Sand is hurled in the target's face to reduce accuracy. +29,Headbutt,7,1,70.0,100.0,The user sticks out its head and rams the target. +30,Horn Attack,7,1,65.0,100.0,The target is jabbed with a sharp horn. +31,Fury Attack,7,1,15.0,85.0,Jabs the target 2 to 5 times with a beak or horn. +32,Horn Drill,7,1,,30.0,A one-hit KO drill attack using a horn. +33,Tackle,7,1,40.0,100.0,A physical attack in which the user charges and slams. +34,Body Slam,7,1,85.0,100.0,Drops its heavy body on the target. May paralyze. +35,Wrap,7,1,15.0,90.0,Wraps and squeezes the target for 4-5 turns. +36,Take Down,7,1,90.0,85.0,A reckless charge attack that also hurts the user. +37,Thrash,7,1,120.0,100.0,Rampages for 2 to 3 turns then becomes confused. +38,Double-Edge,7,1,120.0,100.0,A life-risking tackle that damages the user too. +39,Tail Whip,7,3,,100.0,Wags tail cutely to lower target Defense. +40,Poison Sting,2,1,15.0,100.0,Stings with a toxic barb. May poison. +41,Twineedle,5,1,25.0,100.0,Stings twice with foreleg stingers. May poison. +42,Pin Missile,5,1,25.0,95.0,Sharp pins are fired at the target 2 to 5 times. +43,Leer,7,3,,100.0,Gives an intimidating leer to lower target Defense. +44,Bite,16,1,60.0,100.0,Bites with sharp fangs. May flinch. +45,Growl,7,3,,100.0,Growls cutely to reduce target Attack. +46,Roar,7,3,,,Scares away the target to end wild battle. +47,Sing,7,3,,55.0,A soothing song lulls the target into a deep sleep. +48,Supersonic,7,3,,55.0,Emits bizarre sound waves that confuse target. +49,Sonic Boom,7,2,,90.0,Always inflicts exactly 20 HP damage. +50,Disable,7,3,,100.0,Disables the target's last used move. +51,Acid,2,2,40.0,100.0,Sprays hideous acid. May lower target Special Defense. +52,Ember,3,2,40.0,100.0,Attacks with small flames. May burn. +53,Flamethrower,3,2,90.0,100.0,Scorches target with an intense blast of fire. May burn. +54,Mist,15,3,,,Creates a white mist that protects stats from lowering. +55,Water Gun,4,2,40.0,100.0,Squirts water to attack. +56,Hydro Pump,4,2,110.0,80.0,Blasts high-volume water at high pressure. +57,Surf,4,2,90.0,100.0,Swamps target with a giant wave. +58,Ice Beam,15,2,90.0,100.0,Blasts target with freezing beam. May freeze. +59,Blizzard,15,2,110.0,70.0,Summons a howling blizzard. May freeze. +60,Psybeam,12,2,65.0,100.0,Fires a peculiar ray. May confuse target. +61,Bubble Beam,4,2,65.0,100.0,Fires bubbles that may lower Speed. +62,Aurora Beam,15,2,65.0,100.0,Fires a rainbow-colored beam that may lower Attack. +63,Hyper Beam,7,2,150.0,90.0,Powerful beam. Must rest next turn. +64,Peck,6,1,35.0,100.0,Jabs with a beak or horn. +65,Drill Peck,6,1,80.0,100.0,A corkscrewing attack using the beak. +66,Submission,11,1,80.0,80.0,A reckless rolling throw that damages user too. +67,Low Kick,11,1,,100.0,A kick that does more damage to heavier targets. +68,Counter,11,1,,100.0,Retaliates physical attacks with double damage. +69,Seismic Toss,11,1,,100.0,Inflicts damage equal to user's level. +70,Strength,7,1,80.0,100.0,Slams the target with incredible strength. +71,Absorb,1,2,20.0,100.0,Drains half the damage inflicted to heal user. +72,Mega Drain,1,2,40.0,100.0,Drains half the damage inflicted to heal user. +73,Leech Seed,1,3,,90.0,Plants a seed that drains HP every turn. +74,Growth,7,3,,,"Forces body to grow, raising Attack and Sp. Atk." +75,Razor Leaf,1,1,55.0,95.0,Cuts with sharp leaves. High critical ratio. +76,Solar Beam,1,2,120.0,100.0,"Absorbs light turn 1, blasts turn 2." +77,Poison Powder,2,3,,75.0,Scatters toxic dust that poisons target. +78,Stun Spore,1,3,,75.0,Scatters paralyzing powder. +79,Sleep Powder,1,3,,75.0,Scatters sleep-inducing dust. +80,Petal Dance,1,2,120.0,100.0,Rampages for 2-3 turns with petals then confuses. +81,String Shot,5,3,,95.0,Binds target with silk to lower Speed. +82,Dragon Rage,17,2,,100.0,Always inflicts 40 HP damage. +83,Fire Spin,3,2,35.0,85.0,Traps target in a fiery vortex for 4-5 turns. +84,Thunder Shock,8,2,40.0,100.0,An electric shock attack. May paralyze. +85,Thunderbolt,8,2,90.0,100.0,A strong electric blast. May paralyze. +86,Thunder Wave,8,3,,90.0,A weak jolt of electricity that paralyzes. +87,Thunder,8,2,110.0,70.0,A wicked thunderbolt strikes target. May paralyze. +88,Rock Throw,13,1,50.0,90.0,Hurls a small rock at target. +89,Earthquake,9,1,100.0,100.0,Sets off an earthquake striking all around. +90,Fissure,9,1,,30.0,A one-hit KO fissure attack. +91,Dig,9,1,80.0,100.0,"Burrows underground turn 1, strikes turn 2." +92,Toxic,2,3,,90.0,Badly poisons target with worsening damage. +93,Confusion,12,2,50.0,100.0,Telekinetic attack that may confuse target. +94,Psychic,12,2,90.0,100.0,Powerful telekinetic force. May lower Sp. Def. +95,Hypnosis,12,3,,60.0,Emits hypnotic suggestion to induce sleep. +96,Agility,12,3,,,Relaxes body to sharply raise Speed. +97,Quick Attack,7,1,40.0,100.0,An extremely fast attack with high priority. +98,Rage,7,1,20.0,100.0,Raises Attack every time user is hit. +99,Teleport,12,3,,,Flees wild battles immediately. +100,Night Shade,16,2,,100.0,Inflicts damage equal to user level. +101,Mimic,7,3,,,Copies one of target's moves for the battle. +102,Screech,7,3,,85.0,Emits an ear-splitting screech to sharply lower Defense. +103,Double Team,7,3,,,Creates illusory copies to raise Evasiveness. +104,Recover,7,3,,,Restores up to half user's max HP. +105,Harden,7,3,,,Stiffens muscles to raise Defense. +106,Minimize,7,3,,,Compresses body to sharply raise Evasiveness. +107,Smokescreen,7,3,,100.0,Lowers target accuracy with smoke. +108,Confuse Ray,16,3,,100.0,A sinister ray that confuses target. +109,Defense Curl,7,3,,,Curls up to raise Defense. +110,Barrier,12,3,,,Creates a sturdy barrier to sharply raise Defense. +111,Light Screen,12,3,,,Reduces Special damage for 5 turns. +112,Haze,15,3,,,Creates a haze that resets all stat changes. +113,Reflect,12,3,,,Reduces Physical damage for 5 turns. +114,Focus Energy,7,3,,,Takes a deep breath to boost critical hit ratio. +115,Metronome,7,3,,,Waggles a finger to use any Pokémon move randomly. +116,Self-Destruct,7,1,200.0,100.0,"Explodes to inflict massive damage, fainting user." +117,Egg Bomb,7,1,100.0,75.0,A large egg is hurled at target. +118,Lick,16,1,30.0,100.0,Licks with a long tongue. May paralyze. +119,Smog,2,2,30.0,70.0,Exhales filthy smog. May poison. +120,Sludge,2,2,65.0,100.0,Unsanitary sludge is hurled. May poison. +121,Bone Club,9,1,65.0,85.0,Clubs target with a bone. May flinch. +122,Fire Blast,3,2,110.0,85.0,Incinerates target with a giant flame. May burn. +123,Waterfall,4,1,80.0,100.0,Charges target by climbing waterfalls. +124,Clamp,4,1,35.0,85.0,Clamps target in a shell for 4-5 turns. +125,Swift,7,2,60.0,,Fires star-shaped rays that never miss. +126,Skull Bash,7,1,130.0,100.0,"Tucks head turn 1 raising Def, strikes turn 2." +127,Spike Cannon,7,1,20.0,100.0,Fires sharp spikes 2 to 5 times. +128,Constrict,7,1,10.0,100.0,Squeezes target. May lower Speed. +129,Amnesia,12,3,,,Empties mind to sharply raise Sp. Def. +130,Kinesis,12,3,,80.0,Distracts target by bending a spoon to lower accuracy. +131,Soft-Boiled,7,3,,,Restores up to half user's max HP. +132,Hi Jump Kick,11,1,130.0,90.0,A high jumping knee kick that hurts user if missed. +133,Glare,7,3,,100.0,Intimidates target with belly pattern to paralyze. +134,Dream Eater,12,2,100.0,100.0,Eats a sleeping target's dream to drain HP. +135,Poison Gas,2,3,,90.0,Envelops target in toxic gas to poison. +136,Barrage,7,1,15.0,85.0,Hurls round objects 2 to 5 times. +137,Leech Life,5,1,80.0,100.0,Drains target HP to restore half user HP. +138,Lovely Kiss,7,3,,75.0,Kisses with scary face to induce sleep. +139,Sky Attack,6,1,140.0,90.0,"Glows turn 1, strikes turn 2 with high critical ratio." +140,Transform,7,3,,,Transforms into target completely. +141,Bubble,4,2,40.0,100.0,Fires bubbles. May lower Speed. +142,Dizzy Punch,7,1,70.0,100.0,Punches with rhythmic movement. May confuse. +143,Spore,1,3,,100.0,Hypnotic spores that induce sleep 100%. +144,Flash,7,3,,100.0,Blinds with bright light to lower accuracy. +145,Psywave,12,2,,100.0,Attacks with psychic wave of random intensity. +146,Splash,7,3,,,Splashes around uselessly. +147,Acid Armor,2,3,,,Liquefies body to sharply raise Defense. +148,Crabhammer,4,1,100.0,90.0,Hammers target with a large pincer. High critical. +149,Explosion,7,1,250.0,100.0,"Explodes in a massive blast, fainting user." +150,Fury Swipes,7,1,18.0,80.0,Rakes target with claws 2 to 5 times. +151,Bonemerang,9,1,50.0,90.0,Throws a bone that hits twice coming and going. +152,Rest,12,3,,,Sleeps 2 turns to fully heal HP and status. +153,Rock Slide,13,1,75.0,90.0,Hurls large boulders. May cause flinching. +154,Hyper Fang,7,1,80.0,90.0,Bites with sharp front teeth. May flinch. +155,Sharpen,7,3,,,Sharpens edges to raise Attack. +156,Conversion,7,3,,,Changes type to match one of own move types. +157,Tri Attack,7,2,80.0,100.0,"Fires 3 beams. May cause burn, freeze, or paralysis." +158,Super Fang,7,1,,90.0,Bites hard to cut target current HP in half. +159,Slash,7,1,70.0,100.0,Slashes with claws or scythes. High critical ratio. +160,Substitute,7,3,,,Uses 1/4 HP to create a decoy dummy. +161,Struggle,7,1,50.0,,Used when all move PP are depleted. +162,Iron Defense,14,3,,,Hardens body like steel to sharply boost Defense. +163,Metal Claw,14,1,50.0,95.0,Slashes with steel claws. May raise Attack. diff --git a/works/pokedex-api/data/pokemon_moves.csv b/works/pokedex-api/data/pokemon_moves.csv new file mode 100644 index 0000000..604dda0 --- /dev/null +++ b/works/pokedex-api/data/pokemon_moves.csv @@ -0,0 +1,972 @@ +id,pokemon_id,move_id,level_learned,learn_method_id +1,1,33,1,1 +2,1,45,1,1 +3,1,73,7,1 +4,1,22,13,1 +5,1,77,20,1 +6,1,75,27,1 +7,1,74,34,1 +8,1,79,41,1 +9,1,76,48,1 +10,2,33,1,1 +11,2,45,1,1 +12,2,73,1,1 +13,2,22,13,1 +14,2,77,22,1 +15,2,75,30,1 +16,2,74,38,1 +17,2,79,46,1 +18,2,76,54,1 +19,3,33,1,1 +20,3,45,1,1 +21,3,22,1,1 +22,3,75,30,1 +23,3,76,65,1 +24,3,80,1,1 +25,3,63,50,2 +26,3,89,45,2 +27,4,10,1,1 +28,4,45,1,1 +29,4,52,9,1 +30,4,43,15,1 +31,4,98,22,1 +32,4,159,30,1 +33,4,53,38,1 +34,4,83,46,1 +35,5,10,1,1 +36,5,45,1,1 +37,5,52,1,1 +38,5,43,15,1 +39,5,98,24,1 +40,5,159,33,1 +41,5,53,42,1 +42,5,83,56,1 +43,6,10,1,1 +44,6,45,1,1 +45,6,52,1,1 +46,6,17,1,1 +47,6,159,33,1 +48,6,53,46,1 +49,6,122,55,2 +50,6,19,50,3 +51,6,82,25,2 +52,7,33,1,1 +53,7,39,1,1 +54,7,141,8,1 +55,7,55,22,1 +56,7,44,28,1 +57,7,56,42,1 +58,8,33,1,1 +59,8,39,1,1 +60,8,141,1,1 +61,8,55,24,1 +62,8,44,31,1 +63,8,56,47,1 +64,9,33,1,1 +65,9,39,1,1 +66,9,55,1,1 +67,9,44,31,1 +68,9,56,52,1 +69,9,126,40,2 +70,9,57,45,3 +71,9,58,35,2 +72,10,33,1,1 +73,10,81,1,1 +74,10,105,7,1 +75,10,93,12,1 +76,10,77,15,1 +77,10,78,16,1 +78,10,79,17,1 +79,10,16,28,1 +80,10,60,34,1 +81,11,33,1,1 +82,11,81,1,1 +83,11,105,7,1 +84,11,93,12,1 +85,11,77,15,1 +86,11,78,16,1 +87,11,79,17,1 +88,11,16,28,1 +89,11,60,34,1 +90,12,33,1,1 +91,12,81,1,1 +92,12,105,7,1 +93,12,93,12,1 +94,12,77,15,1 +95,12,78,16,1 +96,12,79,17,1 +97,12,16,28,1 +98,12,60,34,1 +99,13,40,1,1 +100,13,81,1,1 +101,13,105,7,1 +102,13,31,12,1 +103,13,41,20,1 +104,13,42,35,1 +105,13,96,45,1 +106,14,40,1,1 +107,14,81,1,1 +108,14,105,7,1 +109,14,31,12,1 +110,14,41,20,1 +111,14,42,35,1 +112,14,96,45,1 +113,15,40,1,1 +114,15,81,1,1 +115,15,105,7,1 +116,15,31,12,1 +117,15,41,20,1 +118,15,42,35,1 +119,15,96,45,1 +120,16,16,1,1 +121,16,28,5,1 +122,16,97,12,1 +123,16,18,19,1 +124,16,17,28,1 +125,16,96,44,1 +126,16,19,30,3 +127,16,13,50,2 +128,17,16,1,1 +129,17,28,5,1 +130,17,97,12,1 +131,17,18,19,1 +132,17,17,28,1 +133,17,96,44,1 +134,17,19,30,3 +135,17,13,50,2 +136,18,16,1,1 +137,18,28,5,1 +138,18,97,12,1 +139,18,18,19,1 +140,18,17,28,1 +141,18,96,44,1 +142,18,19,30,3 +143,18,13,50,2 +144,19,33,1,1 +145,19,39,1,1 +146,19,97,7,1 +147,19,154,14,1 +148,19,114,23,1 +149,19,158,34,1 +150,20,33,1,1 +151,20,39,1,1 +152,20,97,7,1 +153,20,154,14,1 +154,20,114,23,1 +155,20,158,34,1 +156,21,33,1,1 +157,21,39,1,1 +158,21,55,8,1 +159,21,61,20,1 +160,21,58,32,1 +161,21,56,45,1 +162,22,40,1,1 +163,22,81,1,1 +164,22,71,10,1 +165,22,51,20,1 +166,22,72,32,1 +167,22,120,42,1 +168,23,84,1,1 +169,23,93,1,1 +170,23,86,12,1 +171,23,60,24,1 +172,23,85,36,1 +173,23,94,48,1 +174,24,33,1,1 +175,24,109,1,1 +176,24,29,14,1 +177,24,88,22,1 +178,24,34,35,1 +179,24,89,48,1 +180,25,84,1,1 +181,25,45,1,1 +182,25,86,9,1 +183,25,97,16,1 +184,25,103,26,1 +185,25,85,33,1 +186,25,87,43,1 +187,25,96,50,1 +188,26,84,1,1 +189,26,45,1,1 +190,26,86,9,1 +191,26,97,16,1 +192,26,103,26,1 +193,26,85,33,1 +194,26,87,43,1 +195,26,96,50,1 +196,27,40,1,1 +197,27,81,1,1 +198,27,71,10,1 +199,27,51,20,1 +200,27,72,32,1 +201,27,120,42,1 +202,28,84,1,1 +203,28,93,1,1 +204,28,86,12,1 +205,28,60,24,1 +206,28,85,36,1 +207,28,94,48,1 +208,29,33,1,1 +209,29,109,1,1 +210,29,29,14,1 +211,29,88,22,1 +212,29,34,35,1 +213,29,89,48,1 +214,30,33,1,1 +215,30,45,1,1 +216,30,52,10,1 +217,30,44,18,1 +218,30,53,30,1 +219,30,36,40,1 +220,31,33,1,1 +221,31,39,1,1 +222,31,55,8,1 +223,31,61,20,1 +224,31,58,32,1 +225,31,56,45,1 +226,32,40,1,1 +227,32,81,1,1 +228,32,71,10,1 +229,32,51,20,1 +230,32,72,32,1 +231,32,120,42,1 +232,33,84,1,1 +233,33,93,1,1 +234,33,86,12,1 +235,33,60,24,1 +236,33,85,36,1 +237,33,94,48,1 +238,34,33,1,1 +239,34,109,1,1 +240,34,29,14,1 +241,34,88,22,1 +242,34,34,35,1 +243,34,89,48,1 +244,35,1,1,1 +245,35,45,1,1 +246,35,47,13,1 +247,35,109,18,1 +248,35,115,24,1 +249,35,106,31,1 +250,35,111,39,1 +251,36,1,1,1 +252,36,45,1,1 +253,36,47,13,1 +254,36,109,18,1 +255,36,115,24,1 +256,36,106,31,1 +257,36,111,39,1 +258,37,40,1,1 +259,37,81,1,1 +260,37,71,10,1 +261,37,51,20,1 +262,37,72,32,1 +263,37,120,42,1 +264,38,84,1,1 +265,38,93,1,1 +266,38,86,12,1 +267,38,60,24,1 +268,38,85,36,1 +269,38,94,48,1 +270,39,47,1,1 +271,39,109,1,1 +272,39,1,9,1 +273,39,50,14,1 +274,39,3,19,1 +275,39,152,24,1 +276,39,34,30,1 +277,39,38,39,1 +278,40,47,1,1 +279,40,109,1,1 +280,40,1,9,1 +281,40,50,14,1 +282,40,3,19,1 +283,40,152,24,1 +284,40,34,30,1 +285,40,38,39,1 +286,41,33,1,1 +287,41,39,1,1 +288,41,55,8,1 +289,41,61,20,1 +290,41,58,32,1 +291,41,56,45,1 +292,42,40,1,1 +293,42,81,1,1 +294,42,71,10,1 +295,42,51,20,1 +296,42,72,32,1 +297,42,120,42,1 +298,43,84,1,1 +299,43,93,1,1 +300,43,86,12,1 +301,43,60,24,1 +302,43,85,36,1 +303,43,94,48,1 +304,44,33,1,1 +305,44,109,1,1 +306,44,29,14,1 +307,44,88,22,1 +308,44,34,35,1 +309,44,89,48,1 +310,45,33,1,1 +311,45,45,1,1 +312,45,52,10,1 +313,45,44,18,1 +314,45,53,30,1 +315,45,36,40,1 +316,46,33,1,1 +317,46,39,1,1 +318,46,55,8,1 +319,46,61,20,1 +320,46,58,32,1 +321,46,56,45,1 +322,47,40,1,1 +323,47,81,1,1 +324,47,71,10,1 +325,47,51,20,1 +326,47,72,32,1 +327,47,120,42,1 +328,48,84,1,1 +329,48,93,1,1 +330,48,86,12,1 +331,48,60,24,1 +332,48,85,36,1 +333,48,94,48,1 +334,49,33,1,1 +335,49,109,1,1 +336,49,29,14,1 +337,49,88,22,1 +338,49,34,35,1 +339,49,89,48,1 +340,50,33,1,1 +341,50,45,1,1 +342,50,52,10,1 +343,50,44,18,1 +344,50,53,30,1 +345,50,36,40,1 +346,51,33,1,1 +347,51,39,1,1 +348,51,55,8,1 +349,51,61,20,1 +350,51,58,32,1 +351,51,56,45,1 +352,52,40,1,1 +353,52,81,1,1 +354,52,71,10,1 +355,52,51,20,1 +356,52,72,32,1 +357,52,120,42,1 +358,53,84,1,1 +359,53,93,1,1 +360,53,86,12,1 +361,53,60,24,1 +362,53,85,36,1 +363,53,94,48,1 +364,54,33,1,1 +365,54,109,1,1 +366,54,29,14,1 +367,54,88,22,1 +368,54,34,35,1 +369,54,89,48,1 +370,55,33,1,1 +371,55,45,1,1 +372,55,52,10,1 +373,55,44,18,1 +374,55,53,30,1 +375,55,36,40,1 +376,56,33,1,1 +377,56,39,1,1 +378,56,55,8,1 +379,56,61,20,1 +380,56,58,32,1 +381,56,56,45,1 +382,57,40,1,1 +383,57,81,1,1 +384,57,71,10,1 +385,57,51,20,1 +386,57,72,32,1 +387,57,120,42,1 +388,58,84,1,1 +389,58,93,1,1 +390,58,86,12,1 +391,58,60,24,1 +392,58,85,36,1 +393,58,94,48,1 +394,59,33,1,1 +395,59,109,1,1 +396,59,29,14,1 +397,59,88,22,1 +398,59,34,35,1 +399,59,89,48,1 +400,60,33,1,1 +401,60,45,1,1 +402,60,52,10,1 +403,60,44,18,1 +404,60,53,30,1 +405,60,36,40,1 +406,61,33,1,1 +407,61,39,1,1 +408,61,55,8,1 +409,61,61,20,1 +410,61,58,32,1 +411,61,56,45,1 +412,62,40,1,1 +413,62,81,1,1 +414,62,71,10,1 +415,62,51,20,1 +416,62,72,32,1 +417,62,120,42,1 +418,63,99,1,1 +419,63,93,16,1 +420,63,50,18,1 +421,63,60,21,1 +422,63,104,26,1 +423,63,94,38,1 +424,63,113,42,1 +425,64,99,1,1 +426,64,93,16,1 +427,64,50,18,1 +428,64,60,21,1 +429,64,104,26,1 +430,64,94,38,1 +431,64,113,42,1 +432,65,99,1,1 +433,65,93,16,1 +434,65,50,18,1 +435,65,60,21,1 +436,65,104,26,1 +437,65,94,38,1 +438,65,113,42,1 +439,66,2,1,1 +440,66,67,1,1 +441,66,43,20,1 +442,66,114,25,1 +443,66,69,32,1 +444,66,66,39,1 +445,67,2,1,1 +446,67,67,1,1 +447,67,43,20,1 +448,67,114,25,1 +449,67,69,32,1 +450,67,66,39,1 +451,68,2,1,1 +452,68,67,1,1 +453,68,43,20,1 +454,68,114,25,1 +455,68,69,32,1 +456,68,66,39,1 +457,69,33,1,1 +458,69,109,1,1 +459,69,29,14,1 +460,69,88,22,1 +461,69,34,35,1 +462,69,89,48,1 +463,70,33,1,1 +464,70,45,1,1 +465,70,52,10,1 +466,70,44,18,1 +467,70,53,30,1 +468,70,36,40,1 +469,71,33,1,1 +470,71,39,1,1 +471,71,55,8,1 +472,71,61,20,1 +473,71,58,32,1 +474,71,56,45,1 +475,72,40,1,1 +476,72,81,1,1 +477,72,71,10,1 +478,72,51,20,1 +479,72,72,32,1 +480,72,120,42,1 +481,73,84,1,1 +482,73,93,1,1 +483,73,86,12,1 +484,73,60,24,1 +485,73,85,36,1 +486,73,94,48,1 +487,74,33,1,1 +488,74,109,1,1 +489,74,88,11,1 +490,74,116,21,1 +491,74,105,31,1 +492,74,89,36,1 +493,74,149,43,1 +494,75,33,1,1 +495,75,109,1,1 +496,75,88,11,1 +497,75,116,21,1 +498,75,105,31,1 +499,75,89,36,1 +500,75,149,43,1 +501,76,33,1,1 +502,76,109,1,1 +503,76,88,11,1 +504,76,116,21,1 +505,76,105,31,1 +506,76,89,36,1 +507,76,149,43,1 +508,77,40,1,1 +509,77,81,1,1 +510,77,71,10,1 +511,77,51,20,1 +512,77,72,32,1 +513,77,120,42,1 +514,78,84,1,1 +515,78,93,1,1 +516,78,86,12,1 +517,78,60,24,1 +518,78,85,36,1 +519,78,94,48,1 +520,79,33,1,1 +521,79,109,1,1 +522,79,29,14,1 +523,79,88,22,1 +524,79,34,35,1 +525,79,89,48,1 +526,80,33,1,1 +527,80,45,1,1 +528,80,52,10,1 +529,80,44,18,1 +530,80,53,30,1 +531,80,36,40,1 +532,81,33,1,1 +533,81,39,1,1 +534,81,55,8,1 +535,81,61,20,1 +536,81,58,32,1 +537,81,56,45,1 +538,82,40,1,1 +539,82,81,1,1 +540,82,71,10,1 +541,82,51,20,1 +542,82,72,32,1 +543,82,120,42,1 +544,83,84,1,1 +545,83,93,1,1 +546,83,86,12,1 +547,83,60,24,1 +548,83,85,36,1 +549,83,94,48,1 +550,84,33,1,1 +551,84,109,1,1 +552,84,29,14,1 +553,84,88,22,1 +554,84,34,35,1 +555,84,89,48,1 +556,85,33,1,1 +557,85,45,1,1 +558,85,52,10,1 +559,85,44,18,1 +560,85,53,30,1 +561,85,36,40,1 +562,86,33,1,1 +563,86,39,1,1 +564,86,55,8,1 +565,86,61,20,1 +566,86,58,32,1 +567,86,56,45,1 +568,87,40,1,1 +569,87,81,1,1 +570,87,71,10,1 +571,87,51,20,1 +572,87,72,32,1 +573,87,120,42,1 +574,88,84,1,1 +575,88,93,1,1 +576,88,86,12,1 +577,88,60,24,1 +578,88,85,36,1 +579,88,94,48,1 +580,89,33,1,1 +581,89,109,1,1 +582,89,29,14,1 +583,89,88,22,1 +584,89,34,35,1 +585,89,89,48,1 +586,90,33,1,1 +587,90,45,1,1 +588,90,52,10,1 +589,90,44,18,1 +590,90,53,30,1 +591,90,36,40,1 +592,91,33,1,1 +593,91,39,1,1 +594,91,55,8,1 +595,91,61,20,1 +596,91,58,32,1 +597,91,56,45,1 +598,92,118,1,1 +599,92,108,1,1 +600,92,100,1,1 +601,92,95,27,1 +602,92,134,35,1 +603,92,94,40,2 +604,93,118,1,1 +605,93,108,1,1 +606,93,100,1,1 +607,93,95,27,1 +608,93,134,35,1 +609,93,94,40,2 +610,94,118,1,1 +611,94,108,1,1 +612,94,100,1,1 +613,94,95,27,1 +614,94,134,35,1 +615,94,94,40,2 +616,95,33,1,1 +617,95,45,1,1 +618,95,52,10,1 +619,95,44,18,1 +620,95,53,30,1 +621,95,36,40,1 +622,96,33,1,1 +623,96,39,1,1 +624,96,55,8,1 +625,96,61,20,1 +626,96,58,32,1 +627,96,56,45,1 +628,97,40,1,1 +629,97,81,1,1 +630,97,71,10,1 +631,97,51,20,1 +632,97,72,32,1 +633,97,120,42,1 +634,98,84,1,1 +635,98,93,1,1 +636,98,86,12,1 +637,98,60,24,1 +638,98,85,36,1 +639,98,94,48,1 +640,99,33,1,1 +641,99,109,1,1 +642,99,29,14,1 +643,99,88,22,1 +644,99,34,35,1 +645,99,89,48,1 +646,100,33,1,1 +647,100,45,1,1 +648,100,52,10,1 +649,100,44,18,1 +650,100,53,30,1 +651,100,36,40,1 +652,101,33,1,1 +653,101,39,1,1 +654,101,55,8,1 +655,101,61,20,1 +656,101,58,32,1 +657,101,56,45,1 +658,102,40,1,1 +659,102,81,1,1 +660,102,71,10,1 +661,102,51,20,1 +662,102,72,32,1 +663,102,120,42,1 +664,103,84,1,1 +665,103,93,1,1 +666,103,86,12,1 +667,103,60,24,1 +668,103,85,36,1 +669,103,94,48,1 +670,104,33,1,1 +671,104,109,1,1 +672,104,29,14,1 +673,104,88,22,1 +674,104,34,35,1 +675,104,89,48,1 +676,105,33,1,1 +677,105,45,1,1 +678,105,52,10,1 +679,105,44,18,1 +680,105,53,30,1 +681,105,36,40,1 +682,106,33,1,1 +683,106,39,1,1 +684,106,55,8,1 +685,106,61,20,1 +686,106,58,32,1 +687,106,56,45,1 +688,107,40,1,1 +689,107,81,1,1 +690,107,71,10,1 +691,107,51,20,1 +692,107,72,32,1 +693,107,120,42,1 +694,108,84,1,1 +695,108,93,1,1 +696,108,86,12,1 +697,108,60,24,1 +698,108,85,36,1 +699,108,94,48,1 +700,109,33,1,1 +701,109,109,1,1 +702,109,29,14,1 +703,109,88,22,1 +704,109,34,35,1 +705,109,89,48,1 +706,110,33,1,1 +707,110,45,1,1 +708,110,52,10,1 +709,110,44,18,1 +710,110,53,30,1 +711,110,36,40,1 +712,111,33,1,1 +713,111,39,1,1 +714,111,55,8,1 +715,111,61,20,1 +716,111,58,32,1 +717,111,56,45,1 +718,112,40,1,1 +719,112,81,1,1 +720,112,71,10,1 +721,112,51,20,1 +722,112,72,32,1 +723,112,120,42,1 +724,113,84,1,1 +725,113,93,1,1 +726,113,86,12,1 +727,113,60,24,1 +728,113,85,36,1 +729,113,94,48,1 +730,114,33,1,1 +731,114,109,1,1 +732,114,29,14,1 +733,114,88,22,1 +734,114,34,35,1 +735,114,89,48,1 +736,115,33,1,1 +737,115,45,1,1 +738,115,52,10,1 +739,115,44,18,1 +740,115,53,30,1 +741,115,36,40,1 +742,116,33,1,1 +743,116,39,1,1 +744,116,55,8,1 +745,116,61,20,1 +746,116,58,32,1 +747,116,56,45,1 +748,117,40,1,1 +749,117,81,1,1 +750,117,71,10,1 +751,117,51,20,1 +752,117,72,32,1 +753,117,120,42,1 +754,118,84,1,1 +755,118,93,1,1 +756,118,86,12,1 +757,118,60,24,1 +758,118,85,36,1 +759,118,94,48,1 +760,119,33,1,1 +761,119,109,1,1 +762,119,29,14,1 +763,119,88,22,1 +764,119,34,35,1 +765,119,89,48,1 +766,120,33,1,1 +767,120,45,1,1 +768,120,52,10,1 +769,120,44,18,1 +770,120,53,30,1 +771,120,36,40,1 +772,121,33,1,1 +773,121,39,1,1 +774,121,55,8,1 +775,121,61,20,1 +776,121,58,32,1 +777,121,56,45,1 +778,122,40,1,1 +779,122,81,1,1 +780,122,71,10,1 +781,122,51,20,1 +782,122,72,32,1 +783,122,120,42,1 +784,123,84,1,1 +785,123,93,1,1 +786,123,86,12,1 +787,123,60,24,1 +788,123,85,36,1 +789,123,94,48,1 +790,124,33,1,1 +791,124,109,1,1 +792,124,29,14,1 +793,124,88,22,1 +794,124,34,35,1 +795,124,89,48,1 +796,125,33,1,1 +797,125,45,1,1 +798,125,52,10,1 +799,125,44,18,1 +800,125,53,30,1 +801,125,36,40,1 +802,126,33,1,1 +803,126,39,1,1 +804,126,55,8,1 +805,126,61,20,1 +806,126,58,32,1 +807,126,56,45,1 +808,127,40,1,1 +809,127,81,1,1 +810,127,71,10,1 +811,127,51,20,1 +812,127,72,32,1 +813,127,120,42,1 +814,128,84,1,1 +815,128,93,1,1 +816,128,86,12,1 +817,128,60,24,1 +818,128,85,36,1 +819,128,94,48,1 +820,129,33,1,1 +821,129,109,1,1 +822,129,29,14,1 +823,129,88,22,1 +824,129,34,35,1 +825,129,89,48,1 +826,130,33,1,1 +827,130,45,1,1 +828,130,52,10,1 +829,130,44,18,1 +830,130,53,30,1 +831,130,36,40,1 +832,131,33,1,1 +833,131,39,1,1 +834,131,55,8,1 +835,131,61,20,1 +836,131,58,32,1 +837,131,56,45,1 +838,132,40,1,1 +839,132,81,1,1 +840,132,71,10,1 +841,132,51,20,1 +842,132,72,32,1 +843,132,120,42,1 +844,133,84,1,1 +845,133,93,1,1 +846,133,86,12,1 +847,133,60,24,1 +848,133,85,36,1 +849,133,94,48,1 +850,134,33,1,1 +851,134,109,1,1 +852,134,29,14,1 +853,134,88,22,1 +854,134,34,35,1 +855,134,89,48,1 +856,135,33,1,1 +857,135,45,1,1 +858,135,52,10,1 +859,135,44,18,1 +860,135,53,30,1 +861,135,36,40,1 +862,136,33,1,1 +863,136,39,1,1 +864,136,55,8,1 +865,136,61,20,1 +866,136,58,32,1 +867,136,56,45,1 +868,137,40,1,1 +869,137,81,1,1 +870,137,71,10,1 +871,137,51,20,1 +872,137,72,32,1 +873,137,120,42,1 +874,138,84,1,1 +875,138,93,1,1 +876,138,86,12,1 +877,138,60,24,1 +878,138,85,36,1 +879,138,94,48,1 +880,139,33,1,1 +881,139,109,1,1 +882,139,29,14,1 +883,139,88,22,1 +884,139,34,35,1 +885,139,89,48,1 +886,140,33,1,1 +887,140,45,1,1 +888,140,52,10,1 +889,140,44,18,1 +890,140,53,30,1 +891,140,36,40,1 +892,141,33,1,1 +893,141,39,1,1 +894,141,55,8,1 +895,141,61,20,1 +896,141,58,32,1 +897,141,56,45,1 +898,142,40,1,1 +899,142,81,1,1 +900,142,71,10,1 +901,142,51,20,1 +902,142,72,32,1 +903,142,120,42,1 +904,143,84,1,1 +905,143,93,1,1 +906,143,86,12,1 +907,143,60,24,1 +908,143,85,36,1 +909,143,94,48,1 +910,144,16,1,1 +911,144,58,51,1 +912,144,59,60,1 +913,144,96,70,1 +914,144,54,1,1 +915,145,84,1,1 +916,145,65,51,1 +917,145,87,60,1 +918,145,96,70,1 +919,145,111,1,1 +920,146,17,1,1 +921,146,53,51,1 +922,146,122,60,1 +923,146,96,70,1 +924,146,76,50,2 +925,147,35,1,1 +926,147,43,1,1 +927,147,86,10,1 +928,147,96,20,1 +929,147,82,35,1 +930,147,63,55,1 +931,147,17,55,1 +932,148,35,1,1 +933,148,43,1,1 +934,148,86,10,1 +935,148,96,20,1 +936,148,82,35,1 +937,148,63,55,1 +938,148,17,55,1 +939,149,35,1,1 +940,149,43,1,1 +941,149,86,10,1 +942,149,96,20,1 +943,149,82,35,1 +944,149,63,55,1 +945,149,17,55,1 +946,150,93,1,1 +947,150,50,1,1 +948,150,125,1,1 +949,150,94,63,1 +950,150,110,70,1 +951,150,104,75,1 +952,150,129,81,1 +953,150,54,90,1 +954,150,115,1,1 +955,150,140,1,1 +956,151,93,1,1 +957,151,50,1,1 +958,151,125,1,1 +959,151,94,63,1 +960,151,110,70,1 +961,151,104,75,1 +962,151,129,81,1 +963,151,54,90,1 +964,151,115,1,1 +965,151,140,1,1 +966,304,33,1,1 +967,304,105,1,1 +968,304,29,8,1 +969,304,163,11,1 +970,304,153,25,1 +971,304,36,32,1 diff --git a/works/pokedex-api/data/pokemon_stats.csv b/works/pokedex-api/data/pokemon_stats.csv new file mode 100644 index 0000000..bb272ff --- /dev/null +++ b/works/pokedex-api/data/pokemon_stats.csv @@ -0,0 +1,153 @@ +pokemon_id,hp,atk,def,satk,sdef,spd +1,45,49,49,65,65,45 +2,60,62,63,80,80,60 +3,80,82,83,100,100,80 +4,39,52,43,60,50,65 +5,58,64,58,80,65,80 +6,78,84,78,109,85,100 +7,44,48,65,50,64,43 +8,59,63,80,65,80,58 +9,79,83,100,85,105,78 +10,45,30,35,20,20,45 +11,50,20,55,25,25,30 +12,60,45,50,90,80,70 +13,40,35,30,20,20,50 +14,45,25,50,25,25,35 +15,65,90,40,45,80,75 +16,40,45,40,35,35,56 +17,63,60,55,50,50,71 +18,83,80,75,70,70,101 +19,30,56,35,25,35,72 +20,55,81,60,50,70,97 +21,40,60,30,31,31,70 +22,65,90,65,61,61,100 +23,35,60,44,40,54,55 +24,60,95,69,65,79,80 +25,35,55,40,50,50,90 +26,60,90,55,90,80,110 +27,50,75,85,20,30,40 +28,75,100,110,45,55,65 +29,55,47,52,40,40,41 +30,70,62,67,55,55,56 +31,90,92,87,75,85,76 +32,46,57,40,40,40,50 +33,61,72,57,55,55,65 +34,81,102,77,85,75,85 +35,70,45,48,60,65,35 +36,95,70,73,95,90,60 +37,38,41,40,50,65,65 +38,73,76,75,81,100,100 +39,115,45,20,45,25,20 +40,140,70,45,85,50,45 +41,40,45,35,30,40,55 +42,75,80,70,65,75,90 +43,45,50,55,75,65,30 +44,60,65,70,85,75,40 +45,75,80,85,110,90,50 +46,35,70,55,45,55,30 +47,60,95,80,60,80,30 +48,60,55,50,40,55,45 +49,70,65,60,90,75,90 +50,10,55,25,35,45,95 +51,35,100,50,50,70,120 +52,40,45,35,40,40,90 +53,65,70,60,65,65,115 +54,50,52,48,65,50,55 +55,80,82,78,95,80,85 +56,40,80,35,35,45,70 +57,65,105,60,60,70,95 +58,55,70,45,70,50,60 +59,90,110,80,100,80,95 +60,40,50,40,40,40,90 +61,65,65,65,50,50,90 +62,90,95,95,70,90,70 +63,25,20,15,105,55,90 +64,40,35,30,120,70,105 +65,55,50,45,135,95,120 +66,70,80,50,35,35,35 +67,80,100,70,50,60,45 +68,90,130,80,65,85,55 +69,50,75,35,70,30,40 +70,65,90,50,85,45,55 +71,80,105,65,100,70,70 +72,40,40,35,50,100,70 +73,80,70,65,80,120,100 +74,40,80,100,30,30,20 +75,55,95,115,45,45,35 +76,80,120,130,55,65,45 +77,50,85,55,65,65,90 +78,65,100,70,80,80,105 +79,90,65,65,40,40,15 +80,95,75,110,100,80,30 +81,25,35,70,95,55,45 +82,50,60,95,120,70,70 +83,52,90,55,58,62,60 +84,35,85,45,35,35,75 +85,60,110,70,60,60,110 +86,65,45,55,45,70,45 +87,90,70,80,70,95,70 +88,80,80,50,40,50,25 +89,105,105,75,65,100,50 +90,30,65,100,45,25,40 +91,50,95,180,85,45,70 +92,30,35,30,100,35,80 +93,45,50,45,115,55,95 +94,60,65,60,130,75,110 +95,35,45,160,30,45,70 +96,60,48,45,43,90,42 +97,85,73,70,73,115,67 +98,30,105,90,25,25,50 +99,55,130,115,50,50,75 +100,40,30,50,55,55,100 +101,60,50,70,80,80,150 +102,60,40,80,60,45,40 +103,95,95,85,125,75,55 +104,50,50,95,40,50,35 +105,60,80,110,50,80,45 +106,50,120,53,35,110,87 +107,50,105,79,35,110,76 +108,90,55,75,60,75,30 +109,40,65,95,60,45,35 +110,65,90,120,85,70,60 +111,80,85,95,30,30,25 +112,105,130,120,45,45,40 +113,250,5,5,35,105,50 +114,65,55,115,100,40,60 +115,105,95,80,40,80,90 +116,30,40,70,70,25,60 +117,55,65,95,95,45,85 +118,45,67,60,35,50,63 +119,80,92,65,65,80,68 +120,30,45,55,70,55,85 +121,60,75,85,100,85,115 +122,40,45,65,100,120,90 +123,70,110,80,55,80,105 +124,65,50,35,115,95,95 +125,65,83,57,95,85,105 +126,65,95,57,100,85,93 +127,65,125,100,55,70,85 +128,75,100,95,40,70,110 +129,20,10,55,15,20,80 +130,95,125,79,60,100,81 +131,130,85,80,85,95,60 +132,48,48,48,48,48,48 +133,55,55,50,45,65,55 +134,130,65,60,110,95,65 +135,65,65,60,110,95,130 +136,65,130,60,95,110,65 +137,65,60,70,85,75,40 +138,35,40,100,90,55,35 +139,70,60,125,115,70,55 +140,30,80,90,55,45,55 +141,60,115,105,65,70,80 +142,80,105,65,60,75,130 +143,160,110,65,65,110,30 +144,90,85,100,95,125,85 +145,90,90,85,125,90,100 +146,90,100,90,125,85,90 +147,41,64,45,50,50,50 +148,61,84,65,70,70,70 +149,91,134,95,100,100,80 +150,106,110,90,154,90,130 +151,100,100,100,100,100,100 +304,50,70,100,40,40,30 diff --git a/works/pokedex-api/data/pokemon_types.csv b/works/pokedex-api/data/pokemon_types.csv new file mode 100644 index 0000000..56f3fb2 --- /dev/null +++ b/works/pokedex-api/data/pokemon_types.csv @@ -0,0 +1,221 @@ +id,pokemon_id,type_id +1,1,1 +2,1,2 +3,2,1 +4,2,2 +5,3,1 +6,3,2 +7,4,3 +8,5,3 +9,6,3 +10,6,6 +11,7,4 +12,8,4 +13,9,4 +14,10,5 +15,11,5 +16,12,5 +17,12,6 +18,13,5 +19,13,2 +20,14,5 +21,14,2 +22,15,5 +23,15,2 +24,16,7 +25,16,6 +26,17,7 +27,17,6 +28,18,7 +29,18,6 +30,19,7 +31,20,7 +32,21,7 +33,21,6 +34,22,7 +35,22,6 +36,23,2 +37,24,2 +38,25,8 +39,26,8 +40,27,9 +41,28,9 +42,29,2 +43,30,2 +44,31,2 +45,31,9 +46,32,2 +47,33,2 +48,34,2 +49,34,9 +50,35,10 +51,36,10 +52,37,3 +53,38,3 +54,39,7 +55,39,10 +56,40,7 +57,40,10 +58,41,2 +59,41,6 +60,42,2 +61,42,6 +62,43,1 +63,43,2 +64,44,1 +65,44,2 +66,45,1 +67,45,2 +68,46,5 +69,46,1 +70,47,5 +71,47,1 +72,48,5 +73,48,2 +74,49,5 +75,49,2 +76,50,9 +77,51,9 +78,52,7 +79,53,7 +80,54,4 +81,55,4 +82,56,11 +83,57,11 +84,58,3 +85,59,3 +86,60,4 +87,61,4 +88,62,4 +89,62,11 +90,63,12 +91,64,12 +92,65,12 +93,66,11 +94,67,11 +95,68,11 +96,69,1 +97,69,2 +98,70,1 +99,70,2 +100,71,1 +101,71,2 +102,72,4 +103,72,2 +104,73,4 +105,73,2 +106,74,13 +107,74,9 +108,75,13 +109,75,9 +110,76,13 +111,76,9 +112,77,3 +113,78,3 +114,79,4 +115,79,12 +116,80,4 +117,80,12 +118,81,8 +119,81,14 +120,82,8 +121,82,14 +122,83,7 +123,83,6 +124,84,7 +125,84,6 +126,85,7 +127,85,6 +128,86,4 +129,87,4 +130,87,15 +131,88,2 +132,89,2 +133,90,4 +134,91,4 +135,91,15 +136,92,16 +137,92,2 +138,93,16 +139,93,2 +140,94,16 +141,94,2 +142,95,13 +143,95,9 +144,96,12 +145,97,12 +146,98,4 +147,99,4 +148,100,8 +149,101,8 +150,102,1 +151,102,12 +152,103,1 +153,103,12 +154,104,9 +155,105,9 +156,106,11 +157,107,11 +158,108,7 +159,109,2 +160,110,2 +161,111,9 +162,111,13 +163,112,9 +164,112,13 +165,113,7 +166,114,1 +167,115,7 +168,116,4 +169,117,4 +170,118,4 +171,119,4 +172,120,4 +173,121,4 +174,121,12 +175,122,12 +176,122,10 +177,123,5 +178,123,6 +179,124,15 +180,124,12 +181,125,8 +182,126,3 +183,127,5 +184,128,7 +185,129,4 +186,130,4 +187,130,6 +188,131,4 +189,131,15 +190,132,7 +191,133,7 +192,134,4 +193,135,8 +194,136,3 +195,137,7 +196,138,13 +197,138,4 +198,139,13 +199,139,4 +200,140,13 +201,140,4 +202,141,13 +203,141,4 +204,142,13 +205,142,6 +206,143,7 +207,144,15 +208,144,6 +209,145,8 +210,145,6 +211,146,3 +212,146,6 +213,147,17 +214,148,17 +215,149,17 +216,149,6 +217,150,12 +218,151,12 +219,304,14 +220,304,13 diff --git a/works/pokedex-api/data/pokemons.csv b/works/pokedex-api/data/pokemons.csv new file mode 100644 index 0000000..9f2e902 --- /dev/null +++ b/works/pokedex-api/data/pokemons.csv @@ -0,0 +1,153 @@ +id,name,height_m,weight_kg,image_url,description +1,Bulbasaur,0.7,6.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/1.png,There is a plant seed on its back right from the day this Pokémon is born. The seed slowly grows larger. +2,Ivysaur,1.0,13.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/2.png,"When the bulb on its back grows large, it appears to lose the ability to stand on its hind legs." +3,Venusaur,2.0,100.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/3.png,Its plant blooms when it is absorbing solar energy. It stays on the move to seek sunlight. +4,Charmander,0.6,8.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/4.png,"It has a preference for hot things. When it rains, steam is said to spout from the tip of its tail." +5,Charmeleon,1.1,19.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/5.png,It lashes about with its tail to knock down its foe. It then tears up the fallen opponent with sharp claws. +6,Charizard,1.7,90.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/6.png,It spits fire that is hot enough to melt boulders. It may cause forest fires by blowing flames. +7,Squirtle,0.5,9.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/7.png,"When it retracts its long neck into its shell, it squirts water with vigorous force." +8,Wartortle,1.0,22.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/8.png,"It is recognized as a symbol of longevity. If its shell has algae on it, that Wartortle is very old." +9,Blastoise,1.6,85.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/9.png,"It crushes its foe under its heavy body to cause fainting. In a pinch, it will withdraw inside its shell." +10,Caterpie,0.3,2.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/10.png,"For protection, it releases a horrible stench from the antenna on its head to drive away enemies." +11,Metapod,0.7,9.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/11.png,"It is waiting for the moment to evolve. At this stage, it can only harden, so it remains motionless to avoid attack." +12,Butterfree,1.1,32.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/12.png,"In battle, it flaps its wings at high speed to release highly toxic dust into the air." +13,Weedle,0.3,3.2,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/13.png,"Often found in forests and grasslands. It has a sharp, toxic barb of around two inches on top of its head." +14,Kakuna,0.6,10.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/14.png,"Almost incapable of moving, this Pokémon can only harden its shell to protect itself when it is in danger." +15,Beedrill,1.0,29.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/15.png,It has three poisonous stingers on its forelegs and its tail. They are used to jab its enemy repeatedly. +16,Pidgey,0.3,1.8,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/16.png,"Very docile. If attacked, it will often kick up sand to protect itself rather than fight back." +17,Pidgeotto,1.1,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/17.png,This Pokémon is full of vitality. It constantly flies around its large territory in search of prey. +18,Pidgeot,1.5,39.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/18.png,"This Pokémon flies at Mach 2 speed, seeking prey. Its large talons are feared as wicked weapons." +19,Rattata,0.3,3.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/19.png,"Will chew on anything with its tusks. If you see one, it is certain that 40 more live in the area." +20,Raticate,0.7,18.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/20.png,Its whiskers help it maintain balance. It apparently slows down if they are cut off. +21,Spearow,0.3,2.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/21.png,"Ineps to protect its territory, it flies around flapping its short wings hurriedly." +22,Fearow,1.2,38.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/22.png,"With its huge and magnificent wings, it can keep aloft without ever having to land for rest." +23,Ekans,2.0,6.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/23.png,"Moving silently and stealthily, it eats the eggs of birds, such as Pidgey and Spearow, whole." +24,Arbok,3.5,65.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/24.png,The frightening patterns on its belly have been studied. Six variations have been confirmed. +25,Pikachu,0.4,6.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png,Pikachu that can generate powerful electricity have cheek pouches that are extra soft and super stretchy. +26,Raichu,0.8,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/26.png,Its long tail serves as a ground to protect itself from its own high-voltage power. +27,Sandshrew,0.6,12.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/27.png,It loves to roll up into a ball to protect itself and to burrow in dry sandy places. +28,Sandslash,1.0,29.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/28.png,"It curls up, then rolls at high speed into an enemy. Its tough spikes inflict heavy damage." +29,Nidoran♀,0.4,7.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/29.png,"Small and docile, it uses its small barbs to secrete venom when threatened." +30,Nidorina,0.8,20.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/30.png,"When Nidorina are with their friends or family, they keep their barbs tucked away to prevent injuring each other." +31,Nidoqueen,1.3,60.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/31.png,Its body is covered with needle-like scales. It never slacks off in protecting its lair. +32,Nidoran♂,0.5,9.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/32.png,Its large ears are flapped like wings when listening for distant sounds. It extends toxic barbs when enraged. +33,Nidorino,0.9,19.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/33.png,An easily angered Pokémon. It swings its horn in wild fury when it detects an enemy. +34,Nidoking,1.4,62.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/34.png,"It uses its powerful tail in battle to smash, constrict, then break the foe's bones." +35,Clefairy,0.6,7.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/35.png,Its magical and cute appeal has many admirers. It is rare and found only in certain areas. +36,Clefable,1.3,40.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/36.png,A timid fairy Pokémon that is rarely seen. It will run and hide the second it senses people. +37,Vulpix,0.6,9.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/37.png,"At the time of its birth, it has only one tail. The tail splits from its tip as it grows older." +38,Ninetales,1.1,19.9,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/38.png,"Very smart and very vengeful. Grabbing one of its many tails could result in a 1,000-year curse." +39,Jigglypuff,0.5,5.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/39.png,"When its huge eyes waver, it sings a mysteriously soothing melody that lulls its enemies to sleep." +40,Wigglytuff,1.0,12.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/40.png,"Its body is soft and rubbery. When angered, it will suck in air and inflate itself to an enormous size." +41,Zubat,0.8,7.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/41.png,Forms colonies in perpetually dark places. Uses ultrasonic waves to identify and approach targets. +42,Golbat,1.6,55.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/42.png,"Once it bites, it will not stop draining energy even if it gets too heavy to fly." +43,Oddish,0.5,5.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/43.png,"During the day, it keeps its face buried in the ground. At night, it wanders around sowing its seeds." +44,Gloom,0.8,8.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/44.png,The odor from the fluid oozing from its mouth can make a person lose their memory. +45,Vileplume,1.2,18.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/45.png,"The larger its petals, the more toxic its pollen. It has trouble supporting its heavy head." +46,Paras,0.3,5.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/46.png,Burrows under the ground to gnaw on tree roots. The mushrooms on its back grow by drawing nutrients from the bug host. +47,Parasect,1.0,29.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/47.png,A mushroom host has taken over the insect host. It prefers damp places. +48,Venonat,1.0,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/48.png,Lives in the shadows of tall trees where it eats insects. It is attracted to light at night. +49,Venomoth,1.5,12.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/49.png,The dust-like scales covering its wings are color-coded to indicate the kinds of poison it has. +50,Diglett,0.2,0.8,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/50.png,Lives about one yard underground where it feeds on plant roots. It sometimes appears aboveground. +51,Dugtrio,0.7,33.3,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/51.png,A team of Diglett triplets. It triggers huge earthquakes by burrowing 60 miles underground. +52,Meowth,0.4,4.2,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/52.png,Aches to shiny things. It loves to collect shiny objects and hidden treasure. +53,Persian,1.0,32.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/53.png,"Although its fur has many admirers, it is tough to raise as a pet because of its fickle meanness." +54,Psyduck,0.8,19.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/54.png,"While lulling its enemies with its vacant look, this wily Pokémon will use psychokinesis." +55,Golduck,1.7,76.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/55.png,Often seen swimming elegantly near lake shores. It is often mistaken for the Japanese monster Kappa. +56,Mankey,0.5,28.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/56.png,Extremely quick to anger. It could be docile one moment then thrashing away the next instant. +57,Primeape,1.0,32.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/57.png,It becomes wildly angry if it feels you are staring at it. It will chase anyone that meets its glare. +58,Growlithe,0.7,19.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/58.png,Very protective of its territory. It will bark and bite to repel intruders from its space. +59,Arcanine,1.9,155.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/59.png,A Pokémon that has long been admired for its beauty. It runs gracefully as if it were flying. +60,Poliwag,0.6,12.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/60.png,Its slick black skin is thin. Much of its internal organs are visible through the skin. +61,Poliwhirl,1.0,20.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/61.png,"Its two legs are well developed. Even though it can live on land, it prefers to live in water." +62,Poliwrath,1.3,54.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/62.png,An adept swimmer at both the front crawl and breast stroke. Easily overtakes the best human swimmers. +63,Abra,0.9,19.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/63.png,"Using its ability to read minds, it will identify impending danger and Teleport to safety." +64,Kadabra,1.3,56.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/64.png,It emits special alpha waves from its body that induce headaches just by being near it. +65,Alakazam,1.5,48.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/65.png,"Its brain can outperform a super-computer. Its IQ is said to be around 5,000." +66,Machop,0.8,19.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/66.png,Loves to build its muscles. It trains in all styles of martial arts to become even stronger. +67,Machoke,1.5,70.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/67.png,"Its muscular body is so powerful, it must wear a power-save belt to regulate its motions." +68,Machamp,1.6,130.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/68.png,"Using its four powerful arms, it can throw a flurry of 1,000 punches in just two seconds." +69,Bellsprout,0.7,4.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/69.png,A carnivorous Pokémon that traps and eats bugs. It uses its root feet to soak up needed moisture. +70,Weepinbell,1.0,6.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/70.png,It spits out PoisonPowder to immobilize the enemy and then finishes it with a spray of Acid. +71,Victreebel,1.7,15.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/71.png,"Said to live in huge colonies deep inside jungles, although no one has ever returned from there." +72,Tentacool,0.9,45.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/72.png,Drifts in shallow seas. Anglers who hook them are often stung by their toxic tentacles. +73,Tentacruel,1.6,55.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/73.png,Its 80 tentacles can stretch and contract freely. They wrap around prey and weaken it with poison. +74,Geodude,0.4,20.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/74.png,"Found in fields and mountains. Mistaking them for boulders, people often step on or trip over them." +75,Graveler,1.0,105.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/75.png,Rolls down slopes to move. It rolls over any obstacle without slowing or changing its direction. +76,Golem,1.4,300.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/76.png,Its boulder-like body is extremely hard. It can easily withstand dynamite blasts without damage. +77,Ponyta,1.0,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/77.png,Its hooves are 10 times harder than diamonds. It can trample anything completely flat in a short time. +78,Rapidash,1.7,95.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/78.png,"Very competitive, this Pokémon will chase anything that moves fast in hopes of racing it." +79,Slowpoke,1.2,36.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/79.png,Incredibly slow and dopey. It takes 5 seconds for it to feel pain when under attack. +80,Slowbro,1.6,78.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/80.png,"An Shellder bit onto Slowpoke's tail and turned it into Slowbro. Naturally dopey, it forgets pain." +81,Magnemite,0.3,6.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/81.png,Uses anti-gravity to float on air. Appears without warning and uses Thunder Wave and electricity. +82,Magneton,1.0,60.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/82.png,Formed by several Magnemite linked together. They discharge powerful magnetic waves. +83,Farfetch'd,0.8,15.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/83.png,The stalk of green onions it holds is its weapon. It uses the stalk like a sword to slice opponents. +84,Doduo,1.4,39.2,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/84.png,A two-headed Pokémon that was discovered as a sudden mutation. It runs at nearly 60 mph. +85,Dodrio,1.8,85.2,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/85.png,"Uses its three brains to execute complex plans. While two heads sleep, one head stays awake." +86,Seel,1.1,90.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/86.png,The protruding horn on its head is very hard. It uses the horn to bash through thick ice. +87,Dewgong,1.7,120.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/87.png,Stores thermal energy in its body. Swims at a steady 8 knots even in intensely cold seas. +88,Grimer,0.9,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/88.png,Appears in filthy areas. Thrives by sucking up polluted sludge that is pumped out of factories. +89,Muk,1.2,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/89.png,"Thickly covered with a filthy, vile sludge. It is so toxic, even its footprints are poison." +90,Shellder,0.3,4.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/90.png,Its hard shell repels any kind of attack. It is vulnerable only when its shell is open. +91,Cloyster,1.5,132.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/91.png,"When attacked, it launches its horns in rapid volleys. Its shell is impossible to open when shut." +92,Gastly,1.3,0.1,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/92.png,"Born from gases, anyone would faint if engulfed by its toxic body, which is mostly gas." +93,Haunter,1.6,0.1,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/93.png,"Its tongue is made of gas. If licked, its victim starts shaking until death eventually comes." +94,Gengar,1.5,40.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/94.png,"On the night of a full moon, if shadows move on their own and laugh, it must be Gengar's doing." +95,Onix,8.8,210.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/95.png,Burrows through the ground at a speed of 50 mph. It eats boulders as it tunnels along. +96,Drowzee,1.0,32.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/96.png,Puts enemies to sleep then eats their dreams. Occasionally gets sick from eating bad dreams. +97,Hypno,1.6,75.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/97.png,"When it locks eyes with an enemy, it uses a mix of psi moves such as Hypnosis and Confusion." +98,Krabby,0.4,6.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/98.png,"Its pincers are not only powerful weapons, they are used for balance when walking sideways." +99,Kingler,1.3,60.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/99.png,"The large pincer has 10,000 hp of crushing power. However, its huge size makes it unwieldy." +100,Voltorb,0.5,10.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/100.png,"Usually found in power plants. Easily mistaken for a Poké Ball, it has zapped many people." +101,Electrode,1.2,66.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/101.png,It stores electric energy under high pressure. It explodes at the slightest provocation. +102,Exeggcute,0.4,2.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/102.png,"Often mistaken for eggs. When disturbed, they quickly gather and attack in swarms." +103,Exeggutor,2.0,120.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/103.png,"Legend has it that on rare occasions, one of its heads will drop off and continue on as an Exeggcute." +104,Cubone,0.4,6.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/104.png,Wears the skull of its deceased mother. Its cries echo inside the skull and come out as a sad melody. +105,Marowak,1.0,45.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/105.png,The bone it holds is its weapon. It throws the bone skillfully like a boomerang to KO targets. +106,Hitmonlee,1.5,49.8,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/106.png,"When in a hurry, its legs lengthen progressively. It runs smoothly with extra-long strides." +107,Hitmonchan,1.4,50.2,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/107.png,Punches in corkscrew fashion. It can punch through a concrete wall like a sheet of paper. +108,Lickitung,1.2,65.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/108.png,"Its tongue can be extended like a python. It licks opponents to leave a sticky, paralyzing saliva." +109,Koffing,0.6,1.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/109.png,"Because it stores several kinds of toxic gases in its body, it is prone to exploding without warning." +110,Weezing,1.2,9.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/110.png,"Where two kinds of poison gases meet, 2 Koffing can fuse into a Weezing over many years." +111,Rhyhorn,1.0,115.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/111.png,"A Pokémon with a one-track mind. Once it starts running, it doesn't stop until it hits something." +112,Rhydon,1.9,120.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/112.png,"Protected by an armor-like hide, it can live in molten lava of 3,600 degrees Fahrenheit." +113,Chansey,1.1,34.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/113.png,A rare and merciful Pokémon that is said to bring happiness to those who manage to catch it. +114,Tangela,1.0,35.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/114.png,Its whole body is swathed with wide vines that delicate blue flowers grow from. +115,Kangaskhan,2.2,80.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/115.png,The infant rarely ventures out of its mother's protective pouch until it is 3 years old. +116,Horsea,0.4,8.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/116.png,Known to shoot down flying bugs with precision blasts of ink from the surface of the water. +117,Seadra,1.2,25.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/117.png,Capable of swimming backwards by rapidly flapping its wing-like pectoral fins and stout tail. +118,Goldeen,0.6,15.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/118.png,"Its tail fin billows like a elegant ballroom dress, giving it the nickname Water Queen." +119,Seaking,1.3,39.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/119.png,"In the autumn spawning season, they can be seen swimming energetically up rivers and creeks." +120,Staryu,0.8,34.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/120.png,An enigmatic Pokémon that can effortlessly regenerate any appendage it loses in battle. +121,Starmie,1.1,80.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/121.png,Its central core shines with the seven colors of the rainbow. Some people value the core as a gem. +122,Mr. Mime,1.3,54.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/122.png,"If interrupted while it is miming, it will slap the offender with its broad hands." +123,Scyther,1.5,56.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/123.png,"With ninja-like agility and speed, it can create the illusion that there is more than one." +124,Jynx,1.4,40.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/124.png,It seductively wiggles its hips as it walks. It can cause people to dance in unison with it. +125,Electabuzz,1.1,30.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/125.png,"Normally found near power plants, they can cause major blackouts if they wander into cities." +126,Magmar,1.3,44.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/126.png,Its body always burns with an orange glow that enables it to hide perfectly among flames. +127,Pinsir,1.5,55.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/127.png,"If it fails to crush the victim in its pincers, it will swing its victim around and toss it far." +128,Tauros,1.4,88.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/128.png,"When it targets an enemy, it charges furiously while whipping its body with its three long tails." +129,Magikarp,0.9,10.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/129.png,"In the distant past, it was somewhat stronger than the horribly weak descendants that exist today." +130,Gyarados,6.5,235.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/130.png,"Rarely seen in the wild. Huge and vicious, it is capable of destroying entire cities in a rage." +131,Lapras,2.5,220.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/131.png,A Pokémon that has been overhunted almost to extinction. It can ferry people across the water. +132,Ditto,0.3,4.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/132.png,It can reconstitute its entire cellular structure to transform into whatever it sees. +133,Eevee,0.3,6.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/133.png,Its genetic code is irregular. It may mutate if it is exposed to radiation from element Stones. +134,Vaporeon,1.0,29.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/134.png,Lives close to water. Its long tail is ridged with a fin which is often mistaken for a mermaid's. +135,Jolteon,0.8,24.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/135.png,"It accumulates negative ions in the atmosphere to blast 10,000-volt lightning bolts." +136,Flareon,0.9,25.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/136.png,"When storing thermal energy in its body, its temperature could soar to over 1,600 degrees." +137,Porygon,0.8,36.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/137.png,A Pokémon that consists entirely of programming code. It is capable of moving freely in cyberspace. +138,Omanyte,0.4,7.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/138.png,An ancient Pokémon that was regenerated from a fossil. It swam by cleverly twisting its 10 tentacles. +139,Omastar,1.0,35.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/139.png,A prehistoric Pokémon that died out when its heavy shell made it impossible to catch swift prey. +140,Kabuto,0.5,11.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/140.png,A Pokémon that was resurrected from a fossil found in what was once the ocean floor eons ago. +141,Kabutops,1.3,40.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/141.png,Its sleek shape is perfect for swimming. It slashes prey with its clawed scythes and drains body fluids. +142,Aerodactyl,1.8,59.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/142.png,"A ferocious, prehistoric Pokémon that goes for the enemy's throat with its serrated saw-like teeth." +143,Snorlax,2.1,460.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/143.png,"Very docile. Very little can disrupt its sleep, and it will eat even moldy food without issue." +144,Articuno,1.7,55.4,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/144.png,A legendary bird Pokémon that is said to appear to doomed people who are lost in icy mountains. +145,Zapdos,1.6,52.6,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/145.png,A legendary bird Pokémon that is said to appear from clouds while dropping enormous lightning bolts. +146,Moltres,2.0,60.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/146.png,Known as the legendary bird of fire. Every flap of its wings creates a dazzling flash of flames. +147,Dratini,1.8,3.3,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/147.png,Long considered a mythical Pokémon until a small colony was recently found living underwater. +148,Dragonair,4.0,16.5,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/148.png,A mystical Pokémon that exudes a gentle aura. Has the ability to change climate conditions. +149,Dragonite,2.2,210.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/149.png,An extremely rarely seen marine Pokémon. Its intelligence is said to match that of humans. +150,Mewtwo,2.0,122.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/150.png,"A Pokémon created by DNA manipulation. Science created its body, but failed to give it a warm heart." +151,Mew,0.4,4.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/151.png,So rare that it is still said to be a mirage by many experts. Only a few people have seen it worldwide. +304,Aron,0.4,60.0,https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/304.png,It eats iron ore - and sometimes railroad tracks - to build up the steel armor it wears to protect its body. diff --git a/works/pokedex-api/data/types.csv b/works/pokedex-api/data/types.csv new file mode 100644 index 0000000..17615b9 --- /dev/null +++ b/works/pokedex-api/data/types.csv @@ -0,0 +1,18 @@ +id,name,color_hex +1,Grass,#74CB48 +2,Poison,#A43E9E +3,Fire,#F57D31 +4,Water,#6493EB +5,Bug,#A7B723 +6,Flying,#A891EC +7,Normal,#AAA67F +8,Electric,#F9CF30 +9,Ground,#E2BF65 +10,Fairy,#D685AD +11,Fighting,#C22E28 +12,Psychic,#FB5584 +13,Rock,#B6A136 +14,Steel,#B7B9D0 +15,Ice,#96D9D6 +16,Ghost,#70559B +17,Dragon,#6F35FC diff --git a/works/pokedex-api/docker-compose.yml b/works/pokedex-api/docker-compose.yml new file mode 100644 index 0000000..f76d9b0 --- /dev/null +++ b/works/pokedex-api/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3.9" + +services: + pokedex-api: + build: . + container_name: pokedex-api + ports: + - "8000:8000" + restart: unless-stopped \ No newline at end of file diff --git a/works/pokedex-api/requirements.txt b/works/pokedex-api/requirements.txt new file mode 100644 index 0000000..6d47c18 --- /dev/null +++ b/works/pokedex-api/requirements.txt @@ -0,0 +1,5 @@ +fastapi==0.115.0 +uvicorn[standard]==0.30.6 +sqlalchemy==2.0.35 +pydantic==2.9.2 +python-multipart==0.0.9 \ No newline at end of file