Git Product home page Git Product logo

python-chat-program's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-chat-program's Issues

Add more security options

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.

tkinter

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 code base

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.

Unicode support in python 2

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.

Python 2 port

Numerous parts of the code are currently coded for Python 3. It should finish being ported to Python 2.

Tests

Tests for the script.

Implement terminal display

Using curses/ncurses, add command line interface so that chat can be conducted entirely from within a terminal window.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.