chprice / python-chat-program Goto Github PK
View Code? Open in Web Editor NEWA P2P chat program designed to work on LANs or across the internet for chatting.
A P2P chat program designed to work on LANs or across the internet for chatting.
Convert authentication portions of pyChat.py to use full SSL encryption instead of the inherently weak xor. Add preference interface to allow user to select SSL, xor, or nothing.
Traceback (most recent call last):
File "pyChat.py", line 1, in
from tkinter import *
ImportError: No module named tkinter
This error if you don't have tkinter installed. Maybe write a setup script or a try catch to handle this gracefully.
Refactor the primary code base into at least two separate files:
pyChat-ui.py to contain the Tkinter related code
pyChat-core.py to contain the networking and security related functions.
Further breakdown would be possible.
One of the problems in transitioning from python 3 to python 2 is unicode support.
In python 2, only unicode strings have the isnumeric
function. Thus, I get the following exception when trying to input an ip address:
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1473, in __call__
return self.func(*args)
File "pyChat.py", line 731, in <lambda>
client_options_go(destination.get(), "9999", window))
File "pyChat.py", line 272, in client_options_go
if options_sanitation(port, dest):
File "pyChat.py", line 286, in options_sanitation
if not por.isnumeric():
AttributeError: 'str' object has no attribute 'isnumeric'
Possible fixes? It'd be tricky and annoying to alternate between isnumeric and isdigit, especially since isdigit doesn't do everything isnumeric does.
You also can't have u"unicode literals"
in python 3.
Numerous parts of the code are currently coded for Python 3. It should finish being ported to Python 2.
Tests for the script.
Using curses/ncurses, add command line interface so that chat can be conducted entirely from within a terminal window.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.