Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/keda87/pygramedia
- Owner: Keda87
- License: mit
- Created: 2018-07-18T03:12:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T13:55:37.000Z (about 2 years ago)
- Last Synced: 2024-03-14T19:33:42.471Z (10 months ago)
- Topics: gramedia, python, python3, python36, wrapper, wrapper-api
- Language: Python
- Size: 68.4 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 PyGramediaobj = 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))
```