Skip to main content

urbanpython

urbanpython is an API wrapper for the Urban Dictionary JSON API

Installation

To install urbanpy, do:

pip install urbanpython

or

python -m pip install urbanpython

Documentation

This README file is the documentation

Examples

To get your API key, go to https://rapidapi.com/community/api/urban-dictionary/endpoints and get your API key

This is your API key

import urbanpython

urban = urbanpython.Urban("-your api key-")
result = urban.search("the thing you are gonna search")

print(result.definition)     #Definition of the post
print(result.permalink)      #The link to the post
print(result.thumbs_up)      #Number of thumbs ups
print(result.thumbs_down)    #Number of thumbs downs
print(result.sounds_url)     #A list of the sounds urls in the post
print(result.author)         #The author of the post
print(result.defid)          #The ID of the definition
print(result.written_on)     #The time the definition got written on
print(result.example)        #The example of the post

Release files for urbanpython 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urbanpython 1.0.4
File Size Uploaded
urbanpython-1.0.4.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urbanpython 1.0.4
File Interpreter ABI Platform
urbanpython-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / urbanpython-1.0.4.tar.gz

Download URL urbanpython-1.0.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
41ddc1a802cd38cabff3ca0c12f955abaa59c13171d7e0754ce397045220e308
BLAKE2b-256 checksum
How to use checksums
79a47a14658cb8a93023fae015d69da92d1a298d9de4fc653876de0c743fbc59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.1

Release files / urbanpython-1.0.4-py3-none-any.whl

Download URL urbanpython-1.0.4-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07ec05ed9a2e9da56dab277779037ac853a8d830140c06f9451541871b35f860
BLAKE2b-256 checksum
How to use checksums
3b4c70b9d440d97db04a97af3b9e51ee668e1d38cfb1483bc73f91c5a25f0443
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page