Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keda87/pygramedia

Unofficial API wrapper for Gramedia, the biggest bookstore in Indonesia.
https://github.com/keda87/pygramedia

gramedia python python3 python36 wrapper wrapper-api

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# PyGramedia
[![Build Status](https://travis-ci.org/Keda87/PyGramedia.svg?branch=master)](https://travis-ci.org/Keda87/PyGramedia)
[![Coverage Status](https://coveralls.io/repos/github/Keda87/PyGramedia/badge.svg?branch=master)](https://coveralls.io/github/Keda87/PyGramedia?branch=master)

Unofficial API wrapper for [Gramedia](https://www.gramedia.com/), the biggest bookstore in Indonesia and based on coroutine python 3.

#### Requirement:
- Python 3.6 and above.

#### Installation:
pip install pygramedia

#### Usage:

```python
import asyncio
from pygramed import PyGramedia

obj = PyGramedia()

# Async mode based on coroutine.
coro = obj.product.retrieve_async()
coro = obj.product.retrieve_async(limit=5)
coro = obj.product.retrieve_async(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))
```