Skip to main content

All Questions

Tagged with
0 votes
0 answers
14 views

How to forward function calls to function target with same name but in different context

Working: import multiprocessing from time import sleep class bar(): def __init__(self): pass def x(self, a, b): print(self, a, b) def y(self, a, b=None, c=None): print(self, c, b, a) ...
Andreas Koten's user avatar
0 votes
0 answers
44 views

connection refused from other device (python)

I am trying to create a messaging one-server platform on python, and I got to the moment where i set up the firewall, port forwarding and routing. But this server-client scheme works only on one ...
UA3YSR's user avatar
  • 1
0 votes
2 answers
167 views

How to edit new messages before forwarding using python

I am using a Python code to forward new messages between two bot/channel telegram. I am trying to edit messages before forwarding them (I need to delete some parts of text), but I didn't find the ...
Marcello Gabrielli's user avatar
0 votes
2 answers
662 views

How auto forward messages from a channel to another channel using Python

How do I auto forward messages instantly from a channel to another channel? I created an example but doesn't work. This is my example: `from telethon import TelegramClient, events api_id = ...
Marcello Gabrielli's user avatar
6 votes
2 answers
2k views

Best way to forward/redirect methods/attributes in python class without redundant code/docstrings?

I have a project, with some modules each of which contains a class doing their respective thing. Then I have an API class for the user. The API class instantiate those classes, and should forward/...
Alex's user avatar
  • 1,004
0 votes
1 answer
383 views

Configure (gmail) email in python to prevent users from forwarding an email

I am using smtplib to send automatic emails (with Gmail) to a list of users. I want to prevent them from forwarding the emails they receive. To my knowledge, there is no default setting on Gmail that ...
JustThinking's user avatar
0 votes
3 answers
2k views

How do I make a Flask app available for my friends through port-forwarding?

So I created a simple Flask app to automate certain calculations we often have to do in math class. I'm now trying to let my friends use it too but I can't get the local port forwarding right. When I ...
Dries's user avatar
  • 21
6 votes
0 answers
908 views

Python websocket server forwards messages from other websocket server

I receive real time data from websocket server (A). I want to forward that data using another websocket server (B) which will be used to share the data with client (web application). Instead of ...
anilkunchalaece's user avatar
0 votes
1 answer
1k views

Port forwarding Webserver Python

I'm trying to create a port forwarding script that runs a webserver. Once you visit the webserver it should forward the user to the first web server in the array that runs on another port. Every time ...
247errorsnl's user avatar
2 votes
4 answers
1k views

Trying to forward a data form with file to another webservice

I'm trying to forward a data-form request to another webservice but when I receive the new request in the other webservice, it contains the form data, but not the file data: [+] Forward 1: ...
jorgefidel.fernande's user avatar
0 votes
1 answer
248 views

How to forward to another subpage

Today I started my first project in Selenium with Python. I'm going to write a program that will automate buying items on a website. I'm going to expand functions of this bot in future updates, but ...
GoldenRC's user avatar
0 votes
0 answers
107 views

Python: Forward a dictionary to another function [duplicate]

I need to forward a dictionary to another function (that I can't change). Both my function and the target function look like this: def myFunc(arg, **args): def targetFunc(arg, **args): In my code, I ...
iBug's user avatar
  • 36.8k
0 votes
0 answers
201 views

Home networking using Raspberry Pi and Python - Network Bridges

Basically I want to be able to increase the range of my home network via some Raspberry Pi running some wireless python bridge software I am going to write. The setup would be as follows: ...
Slinky's user avatar
  • 3
0 votes
1 answer
228 views

When forwarding data via python how do I space out the data strings?

I have a positioning system that sends the data from a tag it's tracking to a specific port, 8787. I have a Python script that then takes that data string and forwards it to a specific port for my ...
Brian Bowles's user avatar
1 vote
1 answer
3k views

Python script for forwarding streaming data

I'm trying to take incoming data from one port and stream it to a port on another computer. Here is what I have so far: import socket port = 8787 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) ...
Brian Bowles's user avatar

15 30 50 per page