# Artem
![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)
![Version](https://img.shields.io/badge/version-1.10.02-brightgreen.svg)
![PyPI version](https://img.shields.io/badge/PyPI-v1.10.02-brightgreen.svg)
![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)
![License](https://img.shields.io/badge/license-apache-yellow.svg)
## _Simple core for creating chatbots in VK (vk.com)_
Artem is an easy core for creating chatbots in _vk.com_ based on the flexible mechanism of user scenarios for replies.
<br>
## Installing artem
To install artem through pip, execute follow command:
```bash
pip install artem
```
Also you can download the package from [Python Package Index](https://pypi.python.org/pypi/artem/) or [Github Releases](https://github.com/Tgjmjgj/artem/releases), unzip archive and use this command for install:
```bash
python setup.py install
```
## Start of use
The simplest example of launching:
```python
import artem
art = artem.Artem(USER_LOGIN, USER_PASSWORD)
art.on('ANSWER', lambda: 'Hello World from Artem!')
art.alive()
```
After running this script, the bot-chat will answer any incoming message with the words "Hello World from Artem!". For more, see below.
## Description of the artem core
### Artem core
The simplified scheme of the Artem core functioning:
<img src = "https://s3-eu-west-1.amazonaws.com/images.someone.new.name/artemS.png" width=600 alt="Artem Scheme" style="text-align: center;" />
### Artem events
Artem has three groups of handled scenarios:
1. Scenarios of incoming events:
* ADDFRIEND
* ANSWER
2. Scenarios of outgoing events:
* DISCOURSE
3. Scenarios for postprocessing events:
* POSTPROC
(and START scenarios - once when bot starting)
Full event Handling Schema:
<img src="https://s3-eu-west-1.amazonaws.com/images.someone.new.name/artem_events.png" alt="Artem events" style="text-align: center;" />
PyPI 官网下载 | artem-1.10.2.tar.gz
版权申诉
118 浏览量
2022-01-09
04:02:48
上传
评论
收藏 14KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- Android面试题.txt
- chujuyingshi1129802.apk
- 865804808983585自动化办公必备numpy、pandas数据处理课件.zip
- Fences 5是一款桌面整理软件,主要用于Windows操作系统,能够帮助用户更有效地管理和组织桌面上的图标和文件
- Appium入门 appium-desktop安装包,下载即可安装使用
- 初步图优化之后的fb bev 结构图
- 爬取cnnvd网站代码最新的 2024年
- 资源专区-毕业设计-数据分析-CRM客户关系管理系统
- 毕业设计-使用Matlab基于遗传算法+非线性规划实现的函数寻优算法-附项目源码.zip
- api接口python.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈