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
- Install library using pip (or another package manager):
pip install kufar
- Import nessesary classes:
from kufar import KufarAPI, State, Requster
- 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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
kufar-0.1.3-py3-none-any.whl
(21.6 kB
view hashes)