Skip to main content

VkTools - дополнительные инструменты для vk-api

Инструменты 🛠

Python Json typing

Установка 💾

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

Клавиатура

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

Карусель

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

Присоединяйся к нам

Vkontakte YouTube Telegram

Metadata

Release files for vktools 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vktools 1.0.8
File Size Uploaded Provenance Actions
vktools-1.0.8.tar.gz 3.4 kB Without provenance Details for vktools-1.0.8.tar.gz

Release files / vktools-1.0.8.tar.gz

Download URL vktools-1.0.8.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f04a70440a2315588584e2bbfbfd9e99bbaedc92d0593fc999882a7cf3fe0edc
BLAKE2b-256 checksum
How to use checksums
25d1cb7f933fbec4a4a9b1edb888055f4c515dab623f921b00ba4ad72bba07e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Security for vktools 1.0.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page