semvec/pypi-packages huggingface dataset:
twitchircpy 1.0.5
A wrapper for the Twitch IRC used for creating chat bots.

# twitchircpy

[![PyPI](https://img.shields.io/pypi/v/twitchircpy.svg)](https://pypi.python.org/pypi/twitchircpy/)
[![PyPI](https://img.shields.io/pypi/pyversions/twitchircpy.svg)](https://pypi.python.org/pypi/twitchircpy/)

twitchircpy is a wrapper for the Twitch IRC used for creating chat bots.

## Installing

Installing from PyPI:

```
pip install twitchircpy
```

Installing from source:

```
pip install git+https://github.com/IsaacAKAJupiter/twitchircpy.git
```

You might have to install with these commands if the above installs for Python 2.

```
pip3 install twitchircpy
pip3 install git+https://github.com/IsaacAKAJupiter/twitchircpy.git
```

## Documentation/Wiki

[https://github.com/IsaacAKAJupiter/twitchircpy/wiki](https://github.com/IsaacAKAJupiter/twitchircpy/wiki)

## Small Example

```py
import twitchircpy

bot = twitchircpy.Bot("oauth", "nick", "!", "jups", True)

@bot.event
def on_connect():
    print("Connected!")

@bot.event
def on_message(message):
    if "HeyGuys" in message.content:
        bot.send_message(message.channel, f"@{message.user} HeyGuys")

@bot.event
def on_sub(sub):
    bot.send_message(sub.channel, f"Thank you @{sub.login} for subbing!")

bot.start()
```

You can find examples in the examples directory.

## Library Requirements

Good news! This library only uses built-in Python libraries.

## Python Version

Tested with Python 3.7

## Discord

Please join the [Discord](https://discord.gg/yxzp7JU 'https://discord.gg/yxzp7JU') if you need help with the library or just want to chat!
demojd 0.44.6
Hello World demo with tree package structure.

|

This is a simple hello world demo to demonstrate pipelines_ principles and deployment of Python applications
based on Jenkins / Docker / pip integration.

|

A complete description is to be added in near future.

|
|

.. _pipelines: https://dzone.com/articles/learn-how-to-setup-a-cicd-pipeline-from-scratch










======================================
 **UNDER CONSTRUCTION**
======================================
easystreaming 0.0.6.2
A small Server and Client creator

This is a little library for creating Servers and Clients to send data.

___Usage:___

__ClientStream:__

myclient = Clientstream(addr, port) #Generate

myclient.connect() #Connect

myclient.setListener("connect", connect) #Replace the second argument with a function. Overgiving args: 

myclient.setListener("disconnect", disconnect) #Replace the second argument with a function. Overgiving args: 

myclient.setListener("recv", recv) #Replace the second argument with a function. Overgiving args: None, data

myclient.setListener("recvexception", recv) #Replace the second argument with a function. Overgiving args: exception

myclient.send("something", delay) #Send; delay is by default 300 ms

myclient.pause() #Pause

myclient.unpause() #Unpause

is_paused = myclient.getpaused() #Getpaused

myclient.stop() #Stop

__ServerStream:__

myserver = Serverstream(addr, port, maxclients) #Generate

myserver.connect() #Connect

myserver.setListener("connect", connect) #Replace the second argument with a function. Overgiving args: sock_id

myserver.setListener("disconnect", disconnect) #Replace the second argument with a function. Overgiving args: sock_id

myserver.setListener("recv", recv) #Replace the second argument with a function. Overgiving args: sock, data

myserver.setListener("recvexception", recv) #Replace the second argument with a function. Overgiving args: exception

myserver.send(sock_id "something", delay) #Send to sock_id; delay is by default 300 ms

myserver.pause() #Pause

myserver.unpause() #Unpause

is_paused = myserver.getpaused() #Getpaused

myserver.stop() #Stop

__Packet:__
There are 3 default types of Packets. The JSON, pickle and repr Packet.
In this case, we use a JSONPacket to show it:
mypacket = JSONPACKET(data) #Create; data is by default {}
mypacket.set_data({"1":1, "2":2}) #Set
print(mypacket.get_data()) #Getall
print(mypacket.get_data("1")) #Get
myclient.send(mypacket.pack()) #Send
mypacket = JSONPacket.unpack(raw_data)

to create an own Packet, you must create this:
class MyPacket(easystreaming.Packet):
    def pack(self):
        #return bytes of self.data
    def unpack(rdata):
        #return Packet with unpacked data