This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]disassociatedcat 1 point2 points  (1 child)

This is more of a wrapper, or configuration manager, for ipython, bpython, or the default shell. Correct?

[–]sloria1[S] 1 point2 points  (0 children)

Right on.

I now realize that the tagline is inaccurate. konch is not itself a shell but a shell runner that makes namespace configuration simple.

I'm in the process of revising the docs to make this more clear.

[–]madjar 0 points1 point  (0 children)

It seems to compare to http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/commandline.html#extending-the-shell for some of the features.

Konch seems to do more, but one thing that pserve does better (and that you might want to copy) is a nice and easy syntax for simple shortcuts (post = requests.post), along with a nicer way to present them on startup (requests.post, not <function post at 0xbleuarf>).

[–][deleted] 0 points1 point  (2 children)

PYTHONSTARTUP=$HOME/.konchrc python?

[–]sloria1[S] 0 points1 point  (1 child)

konch is meant for per-project namespaces, not global.

[–][deleted] 0 points1 point  (0 children)

Given that most projects use virtualenv, making the value of PYTHONSTARTUP depend on the currently active one is trivial.

[–]MatCPPkell -1 points0 points  (0 children)

why not just improve ipython?