Skip to main content

Async-first VK API SDK and bot framework inspired by aiogram 3

Project description

vkapi

Async-first SDK and bot framework for VK API inspired by aiogram 3.

Installation

pip install vkapi-framework

The PyPI distribution is named vkapi-framework; the Python package is imported as vkapi.

Quick start

from vkapi import Bot, Dispatcher, Router
from vkapi.filters import Command
from vkapi.types import Message

bot = Bot("TOKEN", group_id=123)
dp = Dispatcher()
router = Router()


@router.message(Command("start"))
async def start(message: Message) -> None:
    await message.answer("Привет")


dp.include_router(router)
dp.run_polling(bot)

The first implementation focuses on community Bots Long Poll, typed method objects, raw VK API fallback, routers, filters, middlewares, dependency injection, keyboards, and common upload flows.

Requirements

  • Python 3.11-3.14
  • aiohttp 3.9+
  • pydantic 2.4+

Development

uv sync --extra dev
uv run pytest
uv run ruff check .
uv run mypy

Build

uv build
uv run twine check dist/*

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vkapi_framework-0.1.2.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vkapi_framework-0.1.2-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file vkapi_framework-0.1.2.tar.gz.

File metadata

  • Download URL: vkapi_framework-0.1.2.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vkapi_framework-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c2d239b51d8f5b94b717c1b9f228f3ac3fc61762419e2f620561af6340f598f0
MD5 3443d36297b115774f2b1c890010435d
BLAKE2b-256 42b2b0e1a8a4a3b3509909aa007048268213c033da235e4b3ca5e0977974a61e

See more details on using hashes here.

File details

Details for the file vkapi_framework-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vkapi_framework-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e4bb63adba5dcee85fb91856d5a1b6026ded9d55a9ecd88e8daa6c43c326849
MD5 6f0e8c039f2605aa4eb693b83142a8ab
BLAKE2b-256 fb7a4147b0e1349ad8e6a205060285badeaacb041dc913a99ed2f1c98f76112e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page