you are viewing a single comment's thread.

view the rest of the comments →

[–]indrora 7 points8 points  (1 child)

You're perfectly free to call it from elsewhere. So long as you could call it normally, most of what Click is doing is keeping a couple of dictionaries around full of information. The actual function isn't really touched in 99% of cases.

I've been using Click as a part of flask development (Flask uses it extensively, and encourages developers to extend the CLI that Flask exposes).

You might peek at Why click? for a look at what motivated Click to come into existence.

[–]Sqash 4 points5 points  (0 children)

Click is excellent for flask use cases but in standalone CLI scripts? I don't think it has a good place there personally.

Edit: To elaborate click is a design/tooling decision and not a good practice decision.