Metadata-Version: 2.1
Name: pokeapi-ditto
Version: 1.0.1
Summary: Ditto is a command line tool for performing meta operations over PokéAPI data.
Home-page: https://github.com/PokeAPI/ditto
License: Apache-2.0
Keywords: pokeapi,ditto,pokemon
Author: Sargun Vohra
Author-email: sargun.vohra@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: genson (>=1.2,<2.0)
Requires-Dist: odictliteral (>=1.0,<2.0)
Requires-Dist: requests (>=2.31,<3.0)
Requires-Dist: tqdm (>=4.66,<5.0)
Requires-Dist: yarl (>=1.9,<2.0)
Project-URL: Documentation, https://github.com/PokeAPI/ditto
Project-URL: Repository, https://github.com/PokeAPI/ditto.git
Description-Content-Type: text/markdown

# Ditto <a href="https://pokeapi.co/api/v2/pokemon/ditto"><img src='https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/132.svg' height='50px'/></a>

This repository contains:

 - `ditto clone`: a script to crawl an instance of PokeAPI and download all data
 - `ditto analyze`: a script to generate a JSON schema of the above data
 - `ditto transform`: a script to apply a new base url to the above data and schema

## Usage

```sh
pip install pokeapi-ditto
ditto --help
```

## Development

```sh
poetry install
poetry run ditto --help
```

## Docker

You should have a PokeApi server running on `localhost:80`.

```sh
# runs clone, analyze, and transform all in one step
docker-compose up --build
```

