Skip to main content

Bob renders directory structure templates

Project description

Mister Bob the Builder creates directory skeletons.


  • gittip
  • add +var+ folder in template_sample
  • [medium] validate questions being answered through config files
  • [medium] figure out how templates can depend on each other (bobconfig setting with a list of template names?)
  • [medium] ability to use multiple templates at the same time and depend on them (similar templer structures, but doesnt separate structures and templates)
  • [medium] Check how one would implement multi-namespace python package with current mr.bob api
  • [medium] Consider for “variables” storage
  • [low] Ability to configure what to ignore when copying templates in bobconfig
  • [low] better format print questions output (keep order of questions)
  • [low] non-interactive support (disable last phase of configuration) - what happens on missing variable?
  • [low] ability to have localcommands (maybe we dont need them because you can just use another template on top of template) - document this
  • [low] ability to specify answers to questions from cli
  • [low] ability to simulate rendering (dry-run)
  • [low] ability to rewrite templates
  • [low] ability to remember answers for the rendered template (goes together with updating/overriding templates)

[high] parse mr.bob section in templates (determine how that goes into configuration chain):

post_render_msg = Balblablalba
pre_render(all stuff passed to render())
pre_ask_question(question, questions, more?)

Add advanced templating docs section:

  • remove action in favor of post_ask_question
  • default may require input from previous answers (for example url of documentation may propose link for docs) -> use pre_ask_question to set default value
  • ability to conditionally render a file -> use post_render and delete the file if needed
  • if one question was answered, another template may be triggered -> use post_ask_question and use api to do whatever
  • question may be asked if another question is answered in a certain way -> use post_ask_question and add another question (is that possible if we are looping through questions? -> While questions: questions.pop())


0.1a4 (2012-12-11)

  • Fix so that template examples are also included with distribution [Domen Kožar]
  • Add -q/–quiet option to suppress output which isn’t strictly necessary [Sasha Hart]
  • Suppress the interactive-mode welcome banner if there are no questions to ask [Sasha Hart]
  • Don’t raise KeyError: ‘questions_order’ if [questions] is missing in an ini [Sasha Hart]

0.1a3 (2012-11-30)

  • #13: Read user config from ~/.mrbob (as stated in docs and inline comments). [Andreas Kaiser]

0.1a2 (2012-11-29)

  • #12: Fix unicode errors when using non-ASCII in questions or defaults [Domen Kožar]
  • Ask questions in same order they were defined in template configuration file [Domen Kožar]

0.1a1 (2012-10-19)

  • Initial release. [Domen Kožar, Tom Lazar]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mr.bob, version 0.1a4
Filename, size File type Python version Upload date Hashes
Filename, size (30.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page