Kufar Private API
This library is result of researching around Kufar Mobile App. Project is still development. But you can use it now.
♻️ Requirements
- Python 3.10+
💊 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()
Metadata
Release files for kufar 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kufar-0.1.3.tar.gz | 12.1 kB | Without provenance | Details for kufar-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kufar-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for kufar-0.1.3-py3-none-any.whl |
Total release size: 33.6 kB
Release files / kufar-0.1.3.tar.gz
| Download URL | kufar-0.1.3.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20e114b25018711337e242831af48a169c2c8c3c7fe231b4231038fbf0c86690
|
|
BLAKE2b-256 checksum How to use checksums |
7cd046c50ad837fe4f230237259a352e533c79a51449cf87b198389bc2260cc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1042-azure
|
Release files / kufar-0.1.3-py3-none-any.whl
| Download URL | kufar-0.1.3-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef0f90ff25b9051e1e917efac87f1f0ce7741009dad577c3a9f28960fab7e721
|
|
BLAKE2b-256 checksum How to use checksums |
df84c4fe0e148702a532e85d9fbe9ad265f560e316af18e177bbb45d9aeac5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1042-azure
|
Security for kufar 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.