Skip to main content

No project description provided

Project description

Kufar Private API

This library is result of researching around Kufar Mobile App. Project is still development. But you can use it now.

Installing:

You can install this library using command:

pip install kufar 

Example:

from kufar import KufarAPI, State, Requster
import asyncio

async def main():
    state = State('state.conf')

    async with Requester() as client:
        api = KufarApi(client, state)
        await api.init()
        await api.authenticate("email", "password")

        # Get current account ads count
        ads_count = await api.user_ads.get_my_ads_count()
        print(ads_count)

        # Get Current Account Info
        current_account = await api.account.get_current_account()

        # Get Saved Searches
        saved_searches = await api.saved.get_searches(current_account.account.account_id)

        # Get unread messages count
        messages_unread_count = await api.messaging.unread_count()
        
        # Get all categories
        categories = await api.categories.get_categories()
 


asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kufar-0.1.0.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

kufar-0.1.0-py3-none-any.whl (21.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page