Skip to main content

VK call api in console

Project description

VK CLI

Call VK API methods from terminal.

Installation

Install with pip

  pip install vk-cli

Usage

Help

> vk -h
Usage: python -m vk [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  api      Call the API
  profile  Proile commands
  shell    start shell

Create new profile

vk profile new --access-token <VK TOKEN>

API call

vk api users.get user_id=1

Shell

Run Shell

vk shell

Shel is it interactive python shell, but you can call to api vk

>>> response = API.users.get(user_id=1)
>>> user = user["response"][0]
>>> print(user["first_name"], user["last_name"], sep=" ")
Павел Дуров

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

vk-cli-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

vk_cli-0.1.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

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