Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 615 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 615 Bytes

Hamrobazaar-API

An unofficial python wrapper around hamrobazaar.com API

Install

pip install hamrobazaar-api

How to use?

import asyncio

from hamrobazaar.aioclient import HamrobazaarClient

async def main():
    with HamrobazaarClient(api_key) as client:

        # Get product detail with its id
        product = await client.get_product_detail("4ace7c2501964de481d4e0cf09121724")        
        
        print(product.name)
        print(product.price)
        print(product.description)
    
asyncio.run(main())

🚧 Work In Progress. 🚧