Giter VIP home page Giter VIP logo

python-chat's People

Contributors

chang12 avatar

Stargazers

 avatar  avatar

Forkers

kjhdn82

python-chat's Issues

Socket / Select

  • Python socket – network programming tutorial : socket에 대한 튜토리얼 자료들 중 가장 만족스럽다.
    • WinError 10053은 UDP socket을 쓰면서, **listen()**을 시도했기 때문이다.
    • Python 버전이 달라져서 start_new_thread 메소드가 숨겨졌다. **threading.Thread(target=...)**으로 대체된다.
  • Python socket – chat server and client with code example : 위 자료 읽고 이거 읽으면 된다.
    • broadcast 형태의 채팅이다.
    • Multi-threading이 필요하지 않다. select을 활용해서 master socket이 single thread로 모든 작업을 관장한다.
    • select라는 유용한 개념에 대해서 알게 되었다. Python 문서를 보니, selectors의 사용을 권장하고 있다.
  • Berkeley socket : API를 제대로 이해하고 싶다면 위키피디아 문서를 읽자
  • Python의 매직 메소드에 관해서 정리한 블로그 포스트 : socket wrapper code snippet을 참고해보자. socket과 관련된 기본 작업들(생성, 접속, 종료)를 미리 정의해두고 재사용할 수 있게 클래스를 기술할 수 있어보인다.

PyQt

배경

  • cmd 창 2개 띄우려는 내 toy 프로젝트가 큰 난관에 봉착해있었다.
  • 도저히 구글링해도 나오지 않는 답답함에 Python Korea 페이스북 그룹에 올렸다.
  • "꼭 그래야만 하는 상황"이 아니라면 GUI를 쓰라는 조언을 들었다.
  • Python GUI 쪽으로는 기본 내장인 Tkinter도 있지만, PyQt가 유명하다고 한다.
  • Qt 자체가 다양한 OS에서 GUI를 구현할 수 있게 도와주는 프레임워크이기 때문. PyQt는 Qt의 Python 바인딩이다.

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.