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.1.tar.gz (642.9 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.1-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: localdex-0.3.1.tar.gz
  • Upload date:
  • Size: 642.9 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.1.tar.gz
Algorithm Hash digest
SHA256 cd9463ac48e40f069957666e6706535a259c219dc7fada6e1941325a24a609cb
MD5 14f0af92642adb3adc9109e2061d74e2
BLAKE2b-256 fb9d5623308303e826a83de6d916d8eab9c4cd55eb177f1f6aaa3a657c2d03d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: localdex-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 113a2e5d3212d9f473b517eb63941ccb483cb6b515fb8a8f7f9ba183a05387e2
MD5 626d9e7beea7a2b04e28e336683e93c8
BLAKE2b-256 18aa64fc482b56613edf51574740ab5131ebeecb5866fa19f7c197a7c514be59

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