pygramedia

Unofficial API wrapper for Gramedia, the biggest bookstore in Indonesia.


Keywords
gramedia, python, python3, python36, wrapper, wrapper-api
License
MIT
Install
pip install pygramedia==0.0.2

Documentation

PyGramedia

Build Status

Unofficial API wrapper for Gramedia, the biggest bookstore in Indonesia and based on coroutine python 3.

Requirement:

  • Python 3.6 and above.

Installation:

pip install pygramedia

Usage:

import asyncio
from pygramed import PyGramedia

obj = PyGramedia()

# Async mode based on coroutine.
coro = obj.product.retrieve()
coro = obj.product.retrieve(limit=5)
coro = obj.product.retrieve(limit=10, category='keluarga')

loop = asyncio.get_event_loop()
print(loop.run_until_complete(coro))

# Sync mode like general function.
print(obj.product.retrieve(limit=10, sync=True))