{"id":28144,"library":"reuters-style","title":"reuters-style","description":"Format dates, numbers and text to conform with the Reuters Style Guide. Current version is 0.0.5, released in 2024. Release cadence is irregular.","status":"active","version":"0.0.5","language":"python","source_language":"en","source_url":"https://github.com/palewire/reuters-style","tags":["reuters","style-guide","news","formatting","dates","numbers"],"install":[{"cmd":"pip install reuters-style","lang":"bash","label":"Install the package"}],"dependencies":[{"reason":"Used for parsing dates","package":"dateparser","optional":false}],"imports":[{"note":"The main class for style formatting","wrong":"","symbol":"ReutersStyle","correct":"from reuters_style import ReutersStyle"},{"note":"Class for generating slugs per Reuters style","symbol":"Slug","correct":"from reuters_style import Slug"},{"note":"Dataclass for Reuters Instrument Codes","symbol":"RIC","correct":"from reuters_style import RIC"}],"quickstart":{"code":"from reuters_style import ReutersStyle\n\n# Format a date\nstyle = ReutersStyle()\nprint(style.format_date('2024-01-01'))  # Output: 'Jan 1'\n\n# Format a number\nprint(style.format_number(1234567))  # Output: '1,234,567'\n\n# Format text\nprint(style.format_text('Mr. John Smith'))  # Output: 'John Smith'","lang":"python","description":"Basic usage: create a ReutersStyle instance and call format methods."},"warnings":[{"fix":"Use `import reuters_style` or `from reuters_style import ...`","message":"The package import uses underscores (reuters_style) not hyphens.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to a specific version and review changelogs before upgrading.","message":"Some functionality may be removed in future versions without prior notice. The package is in early development (pre-1.0).","severity":"deprecated","affected_versions":"0.x"},{"fix":"Reuse the same instance when possible.","message":"The ReutersStyle class caches some data; creating a new instance per request may be inefficient.","severity":"gotcha","affected_versions":"all"}],"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 reuters-style` and import as `from reuters_style import ...`","cause":"Package not installed or imported incorrectly.","error":"ModuleNotFoundError: No module named 'reuters_style'"},{"fix":"Check documentation for valid parameters; currently only 'locale' is supported.","cause":"Constructor does not accept arbitrary keyword arguments.","error":"TypeError: ReutersStyle() got an unexpected keyword argument 'date_format'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}