posty.config module
- class posty.config.CompatConfig(redirect_posty1_urls: bool = False)[source]
Bases:
object- redirect_posty1_urls: bool = False
- class posty.config.Config(config_path: str, author: str, title: str, description: str = '', base_url: str = '/', num_top_tags: int = 5, num_posts_per_page: int = 5, feeds: ~posty.config.FeedConfig = <factory>, compat: ~posty.config.CompatConfig = <factory>)[source]
Bases:
objectConfig object that gets passed around to various other objects. Loads config from a given YAML file.
- Parameters:
path – Path to a YAML file to read in as config
- author: str
- base_url: str = '/'
- compat: CompatConfig
- config_path: str
- description: str = ''
- feeds: FeedConfig
- num_posts_per_page: int = 5
- num_top_tags: int = 5
- title: str