Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore ListLoad Str AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Assign NameStore Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Assign NameStore NameLoad If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If AttributeLoad NameLoad attr body Expr Call NameLoad orelse If AttributeLoad NameLoad attr body Return Call NameLoad orelse If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Return Num decorator_list
N/A N/A 
    Tinkerer command line
    ~~~~~~~~~~~~~~~~~~~~~

    Automates the following blog operations:

    setup - to create a new blog
    build - to clean build blog
    post - to create a new post
    page - to create a new page

    :copyright: Copyright 2011-2016 by Vlad Riscutia and contributors (see
    CONTRIBUTORS file)
    :license: FreeBSD, see LICENSE file
 N/A argparse datetime datetime N/A os N/A shutil N/A subprocess N/A tinkerer tinkerer draft output page paths post writer setup N/A N/A N/A N/A N/A 
    Sets up a new blog in the current directory.
     N/A new_blog N/A N/A writer setup_blog N/A N/A N/A N/A output filename info conf.py N/A new_blog N/A N/A N/A N/A N/A output write info Your new blog is almost ready! N/A N/A N/A N/A output write info N/A You just need to edit a couple of lines in %s N/A N/A N/A N/A os path relpath N/A paths conf_file N/A N/A N/A N/A N/A output write info Done N/A build N/A N/A N/A N/A N/A 
    Runs a clean Sphinx build of the blog.
     N/A N/A N/A N/A os path exists N/A paths blog N/A N/A N/A N/A shutil rmtree N/A paths blog N/A flags N/A sphinx-build N/A N/A output quiet N/A N/A N/A N/A flags append -q N/A flags N/A -d N/A paths doctree -b html N/A paths root N/A paths html N/A N/A N/A N/A output filename info index.html N/A N/A N/A N/A os path exists _copy N/A N/A N/A N/A shutil copytree _copy/ N/A paths html N/A N/A N/A subprocess call flags N/A create_post N/A N/A title date template N/A N/A N/A 
    Creates a new post with the given title or makes an existing file a post.
     N/A move N/A N/A N/A os path exists title N/A move N/A N/A new_post N/A N/A post move title date N/A N/A new_post N/A N/A post create title date template N/A N/A N/A N/A output filename info N/A new_post path N/A move N/A N/A N/A N/A N/A output write info N/A Draft moved to post '%s' N/A new_post path N/A N/A N/A N/A N/A output write info N/A New post created as '%s' N/A new_post path N/A create_page N/A N/A title template N/A N/A N/A 
    Creates a new page with the given title or makes an existing file a page.
     N/A move N/A N/A N/A os path exists title N/A move N/A N/A new_page N/A N/A page move title N/A N/A new_page N/A N/A page create title template N/A N/A N/A N/A output filename info N/A new_page path N/A move N/A N/A N/A N/A N/A output write info N/A Draft moved to page '%s' N/A new_page path N/A N/A N/A N/A N/A output write info N/A New page created as '%s' N/A new_page path N/A create_draft N/A N/A title template N/A N/A N/A 
    Creates a new draft with the given title or makes an existing file a draft.
     N/A move N/A N/A N/A os path exists title N/A move N/A N/A new_draft N/A N/A draft move title N/A N/A new_draft N/A N/A draft create title template N/A N/A N/A N/A output filename info new_draft N/A move N/A N/A N/A N/A N/A output write info N/A File moved to draft '%s' new_draft N/A N/A N/A N/A N/A output write info N/A New draft created as '%s' new_draft N/A preview_draft N/A N/A draft_file N/A N/A N/A 
    Rebuilds the blog, including the given draft.
     N/A N/A N/A N/A N/A os path exists draft_file N/A N/A N/A Exception N/A Draft named '%s' does not exist draft_file N/A preview_post N/A N/A post move draft_file N/A N/A N/A result N/A build N/A N/A N/A N/A draft move N/A preview_post path N/A result N/A main N/A N/A argv N/A None N/A N/A 
    Parses command line and executes required action.
     N/A parser N/A N/A argparse ArgumentParser N/A group N/A N/A parser add_mutually_exclusive_group N/A N/A N/A group add_argument -s --setup action store_true help setup a new blog N/A N/A N/A group add_argument -b --build action store_true help build blog N/A N/A N/A group add_argument -p --post nargs 1 help create a new post with the title POST (if a file named POST exists, it is moved to a new post instead) N/A N/A N/A group add_argument --page nargs 1 help create a new page with the title PAGE (if a file named PAGE exists, it is moved to a new page instead) N/A N/A N/A group add_argument -d --draft nargs 1 help creates a new draft with the title DRAFT (if a file named DRAFT exists, it is moved to a new draft instead) N/A N/A N/A group add_argument --preview nargs 1 help rebuilds the blog, including the draft PREVIEW, without permanently promoting the draft to a post N/A N/A N/A group add_argument -v --version action store_true help display version information N/A N/A N/A parser add_argument -t --template action store default None help specify a body template, defaults to page or post N/A N/A N/A parser add_argument --date nargs 1 help optionally specify a date as 'YYYY/mm/dd' for the post, useful when migrating blogs; can only be used together with -p/--post N/A group N/A N/A parser add_mutually_exclusive_group N/A N/A N/A group add_argument -q --quiet action store_true help quiet mode N/A N/A N/A group add_argument -f --filename action store_true help output filename only - useful to pipe Tinkerer commands N/A command N/A N/A parser parse_args argv N/A N/A N/A output init N/A command quiet N/A command filename N/A N/A N/A N/A command setup N/A N/A command version N/A N/A N/A N/A os path exists N/A paths conf_file N/A N/A N/A N/A N/A output write error Tinkerer must be run from your blog root (directory containing 'conf.py') N/A -1 N/A post_date None N/A N/A command date N/A N/A N/A N/A command post N/A N/A N/A N/A N/A output write error Can only use --date with -p/--post. N/A -1 N/A N/A N/A post_date N/A N/A datetime strptime N/A N/A command date N/A 0 %Y/%m/%d N/A N/A N/A N/A N/A N/A N/A output write error Invalid post date: format should be YYYY/mm/dd N/A -1 N/A N/A command template N/A N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path join N/A paths templates N/A command template N/A N/A N/A N/A N/A output write error The specified template does not exist.  Make sure the template is placed inside the _templates subdirectory of your blog. N/A -1 N/A N/A command setup N/A N/A N/A setup N/A N/A N/A command build N/A N/A N/A build N/A N/A N/A command post N/A N/A N/A create_post N/A N/A command post N/A 0 post_date N/A command template N/A N/A N/A command page N/A N/A N/A create_page N/A N/A command page N/A 0 N/A command template N/A N/A N/A command draft N/A N/A N/A create_draft N/A N/A command draft N/A 0 N/A command template N/A N/A N/A command preview N/A N/A N/A preview_draft N/A N/A command preview N/A 0 N/A N/A N/A command version N/A N/A N/A N/A N/A output write info N/A Tinkerer version %s N/A tinkerer __version__ N/A N/A N/A N/A parser print_help N/A 0 N/A