server

Python: Send list of multidimensional numPy arrays over socket

Python: Send list of multidimensional numPy arrays over socket Question: i wish to send a list consisting of multi-dimensional NumPy arrays over the socket to my server and restore its format right after. The List of arrays (variable aggregated_ndarrays) looks like the following: [array([[[[-1.04182057e-01, 9.81570184e-02, 8.69736895e-02, -6.61955923e-02, -4.51700203e-02], [ 5.26290983e-02, -1.18473642e-01, 2.64136307e-02, -9.26332623e-02, -6.63961545e-02], [-8.80082026e-02, …

Total answers: 2

Is it ok to keep TCP connections alive throughout the serving time?

Is it ok to keep TCP connections alive throughout the serving time? Question: I’m making a socket TCP server with python that handles multiple connections simultaneously. so I defined a dictionary to hold the clients socket addresses, so I could access them and traffic the information between the clients easily. but I wander if there …

Total answers: 1

How to connect to a MS SQL Server 2019 on another machine with Python?

How to connect to a MS SQL Server 2019 on another machine with Python? Question: The MS SQL server I am trying to connect with is in another machine within my corporate network. Many laboratory external devices write on the SQL service without issues, so I know that the server is configured to accept external …

Total answers: 1

Python websockets module tutorial script does not run correctly

Python websockets module tutorial script does not run correctly Question: I am trying to mess around with the websockets module from python in order to make a simple chat server. I went to their quick start guide (found here: https://websockets.readthedocs.io/en/stable/howto/quickstart.html) and copied and pasted their server.py script and client.py script: server.py: import asyncio import websockets …

Total answers: 2

Copying files from one location of a server to another using python

Copying files from one location of a server to another using python Question: Say I have a file that contains the different locations where some ‘.wav’ files are present on a server. For example say the content of the text file location.txt containing the locations of the wav files is this /home/user/test_audio_folder_1/audio1.wav /home/user/test_audio_folder_2/audio2.wav /home/user/test_audio_folder_3/audio3.wav /home/user/test_audio_folder_4/audio4.wav …

Total answers: 3

python xmlrpc server Cannot receive any XMLRPC from other computers

python xmlrpc server Cannot receive any XMLRPC from other computers Question: I wrote this server using xmlrpc in python I want to be albe to access this server from any computer but it throws error. And another thing is that how can I make sure that the my server can support more than 1 client …

Total answers: 1

Get in python what web server is used by a website

Get in python what web server is used by a website Question: How can I know if a website is using apache, nginx or other and get this information in python? Thanks in advance Asked By: Ensorid || Source Answers: This information if available is given in the header of the response to a HTTP …

Total answers: 1