Возникла задача — в коробке для елочных игрушек сделать секции, чтобы эти игрушки разложить. Понятно, что всегда можно было купить картона и заколхозить просто ножницами. Но тут заиграл спортивно-инженерный интерес — а получится ли у меня придумать систему, которая из одинаковых деталей позволит собирать секции под коробки разных размеров? Почему одинаковых — потому что коробки в основном больше области печати принтера, а, значит, секции должны быть модульными. А самый идеальный вариант модуля это такой, который не ставит вопрос, сколько каких модулей печатать. Ты делаешь просто кучу одинаковых и собираешь из них нужное.
Мне нравится, как вышло. И можно разобрать и переделать на другие коробки. Уже два уровня таких напечатал. #diy@clockstackwheels
https://www.tutorialspoint.com/python/python_networking.htm
Python provides two levels of access to network services. At a low level, you can access the basic #socket support in the underlying operating system, which allows you to implement #clients and #servers for both connection-oriented and connectionless protocols.
Evented Django part one: Socket.IO and gevent
#Socket.IO was developed with a #Node.JS server implementation, but work is being done to add server implementations to a variety of languages. Two such servers exist for Python, tornadio and #gevent-socketio. I'm a big fan of gevent, so I will use gevent-socketio, but tornadio looks well-written and very promising.
http://codysoyland.com/2011/feb/6/evented-django-part-one-socketio-and-gevent/
https://pythonspot.com/en/python-network-sockets-programming-tutorial/
Python network sockets programming tutorial
In this tutorial you will learn about in #network programming. You will learn about the #client-#server model that is in use for the World Wide Web, E-mail and many other applications.
#socket
http://www.techbeamers.com/python-tutorial-essentials-of-python-socket-programming/
Essentials of Python #Socket Programming You Should Know
Python offers two types of #API libraries that we can use for socket programming. At the low-level, Python utilizes the “socket” library to implement #client and #server#modules for both #connectionless and #connection-oriented #network protocols. Whereas, at the higher-level, You can use libraries like #ftplib and #httplib to interact with application-level network protocols like #FTP and #HTTP.