client

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

What are possible causes of my python script ending prematurely?

What are possible causes of my python script ending prematurely? Question: I have a python script that communicates with other software through TCP/IP protocol. It receives data in XML format from the software. This worked fine. However, since it is part of a larger project I packed the modules and installed them into my project …

Total answers: 1

AADSTS900144: The request body must contain the following parameter: 'grant_type' with Microsoft Defender for Endpoint API

AADSTS900144: The request body must contain the following parameter: 'grant_type' with Microsoft Defender for Endpoint API Question: I am attempting to authenticate with Microsoft Defender for Endpoint’s API service by following this learn article: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/run-advanced-query-sample-python?view=o365-worldwide#get-token I typically use the "request" library for REST calls, so I didn’t follow the above code snippet exactly. When running …

Total answers: 1

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

How to check if python file is already running?

How to check if python file is already running? Question: I am working on client-server project using Tkinter GUI, and I want to check if ChatServer.py is running before I am running ChatClient.py file. for example: I want to run the Client().runGUI() line only if ChatServer.py is running, else I want to print an message …

Total answers: 1

Break down this @client.command() snippet

Break down this @client.command() snippet Question: I am trying to modify the following code but I’ve come to the conclusion I don’t fully understand what is taking place here. If someone would be so kind as to break it down for me line by line I’d be appreciative. @client.command(name=’cmd’) async def cmd(context): command = context.message.content.replace("!cmd …

Total answers: 1

kubernetes Python API Client: execute full yaml file

kubernetes Python API Client: execute full yaml file Question: Kubernetes has a very nice official Python API client. The API client assumes that you will be creating individual resources (such as pods, or services) and assumes that you will be using Python objects to compose and create API requests. However, I’d like to run arbitrary …

Total answers: 4

python oauth2 client issues when trying to get authorization token

python oauth2 client issues when trying to get authorization token Question: I am trying to use OAuth2 to get an authorization token using Python to a REST API. I am successful doing so using CURL but not with python. I am using the examples provided at the following docs: https://requests-oauthlib.readthedocs.org/en/latest/oauth2_workflow.html The following is my code: …

Total answers: 2