
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.
= Urban_CLI == Description:
Urban is a command line utility with an API to query definitions from Urban Dictionary.
== BADGES
{}[https://travis-ci.org/enilsen16/urban_cli]
== REQUIREMENTS
== INSTALLATION
With Rubygems:
$ gem install urban
With git and local working copy
$ git clone git://github.com/tmiller/urban.git
$ cd urban
$ rake install
== CLI USAGE
=== 1. Look up a definition
$ urban cookie monster
=== 2. Random definition
$ urban -r
$ urban --random
=== 3. Print all definitions
$ urban -a cookie monster
$ urban -ra
=== 4. Print the url of the definition at the end of the output
$ urban -u cookie monster
$ urban -ru
=== 5. Print help and version
$ urban --help
$ urban --version
== API USAGE
require 'urban'
# Search for a word
entry = Urban::Dictionary.search('impromtpu')
# Get a random word
entry = Urban::Dictionary.random
puts entry.phrase # print the phrase
puts entry.url # print the url of the phrase
# print all of the definitions
entry.definitions.each do |definition|
puts definition
end
Copyright (c) 2011 Thomas Miller. See LICENSE for details.
FAQs
Unknown package
We found that urban_cli 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.