Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saalaus/vk-cli
Call VK API in terminal
https://github.com/saalaus/vk-cli
cli cli-app vk vk-api vk-cli vkontakte-api
Last synced: about 1 month ago
JSON representation
Call VK API in terminal
- Host: GitHub
- URL: https://github.com/saalaus/vk-cli
- Owner: saalaus
- Created: 2022-07-23T06:51:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T16:29:44.000Z (over 1 year ago)
- Last Synced: 2024-10-01T10:02:27.167Z (about 1 month ago)
- Topics: cli, cli-app, vk, vk-api, vk-cli, vkontakte-api
- Language: Python
- Homepage: https://pypi.org/project/vk-cli/
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VK CLI
[![Python version](https://img.shields.io/pypi/pyversions/vk-cli)](https://img.shields.io/pypi/pyversions/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
```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
```Py
>>> response = API.users.get(user_id=1)
>>> user = user["response"][0]
>>> print(user["first_name"], user["last_name"], sep=" ")
Павел Дуров
```