Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

CLI client and a library for urbandictionary.com

Project Description
py-urbandict
============

py-urbandict is a client for urbandictionary.com.

Project page on github: https://github.com/novel/py-urbandict

Installation
------------

Just run:

sudo setup.py install

Usage
__________
To use it from command line, just use 'urbancli' tool like that:

$ urbandicli xterm
1. xterm
Godly creature, omnipotent, guru in every way imaginable.

Examples:

* I wish i was an xterm


$

Usage from Python:

$ python3.2
Python 3.2 (r32:88445, Feb 27 2011, 09:51:00)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import urbandict
>>> urbandict.define('xterm')
[{'word': 'xterm', 'example': 'I wish i was an xterm', 'def': 'Godly creature, omnipotent, guru in every way imaginable.'}]
>>>

It returns list of defitinitions for a term. Each list item is a dict with the following keys:

* word -- the word itself
* def -- definition of the term
* example -- example of its usage (could be empty)
Release History

Release History

This version
History Node

0.5

History Node

0.4

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
urbandict-0.5.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting