# 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> [![PyPI - Version](https://img.shields.io/pypi/v/pokeapi-ditto)](https://pypi.org/project/pokeapi-ditto/)
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/PokeAPI/ditto",
"name": "pokeapi-ditto",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "pokeapi, ditto, pokemon",
"author": "Sargun Vohra",
"author_email": "sargun.vohra@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/50/66/fa9c79b0ed47d09c8ab1618901825497e3bc80c65fd26c07a92ca63ffc51/pokeapi_ditto-1.0.3.tar.gz",
"platform": null,
"description": "# 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> [![PyPI - Version](https://img.shields.io/pypi/v/pokeapi-ditto)](https://pypi.org/project/pokeapi-ditto/)\n\nThis repository contains:\n\n - `ditto clone`: a script to crawl an instance of PokeAPI and download all data\n - `ditto analyze`: a script to generate a JSON schema of the above data\n - `ditto transform`: a script to apply a new base url to the above data and schema\n\n## Usage\n\n```sh\npip install pokeapi-ditto\nditto --help\n```\n\n## Development\n\n```sh\npoetry install\npoetry run ditto --help\n```\n\n## Docker\n\nYou should have a PokeApi server running on `localhost:80`.\n\n```sh\n# runs clone, analyze, and transform all in one step\ndocker-compose up --build\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Ditto is a command line tool for performing meta operations over Pok\u00e9API data.",
"version": "1.0.3",
"project_urls": {
"Documentation": "https://github.com/PokeAPI/ditto",
"Homepage": "https://github.com/PokeAPI/ditto",
"Repository": "https://github.com/PokeAPI/ditto.git"
},
"split_keywords": [
"pokeapi",
" ditto",
" pokemon"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e35ca4e3008122af471584e7770430e7bb155e2b24d5901a34e6992d30ee3de9",
"md5": "71d0c8f5720a3b79ab0bbcc9e0e59f70",
"sha256": "d5923375f357d13c7fa9772eece3c8cf443a6089dc6104bf24b2905d5d5ea155"
},
"downloads": -1,
"filename": "pokeapi_ditto-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "71d0c8f5720a3b79ab0bbcc9e0e59f70",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 11854,
"upload_time": "2024-05-07T19:32:01",
"upload_time_iso_8601": "2024-05-07T19:32:01.101453Z",
"url": "https://files.pythonhosted.org/packages/e3/5c/a4e3008122af471584e7770430e7bb155e2b24d5901a34e6992d30ee3de9/pokeapi_ditto-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5066fa9c79b0ed47d09c8ab1618901825497e3bc80c65fd26c07a92ca63ffc51",
"md5": "be4a7b4fe8d6842121a85aa030ee8e8c",
"sha256": "1e39b35dc0e3db3fd4aef4f1f753606a895d82c5d13246496067e062245db22e"
},
"downloads": -1,
"filename": "pokeapi_ditto-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "be4a7b4fe8d6842121a85aa030ee8e8c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 10184,
"upload_time": "2024-05-07T19:32:03",
"upload_time_iso_8601": "2024-05-07T19:32:03.315542Z",
"url": "https://files.pythonhosted.org/packages/50/66/fa9c79b0ed47d09c8ab1618901825497e3bc80c65fd26c07a92ca63ffc51/pokeapi_ditto-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-07 19:32:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PokeAPI",
"github_project": "ditto",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"lcname": "pokeapi-ditto"
}