Questions tagged [python-envoy]

15 questions
9
votes
3 answers

Differences between subprocess module, envoy, sarge and pexpect?

I am thinking about making a program that will need to send input and take output from the various aircrack-ng suite tools. I know of a couple of python modules like subprocess, envoy, sarge and pexpect that would provide the necessary…
bananamana
  • 485
  • 1
  • 9
  • 19
6
votes
1 answer

Using rm * (wildcard) in envoy: No such file or directory

I'm using Python and Envoy. I need to delete all files in a directory. Apart from some files, the directory is empty. In a terminal this would be: rm /tmp/my_silly_directory/* Common sense dictates that in envoy, this translates into: r =…
Jouke Waleson
  • 517
  • 1
  • 3
  • 14
3
votes
0 answers

How to separate Upstream and downstream logs in Envoy?

I am using Envoy as a proxy in my architecture and I want to separate the access logs for upstream and downstream traffic. I am currently using Envoy version 1.18 I am using the following code in my configuration: access_log: -…
Pranav Choudhary
  • 2,726
  • 3
  • 18
  • 38
3
votes
2 answers

grep No such file or directory with envoy.run

I try to build script that execute some grep search in my logs and print the results. I try to use Envoy because is more easy than subprocess but when I execute grep command it gives me back an error of no such file o directory. The dir structure is…
Smilzao
  • 65
  • 8
3
votes
1 answer

`envoy`-like abstraction of subprocess

I was really excited about the Envoy project when I first heard about it. Having a sane API for subprocess is something I very much need. However, envoy seems not to be maintained anymore. The last commit was made 10 months ago, and the last release…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
2
votes
2 answers

How to use wildcards with Envoy

I'm trying to run this command through KennethReitz's Envoy package: $ sqlite3 foo.db 'select * from sqlite_master' I've tried this: r = envoy.run("sqlite3 foo.db 'select * from sqlite_master'") sqlite3: Error: too many options: "*" and this: r =…
Buford Sweatley
  • 327
  • 1
  • 3
  • 6
2
votes
0 answers

SNI based routing in envoy

I am working on a use case to do SNI based routing in envoy without doing TLS termination Scenario: Customer makes a HTTPS request for domain name dd-server_name-zion-zorfy.com I need to extract the domain name using SNI and forward the request to…
kane.zorfy
  • 1,000
  • 4
  • 14
  • 27
2
votes
2 answers

Envoy gRPC HTTP/1.1 bridge in java

I'm trying to implement an example of Envoy gRPC Bridge in Java follow this https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/grpc_bridge In the source code of example from Envoy, there is the code building the gRPC frame from grpc…
nemo
  • 61
  • 1
  • 8
1
vote
0 answers

Cannot run MongoDB code through Python evnoy

I am trying to import data into MongoDB through Python envoy. However it keeps showing "permission denied". After I have changed the permission of the data file, it keeps showing "Exec format error". However, when I ran the same command on MongoDB…
Cherry Wu
  • 3,844
  • 9
  • 43
  • 63
1
vote
1 answer

how to use envoy package in python?

I have installed package envoy. I ran the script but a windows error occured .I commented envoy.run then the full script runs but when I remove the comment, error occurs. import envoy # This data is checked-in to the repository and is a…
pramod24
  • 1,096
  • 4
  • 17
  • 38
1
vote
2 answers

How to avoid zombie process with envoy.connect?

I just discovered the 'envoy' module, a wrapper for python subprocess made by the creator of requests. I have a problem with the 'connect' function: everytime I use it, it results in a zombie process and I can't get the status_code or the…
SuperPython
  • 1,007
  • 2
  • 12
  • 24
0
votes
0 answers

How to figure out if the request coming to envoy (load balancer) is from a real user or google bot?

In our team we use envoyproxy (v1.18) as load balancer to handle requests (btw I'm a newbie in using envoy). Now I want to see if the request that reaches envoy, is coming from a real user or it's from a google bot. As I read in the official…
Ali
  • 1
  • 1
0
votes
0 answers

Getting the error PackageNotFound whenever iam trying to install something using conda

i am trying to create a new env with python 3.6 using conda. i have installed miniforge3 and anaconda. i have tried some the solutions but nothing worked for me. The error i am getting everytime. ` (base) hassaanzahid@Hassaans-MacBook-Pro…
0
votes
2 answers

GRPC with Angular and Typescript

I have a GRPC service running written in Python. I have the python support proto file for the same. I want to integrate this backend with AngularJS+Typescript UI. Questions are: Is it possible? Do I have to change anything in the Python grpc server…
Alok Sen
  • 11
  • 5
0
votes
2 answers

Execute bash file from Python

I want to execute a shell script file from within Python. I am currently using Envoy to do this: envoy.run('./scripts.sh') But it throws me a No such file or directory error. I am wondering, under which path is the above file executed? How can I…
linkyndy
  • 17,038
  • 20
  • 114
  • 194