Explore >> Select a destination


You are here

o5wald.github.io
| | 3.70.187.24
1.5 parsecs away

Travel
| |
| | yasoob.me
2.0 parsecs away

Travel
| | Hi there fellows. In this post I am going to take you on an adventure with python sockets. They are the real backbones behind web browsing. In simpler terms there is a server and a client. We will deal with the client first. So lets first begin by importing the socket library and making a simple socket. import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Here we made a socket instance and passed it two parameters.
| | nagekar.com
1.6 parsecs away

Travel
| |
| | tinkering.xyz
19.8 parsecs away

Travel
| After learning about async/await in Python I wondered how I could apply it to software in my lab. Much of that involves talking to equipment via serial ports. Libraries for talking to serial ports exist, but I found the documentation for doing so via async/await sparse. Here's an example of how to use PySerial asynchronously.