TAAFT
Free mode
100% free
Freemium
Free Trial
Create tool
  • Coder
    AI-powered Python code generator for efficient coding.
    Open
    859
    86
    4.2
    164
    Released 1y ago
    100% Free
    **Simple Chat Application using Python** ===================================== Here is a simple code for a chat application using Python: **Server Side (chat_server.py)** ```python import socket import threading HOST = '127.0.0.1' PORT = 9090 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((HOST, PORT)) server.listen() clients = [] nicknames = [] def broadcast(message): for client in clients: client.send(message) def handle(client): while True: try: message = client.recv(1024) broadcast(message) except: index = clients.index(client) clients.remove(client) client.close() nickname = nicknames[index] broadcast(f'{nickname} left the chat!'.encode('ascii')) nicknames.remove(nickname) break def receive(): while True: client, address = server.accept() print(f"Connected with {str(address)}") client.send('NICK'.encode('ascii')) nickname = client.recv(1024).decode('ascii') nicknames.append(nickname) clients.append(client) print(f'Nickname of the client is {nickname}!') broadcast(f'{nickname} joined the chat!'.encode('ascii')) client.send('Connected to the server!'.encode('ascii')) thread = threading.Thread(target=handle, args=(client,)) thread.start() print("Server Started!") receive() ``` **Client Side (chat_client.py)** ```python import socket import threading HOST = '127.0.0.1' PORT = 9090 client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect((HOST, PORT)) def receive(): while True: try: message = client.recv(1024).decode('ascii') if message == 'NICK': client.send(nickname.encode('ascii')) else: print(message) except: print("An error occurred!") client.close() break def write(): while True: message = f'{nickname}: {input("")}' client.send(message.encode('ascii')) nickname = input("Choose a nickname: ") receive_thread = threading.Thread(target=receive) receive_thread.start() write_thread = threading.Thread(target=write) write_thread.start() ``` **How to use:** 1. Run the `chat_server.py` script in a separate terminal or command prompt. 2. Run multiple instances of the `chat_client.py` script in separate terminals or command prompts. 3. Each client will be prompted to enter a nickname. 4. Clients can send messages to each other by typing and pressing enter. Note: This is a very basic implementation and you may want to add more features such as error handling, encryption, and more.

Featured matches

Other tools

  • Code Generator
    AI-powered code generation for elegant, efficient solutions.
    Open
    196
    25
    5.0
    47
    Released 1y ago
    100% Free
    user friendly and gaves accurate results so for me its 10/10 tool
  • Ai code generator
    Transform text into functional code effortlessly.
    Open
    453
    41
    5.0
    67
    Released 9mo ago
    100% Free
  • Web App: Code Generator
    AI coding companion for swift web development
    Open
    335
    65
    5.0
    85
    Released 1y ago
    100% Free
  • Pixels2Flutter
    Convert UI screenshots to Flutter code instantly.
    Open
    10,781
    63
    5.0
    Released 1y ago
    Free + from $0.01
  • Html Code Generator Text
    Transform ideas into polished HTML effortlessly.
    Open
    364
    99
    5.0
    102
    Released 9mo ago
    100% Free
  • Assembly code builder
    AI-powered Assembly code crafting for efficient solutions.
    Open
    270
    15
    5.0
    35
    Released 10mo ago
    100% Free
  • VBA Code Generator
    Generate VBA code instantly with AI
    Open
    2,145
    24
    5.0
    Released 1y ago
    Free + from $4.99/mo
    I need to create a relationship between the Excel that contains the phone numbers in column A for the people to whom I want to send their performance sheet via WhatsApp every month with the click of a button automatically and without any intervention from me, knowing that the performance sheet is an image in column C and each person has his own sheet where the only link between the performance sheet and the phone number is their personal names
  • QRCodeCreator.io
    Generate, design, and track QR codes effortlessly.
    Open
    1,300
    28
    5.0
    Released 1y ago
    Free + from $7.50/mo
    Never created qr campaigns that fast, amazing
  • Python coder 2.0
    AI-powered coding companion for effortless development
    Open
    283
    44
    5.0
    71
    Released 10mo ago
    100% Free
  • Write Code With Just Words
    Code with words, not syntax.
    Open
    417
    46
    5.0
    47
    Released 8mo ago
    100% Free
  • Python Code Expert
    AI Python coding companion for all skill levels.
    Open
    297
    52
    5.0
    73
    Released 11mo ago
    100% Free
  • JavaScript code only user Signup generator
    AI-powered JavaScript for sleek signup forms.
    Open
    339
    41
    5.0
    73
    Released 1y ago
    100% Free
  • Didn't find the AI you were looking for?
  • ICD AI
    Predict and recommend ICD-10 codes with AI.
    Open
    1,120
    29
    5.0
    Released 1y ago
    100% Free
  • Squire AI
    Write pull request descriptions with ease.
    Open
    767
    12
    5.0
    Released 1y ago
    Free + from $20/mo
  • Book Cover Generator AI
    Transform book details into professional cover designs.
    Open
    71
    28
    5.0
    24
    Released 2mo ago
    100% Free
    Not the best tool out there, but the generated images were interesting and good enough for sketching a first idea for how you want your future book cover to look like
  • Algorithm code generator
    Transform algorithm ideas into efficient code snippets.
    Open
    146
    23
    5.0
    26
    Released 8mo ago
    100% Free
  • Website Code Generator
    Instantly create responsive websites with AI.
    Open
    151
    35
    5.0
    42
    Released 1y ago
    100% Free
  • Trag
    Review your pull request in minutes, not days
    Open
    10,145
    70
    5.0
    Released 1y ago
    #31 in Trending
    Helps a lot and saves us time with PR review - great cozy tool!
  • CoverSentry
    AI-proof your cover letter instantly
    Open
    356
    7
    5.0
    Released 4mo ago
    Free + from $3.89
  • DocComment
    AI-powered code documentation for better readability
    Open
    174
    1
    5.0
    Released 10mo ago
    From $9/mo
  • Programm
    AI-powered multilingual coding companion for web and Android.
    Open
    95
    12
    5.0
    30
    Released 11mo ago
    100% Free
  • Medical Coding Generator robot ๐Ÿค–
    Transform patient data into precise medical codes instantly.
    Open
    130
    32
    5.0
    30
    Released 11mo ago
    100% Free
  • CodeKing
    AI-powered code generation with clarity and precision.
    Open
    183
    19
    5.0
    28
    Released 1y ago
    100% Free
  • Recodez
    Manage and generate code projects with ease.
    Open
    280
    1
    5.0
    Released 1y ago
    No pricing
Post
0 AIs selected
Clear selection
#
Name
Task