
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Proxy one port to another port, and intercept/transform/log inbound and outbound TCP messages.
Add this line to your application's Gemfile
:
gem 'proxo'
And then execute:
bundle install
Or install it globally:
gem install proxo
> proxo --help
Usage: proxo [options]
-h, --help Show this help message
-v, --verbose Log all data received and republished, as well as lifecycle events
-i, --input-host INPUT_HOST Host to listen to (default: 127.0.0.1)
-p, --input-port INPUT_PORT Port to listen on (required)
-o, --output-host OUTPUT_HOST Host to republish to (default: 127.0.0.1)
-q, --output-port OUTPUT_PORT Port to republish to (will NOT republish if no output port is given)
-l, --log LOG_FILE File to log to (default: logs to STDOUT)
Listen to all messages and activity sent to port 5000:
proxo --verbose --input-port 5000
Proxy messages from port 5000 to 8080, and log the contents of all messages and activity:
proxo --verbose --input-port 5000 --output-port 8080
require "proxo"
require "json"
require "logger"
logger = Logger.new("log/log_file.log")
logger.level = Logger::INFO
proxy = Proxo::Proxomaton.new(
input_port: 5000,
output_port: 8080,
verbose: true,
logger: logger
)
proxy.on_the_way_there do |data|
puts "I'm sending this data: #{data}."
puts "I'm also throttling this request."
sleep 0.5
puts "I'm also remembering to return data to send to the output port."
puts "If I didn't return any data, the output port wouldn't receive any."
data
end
proxy.on_the_way_back do |data|
puts "I'm adding an unexpected field to the data coming back from the"
puts "application running on the output port."
payload = JSON.parse(data)
payload["foobar"] = "whoa"
payload.to_json
end
proxy.start!
Bug reports and pull requests are welcome on GitHub at https://github.com/kjleitz/proxo.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that proxo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.