
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.
#transprt
Ruby client for the Swiss public transport API at http://transport.opendata.ch
##Installation
gem install transprt
#run example
ruby example.rb
##Usage
To talk to the API, get a client:
require 'transprt'
client = Transprt::Client.new
See below how to use this client.
Hint: You may specify a mirror of the API other than http://transport.opendata.ch using the first argument of the constructor.
###Locations http://transport.opendata.ch/#locations
client.locations query: 'Geneva'
# => [{"id"=>"008501008", "name"=>"Genève", "score"=>"101", "coordinate"=>{"type"=>"WGS84", "x"=>6.142455, "y"=>46.210199}, "distance"=>nil}]
###Connections
http://transport.opendata.ch/#connections
client.connections from: 'Lausanne', to: 'Geneva'
###Station board
http://transport.opendata.ch/#stationboard
# Display station board
client.stationboard station: 'Lausanne'
Running the tests
rake test
MIT License (MIT)
FAQs
Unknown package
We found that transprt 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.