Metadata-Version: 2.1
Name: vk-cli
Version: 0.1.1
Summary: VK call api in console
Home-page: https://github.com/saalaus/vk-cli
Keywords: vk_api,vk,cli
Author: sergey
Author-email: saalaus@mail.ru
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Pygments (>=2.12.0,<3.0.0)
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Project-URL: Repository, https://github.com/saalaus/vk-cli
Description-Content-Type: text/markdown

# VK CLI
Call VK API methods from terminal.

## Installation

Install with pip

```bash
  pip install vk-cli
```
    
## Usage
Help
```bash
> 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
```bash
vk profile new --access-token <VK TOKEN>
```

API call
```bash
vk api users.get user_id=1
```



## Shell
Run Shell
```bash
vk shell
```
Shel is it interactive python shell, but you can call to api vk
```python
>>> response = API.users.get(user_id=1)
>>> user = user["response"][0]
>>> print(user["first_name"], user["last_name"], sep=" ")
Павел Дуров
```
