$ konch init [<config_file>] ¶

creates a .konchrc file in your current directory.

.konchrc is a Python file that calls the konch.config(config_dict) function. See the Configuration section for a listing of options.

Here is an example .konchrc file that includes some functions from the requests library in its context.

# .konchrc import konch import requests konch . config ( { "context" : [ requests . get , requests . post , requests . put , requests . delete ], "banner" : "A humanistic HTTP shell" , } )

This would produce the following shell:

See also For more examples, see the example_rcfiles directory.

Note .konchrc files created with konch init are automatically authorized.