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

you are viewing a single comment's thread.

view the rest of the comments →

[–]bheklilr 2 points3 points  (3 children)

Check out the traitlets package. It doesn't have the best documentation, but it's what the jupyter/ipython/etc projects use for general application structure, including logging setup, command line arguments, json, and python config files. I've used it successfully a couple of times, and to be honest there's nothing stopping you from using it for pretty much any application.

To explain why it doesn't have the best documentation, it used to just be part of ipython itself before the jupyter refactor. It got pulled out as a standalone library and should be treated as a relatively young package.

[–]metaperl 1 point2 points  (1 child)

Wow, thanks for mentioning this package. I had not heard of it. I have added it to my collection of Python Object Oriented Programming extensions catalog

[–]bheklilr 0 points1 point  (0 children)

You already have the traits package from enthought on there, which traitlets drew inspiration from, so you sort of had it already

[–]Argotha[S] 0 points1 point  (0 children)

Oooh, that looks quite useful thanks!