
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Ruby wrapper for the Spotify Search & Lookup API. Under development.
require 'spof'
Spof::Search.artist('nine inch nails') # or album or track
Returns:
{
:info => {
:num_results => 1,
:limit => 100,
:offset => 0,
:query => "nine inch nails",
:type => "artist",
:page => 1
},
:artists => [
{ :href =>"spotify:artist:0X380XXQSNBYuleKzav5UO", :name => "Nine Inch Nails", :popularity => "0.64"}
]
}
r = Spof::Lookup.get('spotify:uri:album:xy...z')
# extras can be specified
r = Spof::Lookup.get('spotify:uri:album:xy...z', :track)
# convenience methods Lookup.album/artist/track check the provided extras
r = Spof::Lookup.artist('spotify:uri:artist:ab...c', :trackdetail)
# raises Spof::SpofError, "Illegal extra"
For both Lookup
and Search
methods, the result contains the parsed JSON response. For now it's like:
r = JSON.parse(spotify_api_json_response, :symbolize_names => true) # hash with symbols as keys
w = Spof::Wrapper.new
w.artist.search('nine inch nails') # album/artist/track. First page album results
# => [{:href=>"spotify:artist:0X380XXQSNBYuleKzav5UO", :name=>"Nine Inch Nails", :popularity=>"0.64"}]
w.all.album.search('nine inch nails')
# => list of all found albums
See LICENSE file.
FAQs
Unknown package
We found that spof 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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.