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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file vk-cli-0.1.1.tar.gz.

File metadata

  • Download URL: vk-cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.10 Windows/8.1

File hashes

Hashes for vk-cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 679553ae69d7ffb883af8497904cb7ecf81eff312e50f7b0d55f1f8dce3561d4
MD5 7c5bd6c63a86c9bd0809ebd1f67990ea
BLAKE2b-256 e8255e95151fe1500b483f7e795d7091bc8fe465c165a69bcbbcf54c106212c0

See more details on using hashes here.

File details

Details for the file vk_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vk_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.10 Windows/8.1

File hashes

Hashes for vk_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67c07248e0b77fbfc1bdcf1cfbde96391736eb80370fcdf901a55e9133e4ebd9
MD5 37400446d268c11bb3449a0fb7c9a4f6
BLAKE2b-256 eb6d548796ae37a5a388e7ef4ab9243ab5ee62d12b7222aca575e538e945c10c

See more details on using hashes here.

Supported by

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