kufar


Namekufar JSON
Version 0.1.3 PyPI version JSON
download
home_page
Summary
upload_time2023-08-06 19:11:38
maintainer
docs_urlNone
authorKiel Ed
requires_python>=3.10,<4.0
license
keywords kufar kufar-api kufar_api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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):

```bash
pip install kufar
```

2. Import nessesary classes:

```python
from kufar import KufarAPI, State, Requster
```

3. Create state, and open Request context manager:

```python
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

```python
# 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()
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "kufar",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "kufar,kufar-api,kufar_api",
    "author": "Kiel Ed",
    "author_email": "kieledssh@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7c/d0/46c50ad837fe4f230237259a352e533c79a51449cf87b198389bc2260cc2/kufar-0.1.3.tar.gz",
    "platform": null,
    "description": "# Kufar Private API\n\nThis library is result of researching around Kufar Mobile App. Project is still development. But you can use it now.\n\n### :recycle: Requirements\n\n- Python 3.10+\n\n### :pill: Usage\n\n1. Install library using pip (or another package manager):\n\n```bash\npip install kufar\n```\n\n2. Import nessesary classes:\n\n```python\nfrom kufar import KufarAPI, State, Requster\n```\n\n3. Create state, and open Request context manager:\n\n```python\nasync def test():\n    state = State('here you should specify path to the file that will store your state')\n\n    async with Requster() as client:\n        api = KufarAPI(client, state)\n\n        # !!! Required step !!!\n        await api.init()\n\n        # Here you can call any methods what you want\n        api.authenticate(\"kufar_email@gmail.com\", \"kufar_password\")\n        print(await api.user_ads.get_my_ads_count())\n\n```\n\n### What you can with this library\n\n```python\n# Authenticate and save tokens in the your state and file that you specified\nawait api.authenticate(\"email\", \"password\")\n\n# Get current account ads count\nads_count = await api.user_ads.get_my_ads_count()\nprint(ads_count)\n\n# Get Current Account Info\ncurrent_account = await api.account.get_current_account()\n\n# Get Saved Searches\nsaved_searches = await api.saved.get_searches(current_account.account.account_id)\n\n# Get unread messages count\nmessages_unread_count = await api.messaging.unread_count()\n\n# Get all categories\ncategories = await api.categories.get_categories()\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "0.1.3",
    "project_urls": null,
    "split_keywords": [
        "kufar",
        "kufar-api",
        "kufar_api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df84c4fe0e148702a532e85d9fbe9ad265f560e316af18e177bbb45d9aeac5f1",
                "md5": "e08479a3f14fde2a917c246a65bb3187",
                "sha256": "ef0f90ff25b9051e1e917efac87f1f0ce7741009dad577c3a9f28960fab7e721"
            },
            "downloads": -1,
            "filename": "kufar-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e08479a3f14fde2a917c246a65bb3187",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 21560,
            "upload_time": "2023-08-06T19:11:37",
            "upload_time_iso_8601": "2023-08-06T19:11:37.278797Z",
            "url": "https://files.pythonhosted.org/packages/df/84/c4fe0e148702a532e85d9fbe9ad265f560e316af18e177bbb45d9aeac5f1/kufar-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7cd046c50ad837fe4f230237259a352e533c79a51449cf87b198389bc2260cc2",
                "md5": "d4f67b9b28887614dcebc2478144866a",
                "sha256": "20e114b25018711337e242831af48a169c2c8c3c7fe231b4231038fbf0c86690"
            },
            "downloads": -1,
            "filename": "kufar-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d4f67b9b28887614dcebc2478144866a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 12064,
            "upload_time": "2023-08-06T19:11:38",
            "upload_time_iso_8601": "2023-08-06T19:11:38.275791Z",
            "url": "https://files.pythonhosted.org/packages/7c/d0/46c50ad837fe4f230237259a352e533c79a51449cf87b198389bc2260cc2/kufar-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-06 19:11:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "kufar"
}
        
Elapsed time: 2.09402s