{"id":21855,"library":"random-word","title":"random-word","description":"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+.","status":"active","version":"1.0.13","language":"python","source_language":"en","source_url":"https://github.com/vaibhavsingh97/random-word","tags":["random","word","english","generator"],"install":[{"cmd":"pip install random-word","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Class is CamelCase, not snake_case.","wrong":"from random_word import random_word","symbol":"RandomWord","correct":"from random_word import RandomWord"}],"quickstart":{"code":"from random_word import RandomWord\n\nr = RandomWord()\nprint(r.get_random_word())","lang":"python","description":"Generate a single random English word."},"warnings":[{"fix":"Ensure network connectivity or use a local word list alternative. The package does not ship its own word list.","message":"The package relies on a remote API (https://random-word-api.herokuapp.com). Without internet access, it raises a ConnectionError.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use `r.get_random_word()` instead of `r.random_word()`.","message":"The method `random_word` was renamed to `get_random_word` in v1.0.0. The old name still works but issues a deprecation warning.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Check internet connection. Alternatively, use a local word list from another library (e.g., nltk) and bypass random-word.","cause":"Network unavailable or API endpoint changed.","error":"ConnectionError: Failed to fetch word from API"},{"fix":"Use `from random_word import RandomWord`.","cause":"Wrong import: using 'import random_word' instead of 'from random_word import RandomWord'.","error":"AttributeError: module 'random_word' has no attribute 'RandomWord'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}