{"id":28142,"library":"reporters-db","title":"Reporters Database","description":"A database of court reporters for legal research, providing abbreviations and full names for federal and state reporters. Current version 3.2.64, released regularly.","status":"active","version":"3.2.64","language":"python","source_language":"en","source_url":"https://github.com/freelawproject/reporters-db","tags":["legal","court reporters","database","law"],"install":[{"cmd":"pip install reporters-db","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":null,"symbol":"REPORTERS","correct":"from reporters_db import REPORTERS"}],"quickstart":{"code":"from reporters_db import REPORTERS\n\n# Print all reporters\nprint(REPORTERS[:5])","lang":"python","description":"Import the REPORTERS constant, which is a list of dictionaries."},"warnings":[{"fix":"Use REPORTERS[0] or for reporter in REPORTERS:","message":"The REPORTERS variable is a list, not a dict. Access elements by index or iterate.","severity":"gotcha","affected_versions":"all"},{"fix":"Update your code to iterate over a list instead of accessing keys.","message":"In version 3.x, REPORTERS is a list of dicts; in older versions it may have been a dict.","severity":"breaking","affected_versions":">=3.0"},{"fix":"Use a dict comprehension: {r['abbreviation']: r for r in REPORTERS}","message":"Some functions like get_reporter_by_abbreviation() are deprecated in favor of direct dict lookups.","severity":"deprecated","affected_versions":">=3.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install with 'pip install reporters-db' and import using 'from reporters_db import REPORTERS'","cause":"Importing the wrong module or incorrect package name.","error":"AttributeError: module 'reporters_db' has no attribute 'REPORTERS'"},{"fix":"REPORTERS is a list; use a dict comprehension: reporter_dict = {r['abbreviation']: r for r in REPORTERS}","cause":"Trying to access REPORTERS as a dict (e.g., REPORTERS['F.2d']).","error":"TypeError: list indices must be integers or slices, not str"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}