reuters-style¶
A Python library for Reuters editorial formatting and Graphics chart colors.
Install¶
pip install reuters-style
Use¶
from datetime import datetime
import reuters_style
reuters_style.date(datetime(2021, 9, 1)) # "Sept. 1, 2021"
reuters_style.validate_slug("FERRARI-IPO/PROSPECTUS") # True
The API reference documents each formatter, validator and data object. The Graphics colors page is a quick reference for charts and maps.