Metadata-Version: 2.1
Name: dp2rathena
Version: 0.1.1
Summary: Convert Divine-Pride API data to rAthena YAML
Home-page: https://github.com/Latiosu/dp2rathena
License: MIT
Keywords: api,rathena
Author: Eric Liu
Author-email: latiosworks@gmail.com
Requires-Python: >=3.7
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Database
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Text Processing
Classifier: Topic :: Utilities
Requires-Dist: PyYAML (>=5.3.1,<6.0.0)
Requires-Dist: click (>=7.1.2,<8.0.0)
Requires-Dist: python-dotenv (>=0.15.0,<0.16.0)
Requires-Dist: tortilla (>=0.5.0,<0.6.0)
Project-URL: Documentation, https://github.com/Latiosu/dp2rathena
Project-URL: Repository, https://github.com/Latiosu/dp2rathena
Description-Content-Type: text/markdown

# dp2rathena: Divine-Pride API to rAthena

[![PyPI](https://img.shields.io/pypi/v/dp2rathena)](https://pypi.org/project/dp2rathena/)
[![TravisCI Status](https://img.shields.io/travis/com/Latiosu/dp2rathena)](https://travis-ci.com/github/Latiosu/dp2rathena)

Convert Divine-Pride API data to rAthena DB formats (item_db.yml).

## Requirements

* Python 3.7+

## Installation

```
pip install dp2rathena
```

## Usage

Generate a [divine-pride.net](https://www.divine-pride.net/) API key if you don't have one yet.

```bash
# Fetch items with id 501 and 1101
dp2rathena item --api-key <your-api-key> -i 501 -i 1101
```

Alternatively, you can use an environment variable to pass your API key:
```bash
export DIVINEPRIDE_API_KEY=<your-api-key>
dp2rathena item -i 501 -i 1101
```

## Contributing

This project uses [poetry](https://python-poetry.org/) to manage the development enviroment.

* Setup a local development environment with `poetry install`.
* Run tests with `poetry run pytest`
* Execute script with `poetry run dp2rathena`

## Changelog

See [CHANGELOG.md](https://github.com/Latiosu/dp2rathena/blob/master/CHANGELOG.md)

## License

See [LICENSE](https://github.com/Latiosu/dp2rathena/blob/master/LICENSE)

