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.0.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.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vkapi_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79f573af3041f4033a7fb9d1d161da6e0650e7d4f219d0eb4c6c5d3ad246690a
MD5 b765dd58561b23b4d8379afc9bf998de
BLAKE2b-256 99342dd58fa5400b07023688a9bf15ec173c0346e4edc61fcbb34f450580d5b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vkapi_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aea23dadf095b88bee933e937e73b94f215601140622c3ac0f250e6d589c5c0a
MD5 ef8a021fd3238a0c8e7bc2695d2cee65
BLAKE2b-256 ee217843b114c5be5a3c4c20d64a948ce53ded8a8d34c4791c68a9ca8f24e63a

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