semvec/pypi-packages huggingface dataset:
clevrthings-tcpChat 0.1.5
A simple Python module for creating a TCP chat connection between two computers to send commands or information.
Requires Python: >=3.6

# tcpChat

tcpChat is a simple Python module for creating a TCP chat connection between two computers to send commands or information.

GitHub: [tcpChat](https://github.com/clevrthings/tcpChat)

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install tcpChat.

```bash
pip install clevrthings-tcpChat
```

## Usage
```python
from tcpChat import tcpchat

def callback_function(message):
    print(f"Received message: {message}")

connect_to_ip = "10.0.0.142" # Enter the IP Address from the other computer
on_port = 44785 # Choose a port for the connection. (Optional. Default = 44785)

connection = tcpchat(connect_to_ip, callback_function, on_port)
connection.start()

# Example of sending a message from the main thread
connection.send_message("Hello from server")
```
### Extra functions
```python
tcpchat.get_local_ip() # Returns own IP Address

tcpchat.close_connections() # Closes all the connections

tcpchat.retry_connection_interval = 2 # Set the retry interval (Default = 5 seconds)
```


## License
MIT
pyfast-sqlite 0.1.1
Fast_sqlite is a library to use sqlite database faster and easier.
Requires Python: >=3.8

# Fast_sqlite

<b>Fast SQL</b> is a Python library to make and use a sqlite3 database. For use this library you can copy the file in your code directory and use below codes or read <b>src/example/write_and_read_data.py</b> file

# Create values to use library
```python

from fast_sql import fast_sqlite

fsql = fast_sqlite(db_name="database.db", table_name="users", attributes=["username", "email", "password"])

```

# Connect to a database

```python

fsql.connect()
# Congratulation! You have been connected :)

```

# Close connection

```python

fsql.close()
# Oh... You have been disconnected :( 
# We will work together for next time

```

# Insert data in database

```python

fsql.Insert_in(values=["admin", "admin.root@admin.com", "admin"]) # output: True/False

# This is how it save:
# --> users:
#      ________________________________________________________________
#     |                |                         |                     |
#     |    username    |          email          |       password      |
#     |________________|_________________________|_____________________|
#     |                |                         |                     |
#     |     admin      |     admin.root@ad...    |        admin        |
#     |                |                         |                     |
#     |     user1      |     user.1234@use...    |        12345        |
#     |                |                         |                     |
#     |________________|_________________________|_____________________|

```

# Select data from database

```python

#                    select "password", where username='username'
password = fsql.Select_from("password", "username", username) # output: password

```

# Use a custome command

```python

output = fsql.Custome_command("command") # output: output of your command :)
print(output)

```

# Contributes
<h3> 1.<a target="_blank" href="https://www.github.com/Unknow-per/">Unknow-per</a></h3>