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: object

Config 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
classmethod from_yaml(path: str = 'config.yml') Config[source]
num_posts_per_page: int = 5
num_top_tags: int = 5
title: str
class posty.config.FeedConfig(rss: bool = True, atom: bool = True)[source]

Bases: object

atom: bool = True
rss: bool = True