vktools


Namevktools JSON
Version 1.0.8 PyPI version JSON
download
home_pagehttps://github.com/Fsoky/vktools
SummaryИнструменты для модуля vk-api. Клавиатура и карусели.
upload_time2023-10-15 20:18:09
maintainer
docs_urlNone
authorFsoky Community
requires_python
license
keywords vktools vk vk-api api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # VkTools - дополнительные инструменты для vk-api

### Инструменты 🛠
![Python](https://img.shields.io/badge/Python-3.8-blue?style=for-the-badge&logo=python)
![Json](https://img.shields.io/badge/json-red?style=for-the-badge&logo=json)
![typing](https://img.shields.io/badge/typing-orange?style=for-the-badge)

### Установка 💾
- Установка, используя пакетный менеджер pip
```
$ pip install vktools
```
- Установка с GitHub *(требуется [git](https://git-scm.com/downloads))*
```
$ git clone https://github.com/Fsoky/vktools
$ cd vktools
$ python setup.py install
```
- Или
```
$ pip install git+https://github.com/Fsoky/vktools
```

### Клавиатура
```py
from vktools import Keyboard, ButtonColor, Text, OpenLink, Location

keyboard = Keyboard(
    [
        [
            Text("RED", ButtonColor.NEGATIVE),
            Text("GREEN", ButtonColor.POSITIVE),
            Text("BLUE", ButtonColor.PRIMARY),
            Text("WHITE")
        ],
        [
            OpenLink("YouTube", "https://youtube.com/c/Фсоки"),
            Location()
        ]
    ]
)
```
`.add_keyboard()` - получить JSON клавиатуры \
`.get_empty_keyboard()` - Удалить клавиатуру

![Keyboard](https://github.com/Fsoky/vktools/blob/main/images/keyboard_image.png)

### Карусель
```py
from vktools import Keyboard, ButtonColor, Text, Carousel, Element

carousel = Carousel(
    [
        Element(
            "The First Title",
            "The First Description",
            "-000000_1111111", # ID фотографии
            "https://vk.com/fsoky", # Редирект при клике
            [Text("Button 1", ButtonColor.POSITIVE)]
        ),
        Element(
            "The Second Title",
            "The Second Description",
            "-000000_1111111",
            "https://vk.com/fsoky",
            [Text("Button 2", ButtonColor.NEGATIVE)]
        )     
    ]
)
```
`.add_carousel()` - Получить JSON карусели

![Carousel](https://github.com/Fsoky/vktools/blob/main/images/carousel_image.png)

### Присоединяйся к нам
[![Vkontakte](https://img.shields.io/badge/Vkontakte-black?style=for-the-badge&logo=VK)](https://vk.com/fsoky)
[![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=YouTube)](https://youtube.com/c/Фсоки)
[![Telegram](https://img.shields.io/badge/Telegram-blue?style=for-the-badge&logo=Telegram)](https://t.me/fsokycommunity)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Fsoky/vktools",
    "name": "vktools",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "vktools vk vk-api api",
    "author": "Fsoky Community",
    "author_email": "cyberuest0x12@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/25/d1/cb7f933fbec4a4a9b1edb888055f4c515dab623f921b00ba4ad72bba07e7/vktools-1.0.8.tar.gz",
    "platform": null,
    "description": "# VkTools - \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f vk-api\r\n\r\n### \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \ud83d\udee0\r\n![Python](https://img.shields.io/badge/Python-3.8-blue?style=for-the-badge&logo=python)\r\n![Json](https://img.shields.io/badge/json-red?style=for-the-badge&logo=json)\r\n![typing](https://img.shields.io/badge/typing-orange?style=for-the-badge)\r\n\r\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \ud83d\udcbe\r\n- \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 pip\r\n```\r\n$ pip install vktools\r\n```\r\n- \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441 GitHub *(\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f [git](https://git-scm.com/downloads))*\r\n```\r\n$ git clone https://github.com/Fsoky/vktools\r\n$ cd vktools\r\n$ python setup.py install\r\n```\r\n- \u0418\u043b\u0438\r\n```\r\n$ pip install git+https://github.com/Fsoky/vktools\r\n```\r\n\r\n### \u041a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\r\n```py\r\nfrom vktools import Keyboard, ButtonColor, Text, OpenLink, Location\r\n\r\nkeyboard = Keyboard(\r\n    [\r\n        [\r\n            Text(\"RED\", ButtonColor.NEGATIVE),\r\n            Text(\"GREEN\", ButtonColor.POSITIVE),\r\n            Text(\"BLUE\", ButtonColor.PRIMARY),\r\n            Text(\"WHITE\")\r\n        ],\r\n        [\r\n            OpenLink(\"YouTube\", \"https://youtube.com/c/\u0424\u0441\u043e\u043a\u0438\"),\r\n            Location()\r\n        ]\r\n    ]\r\n)\r\n```\r\n`.add_keyboard()` - \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c JSON \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \\\r\n`.get_empty_keyboard()` - \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443\r\n\r\n![Keyboard](https://github.com/Fsoky/vktools/blob/main/images/keyboard_image.png)\r\n\r\n### \u041a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\r\n```py\r\nfrom vktools import Keyboard, ButtonColor, Text, Carousel, Element\r\n\r\ncarousel = Carousel(\r\n    [\r\n        Element(\r\n            \"The First Title\",\r\n            \"The First Description\",\r\n            \"-000000_1111111\", # ID \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438\r\n            \"https://vk.com/fsoky\", # \u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435\r\n            [Text(\"Button 1\", ButtonColor.POSITIVE)]\r\n        ),\r\n        Element(\r\n            \"The Second Title\",\r\n            \"The Second Description\",\r\n            \"-000000_1111111\",\r\n            \"https://vk.com/fsoky\",\r\n            [Text(\"Button 2\", ButtonColor.NEGATIVE)]\r\n        )     \r\n    ]\r\n)\r\n```\r\n`.add_carousel()` - \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c JSON \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438\r\n\r\n![Carousel](https://github.com/Fsoky/vktools/blob/main/images/carousel_image.png)\r\n\r\n### \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0439\u0441\u044f \u043a \u043d\u0430\u043c\r\n[![Vkontakte](https://img.shields.io/badge/Vkontakte-black?style=for-the-badge&logo=VK)](https://vk.com/fsoky)\r\n[![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=YouTube)](https://youtube.com/c/\u0424\u0441\u043e\u043a\u0438)\r\n[![Telegram](https://img.shields.io/badge/Telegram-blue?style=for-the-badge&logo=Telegram)](https://t.me/fsokycommunity)\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f vk-api. \u041a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u0438 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438.",
    "version": "1.0.8",
    "project_urls": {
        "Homepage": "https://github.com/Fsoky/vktools"
    },
    "split_keywords": [
        "vktools",
        "vk",
        "vk-api",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25d1cb7f933fbec4a4a9b1edb888055f4c515dab623f921b00ba4ad72bba07e7",
                "md5": "ea21643f880b67fb8a3c624370f14908",
                "sha256": "f04a70440a2315588584e2bbfbfd9e99bbaedc92d0593fc999882a7cf3fe0edc"
            },
            "downloads": -1,
            "filename": "vktools-1.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "ea21643f880b67fb8a3c624370f14908",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3410,
            "upload_time": "2023-10-15T20:18:09",
            "upload_time_iso_8601": "2023-10-15T20:18:09.982073Z",
            "url": "https://files.pythonhosted.org/packages/25/d1/cb7f933fbec4a4a9b1edb888055f4c515dab623f921b00ba4ad72bba07e7/vktools-1.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-15 20:18:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Fsoky",
    "github_project": "vktools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vktools"
}
        
Elapsed time: 0.12687s