Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Releases: hjacobs/python-clickclick

1.2.2

21 Jul 20:09
Compare
Choose a tag to compare
  • #13: universal wheel (py2.py3)

1.2.1

14 Oct 15:39
efafdac
Compare
Choose a tag to compare
  • #3: fix broken RST rendering on PyPI

1.2

13 Sep 21:43
Compare
Choose a tag to compare
1.2
  • #8: add support for Python 2.7

1.1

29 Jul 16:39
87826cf
Compare
Choose a tag to compare
1.1
  • #6: add option to add newline and overwrite ok_msg

1.0

10 Dec 17:43
Compare
Choose a tag to compare
1.0
  • flag as "stable"
  • add UrlType parameter type (e.g. to do click.prompt('url', type=UrlType()))

0.14

15 Sep 13:46
Compare
Choose a tag to compare
  • print to stderr if stdout is no TTY
  • cleanup leading spaces (info, warning etc will not print leading spaces unless used with Action)

0.12

03 Sep 21:07
Compare
Choose a tag to compare
  • Minor PyPI manifest cleanup and wheel distribution

Documentation and Feature Update

27 Aug 16:57
Compare
Choose a tag to compare
  • add a example script (example.py) with all functions
  • add yaml-output support
with OutputFormat('yaml'):
    print_table('id name'.split(), [{'id': 1, 'name': 'Test #1'}, {'id': 2, 'name': 'Test #2'}])
id: 1
name: 'Test #1'
---
id: 2
name: 'Test #2'
  • add warning(msg) and ok(msg) for class Action
with Action('Calc 1 + 1..') as act:
    act.ok(1+1)

with Action('Oh, I make a warning..') as act:
    act.warning('work is complicated')
Calc 1 + 1.. 2
Oh, I make a warning.. work is complicated
  • add default for choice
state = choice('Please select the state of your work', ['Done', 'In Progress', 'unknown', 'lost'], default='lost'
Please select the state of your work
1) Done
2) In Progress
3) unknown
4) lost
Please select (1-4) [4]: