Skip to main content

A local Pokemon data repository/Pokedex with fast offline access

Project description

LocalDex

A local Pokemon data repository/Pokedex with fast offline access.

Features

  • Fast offline access to Pokemon data
  • Comprehensive Pokemon information including stats, moves, abilities, and items
  • Support for all Pokemon generations
  • Easy-to-use Python API
  • Command-line interface
  • Extensible data loading system

Installation

pip install localdex

For development installation:

pip install -e .

Quick Start

from localdex import LocalDex

# Initialize the Pokedex
dex = LocalDex()

# Get Pokemon by name
pikachu = dex.get_pokemon("Pikachu")
print(f"Pikachu's HP: {pikachu.base_stats.hp}")

# Get Pokemon by ID
charizard = dex.get_pokemon_by_id(6)
print(f"Charizard's type: {charizard.types}")

# Get move information
thunderbolt = dex.get_move("Thunderbolt")
print(f"Thunderbolt power: {thunderbolt.power}")

Command Line Usage

# Get Pokemon information
localdex pokemon pikachu

# Get move information
localdex move thunderbolt

# Get ability information
localdex ability levitate

# Get item information
localdex item leftovers

Development

Running Tests

pytest

Code Formatting

black localdex/
isort localdex/

Type Checking

mypy localdex/

License

MIT License - see LICENSE file for details.

Project details


Download files

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

Source Distribution

localdex-0.3.3.tar.gz (636.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localdex-0.3.3-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file localdex-0.3.3.tar.gz.

File metadata

  • Download URL: localdex-0.3.3.tar.gz
  • Upload date:
  • Size: 636.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for localdex-0.3.3.tar.gz
Algorithm Hash digest
SHA256 169d48ee64f45fc6d9b256eaa88396669b864b3e5127b306026fd319051bbdad
MD5 d39a2b53f5afd5d17f1f393511c4ec9b
BLAKE2b-256 4bd33ee9612d00f0f663b7f831ee68ce530dc09222126367d58b0cb593268329

See more details on using hashes here.

File details

Details for the file localdex-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: localdex-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for localdex-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65944729991143d560e56e5fd77985eaa0bdf9e9ff56e894dc6ab10610df7f41
MD5 5ccdf9650cf9d7bab198c7c11e1d5ac5
BLAKE2b-256 b8f36fffc33636eca5df57ccda32a9e4b02bca26db2b94d7781fa73142df2eb8

See more details on using hashes here.

Supported by

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