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.

:recycle: Requirements

  • Python 3.10+

:pill: Usage

  1. Install library using pip (or another package manager):
pip install kufar
  1. Import nessesary classes:
from kufar import KufarAPI, State, Requster
  1. Create state, and open Request context manager:
async def test():
    state = State('here you should specify path to the file that will store your state')

    async with Requster() as client:
        api = KufarAPI(client, state)

        # !!! Required step !!!
        await api.init()

        # Here you can call any methods what you want
        api.authenticate("kufar_email@gmail.com", "kufar_password")
        print(await api.user_ads.get_my_ads_count())

What you can with this library

# Authenticate and save tokens in the your state and file that you specified
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()

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.3.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

kufar-0.1.3-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file kufar-0.1.3.tar.gz.

File metadata

  • Download URL: kufar-0.1.3.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1042-azure

File hashes

Hashes for kufar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 20e114b25018711337e242831af48a169c2c8c3c7fe231b4231038fbf0c86690
MD5 d4f67b9b28887614dcebc2478144866a
BLAKE2b-256 7cd046c50ad837fe4f230237259a352e533c79a51449cf87b198389bc2260cc2

See more details on using hashes here.

File details

Details for the file kufar-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kufar-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1042-azure

File hashes

Hashes for kufar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0f90ff25b9051e1e917efac87f1f0ce7741009dad577c3a9f28960fab7e721
MD5 e08479a3f14fde2a917c246a65bb3187
BLAKE2b-256 df84c4fe0e148702a532e85d9fbe9ad265f560e316af18e177bbb45d9aeac5f1

See more details on using hashes here.

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