Skip to main content

botovod

MIT license built with Python3 paypal

Description

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API

Contents

=================

Release Notes

Version 0.1.4

  • Add new dbdriver - Gino
  • Fix bugs

Version 0.1.5

  • Add new methods for telegram Agent
  • Add emoji

Version 0.1.6

  • Fix gino getting follower
  • Adding item assignments for Botovod objects

Version 0.1.7

  • Add new features for telegram agent
  • Add start_dialog and start_async_dialog functions
  • Fix gino driver bugs

Version 0.1.8

  • Fix utils handlers
  • Add new methods for telegram
  • Optimize interaction with DB

Version 0.1.9

  • Change Botovod API
  • Fix telegram agent
  • Remove old info from README.md

Getting Started

Installation from Pip

For installation botovod library from pip you should have pip with python (prefer python3.6 or later)

pip install botovod

Installation from GitHub

To basic installation from GitHub repository you should have git, python3 (prefer python3.6 or later), pip (optionally) in your system

git clone https://github.com/OlegYurchik/botovod.git
cd botovod
pip install .

or

git clone https://github.com/OlegYurchik/botovod.git
cd botovod
python setup.py install

Quick Start

After installation, you can use the library in your code. Below is a sneak example of using the library

from botovod import Botovod
from botovod.agents import TelegramAgent


def echo(agent, chat, messsage, follower=None):
    agent.send_message(chat, text=message.text)


botovod = Botovod()
botovod.add_handler("echo", echo)

telegram_agent = TelegramAgent(token="your-telegram-token", method="polling)
botovod.add_agent("telegram", telegram_agent)

botovod.start()

This code setup and run Telegram echo-bot by polling

from botovod import Botovod
from botovod.agents import TelegramAgent
from botovod.dbdrivers.sqlalchemy import DBDriver
from botovod.dialogs import Dialog


class RegisterDialog(Dialog):
    def start(self):
        self.reply(text="Hello, my friend!")
        self.reply(text="What is your name?")
        self.set_next_step(self.what_name)

    def what_name(self):
        name = self.message.text
        self.follower.set_value("name", name)
        self.reply(text="Nice to meet you, %s. What would you want?" % name)
        self.set_next_step(self.menu)

    def menu(self):
        pass
        # your code


DBDriver.connect(engine="sqlite", database="file.db")
botovod = Botovod(DBDriver)

botovod.add_handler("RegisterDialog", RegisterDialog)

telegram_agent = TelegramAgent(token="your-telegram-token")
botovod.add_agent("telegram", telegram_agent)

botovod.start()

This code setup and run telegram code which working with database and followers

Metadata

Release files for botovod 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for botovod 0.1.11
File Size Uploaded
botovod-0.1.11.tar.gz 38.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for botovod 0.1.11
File Interpreter ABI Platform
botovod-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 80.1 kB

Release files / botovod-0.1.11.tar.gz

Download URL botovod-0.1.11.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6705fbb61e2ed0330ef801ad1f69e980d63e1cc483181490135936def98591d1
BLAKE2b-256 checksum
How to use checksums
f9fed83034a65b05cf3b58d924d540270e0379ee21112a979ad245be0ce07035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.8.2

Release files / botovod-0.1.11-py3-none-any.whl

Download URL botovod-0.1.11-py3-none-any.whl
Size 41.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a67483db972e6af383a383c985fdc8ee8c14f572eb44a4de3486c386fb600b65
BLAKE2b-256 checksum
How to use checksums
fb71b54747ee501aa0b74c3962b0ee6efd38104c894eb2d0e2368702d610534c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page