A Python package to get notifications about the logs of a process
from setuptools import setup

setup(
    name='shellog',
    version='1.0.2',    
    description='A Python package to get notifications about the logs of a process',
    url='https://github.com/danmargs/shellog',
    author='Daniele Margiotta',
    author_email='daniele.margiotta11@gmail.com',
    license='BSD 2-clause',
    packages=['shellog'],
    install_requires=['telepot'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',  
        'Operating System :: POSIX :: Linux',        
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    long_description_content_type="text/markdown",

)

setup.py
danmargs/shellog
"""
shellog.

A Python package to get notifications about the logs of a process.
"""

__version__ = "1.0.2"
__author__ = 'Daniele Margiotta'
__credits__ = 'Reveal s.r.l.'

import telebot

class Bot:
    def __init__(self):
        self.bot = telebot.TeleBot('token_bot')
        self.chat_id = []

    def sendMessage(self, text: str):
        for id in self.chat_id:
            self.bot.send_message(id, text)
            
    def addChatId(self, id: str):
        self.chat_id.append(id)
    
    def addListChatIds(self, ids):
        for id in ids:
            self.chat_id.append(id)
    
    def removeChatId(self, id:str):
        self.chat_id.remove(id)

    def removeListChatIds(self, ids):
        for id in ids:
            self.chat_id.remove(id)
    
    def clearChatId(self):
        self.chat_id.clear()

bot = Bot()


shellog/__init__.py
danmargs/shellog