
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
|docs| |pypi|
Yet another UrbanDictionary API wrapper.
AsyncUrban is a non-blocking library, using asyncio and aiohttp, which can be used to access UrbanDictionary data.
Make sure you have Python3.5+ and run
py -3 -m pip install asyncurban
for Windows, or
python3 -m pip install asyncurban
for most other things.
You can find the docs at http://asyncurban.readthedocs.io/ and a brief example below.
.. code:: py
>>> import asyncio
>>> from asyncurban import UrbanDictionary
>>> loop = asyncio.get_event_loop()
# session and loop are optional kwargs for your convenience if
# You already have them defined for your project
>>> urban = UrbanDictionary(loop=loop)
# Get a word definition
>>> word = loop.run_until_complete(urban.get_word('dank'))
>>> word.definition
'Also an expression requently used by stoners and hippies for something of high quality.'
# Get a random word
>>> random_word = loop.run_until_complete(urban.get_random())
>>> print(random_word)
Orgasm
>>> random_word.definition
"When a woman reaches their 'climax'. It is the most desirable feeling EVER. Its like an explosion inside the body that feels so good."
# You can even search for X matching words and get a list
# The default is 3 but can be specified
>>> word_list = loop.run_until_complete(urban.search('test', limit=5))
>>> print(word_list)
[<Word word=test defid=708924>, <Word word=test defid=2957653>, <Word word=test defid=2573364>, <Word word=test defid=1876232>, <Word word=test defid=1662552>]
>>> word_list[0].definition
'A process for testing things'
Feel free to open up an issue or submit a PR if you have trouble or see a way to improve the code.
.. |docs| image:: https://readthedocs.org/projects/asyncurban/badge/?version=latest :target: http://asyncurban.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. |pypi| image:: https://badge.fury.io/py/asyncurban.svg :target: https://badge.fury.io/py/asyncurban
FAQs
An asynchronous wrapper around the UrbanDictionary API.
We found that asyncurban demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.