Registry / testing / random-word

random-word

JSON →
library1.0.13pypypi✓ verified 87d ago

A simple Python package to generate random English words, suitable for password generation, game content, or testing. Version 1.0.13 requires Python 3.8+.

pip install random-word
INSTALL
IMPORT
SIG · RANDOM-WORD
R
random-word
testingpythonv1.0.13
Install
3.7s avg
Import
—
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.0.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 43MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 44MB
42MB installed
● package 42MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RandomWords
✓ from random_word import RandomWords
✗ from random_word import RandomWord

Generate a single random English word.

from random_word import RandomWord r = RandomWord() print(r.get_random_word())
Debug
Known issues
gotchaThe package relies on a remote API (https://random-word-api.herokuapp.com). Without internet access, it raises a ConnectionError.
fix
Ensure network connectivity or use a local word list alternative. The package does not ship its own word list.
affects: >=1.0.0
deprecatedThe method `random_word` was renamed to `get_random_word` in v1.0.0. The old name still works but issues a deprecation warning.
fix
Use `r.get_random_word()` instead of `r.random_word()`.
affects: >=1.0.0
Upgrade
Version history
1.0.13latest on PyPI · released Nov 21, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
Amazon
3
OpenAI (training)
1
Resources