Skip to main content

Python API wrapper around API

Project description

[![Build Status](]( [![codecov](]( ![GitHub]( ![N|Solid]( ![N|Solid](

# Table of contents

  • [Install](#install)
  • [Method](#method) - [User](#user) - [Group](#group)

# Install

`sh pip install py-vkontakte `

# First start

`python >>> import vk >>> api = vk.Api('YOUR_TOKEN') `

# User

`python # return single User object >>> api.get_user('durov') <User: durov> `

`python # yield one or many User objects >>> user_items = api.get_users([1, 's.gaynetdinov']) >>> [ for user in user_items] [1, 23768217] `

# Group

`python >>> groups_items = api.get_groups([1, 'devclub'])  # return generator >>> [group for group in groups_items] [<Group: apiclub>, <Group: devclub>] `

`python # checking a user is a member of a current group >>> user = api.get_user('durov') >>> group = api.get_group('telegram') >>> user in group `

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
py-vkontakte-5.63.3.tar.gz (11.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page