Skip to main content

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.

Metadata

Release files for localdex 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localdex 0.3.3
File Size Uploaded Provenance
localdex-0.3.3.tar.gz 636.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for localdex 0.3.3
File Interpreter ABI Platform
localdex-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 2.9 MB

Release files / localdex-0.3.3.tar.gz

Download URL localdex-0.3.3.tar.gz
Size 636.0 kB
Tags Source
SHA-256 checksum
How to use checksums
169d48ee64f45fc6d9b256eaa88396669b864b3e5127b306026fd319051bbdad
BLAKE2b-256 checksum
How to use checksums
4bd33ee9612d00f0f663b7f831ee68ce530dc09222126367d58b0cb593268329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / localdex-0.3.3-py3-none-any.whl

Download URL localdex-0.3.3-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
65944729991143d560e56e5fd77985eaa0bdf9e9ff56e894dc6ab10610df7f41
BLAKE2b-256 checksum
How to use checksums
b8f36fffc33636eca5df57ccda32a9e4b02bca26db2b94d7781fa73142df2eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Security for localdex 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page