Commit Graph

249 Commits

Author SHA1 Message Date
anatoly techtonik ab2f37219a Fix image 2012-11-07 15:06:46 +03:00
Kenneth Reitz acdddbabea Merge pull request #42 from takluyver/colorama-init2
Initialise colorama for textui on Windows.
2012-09-24 07:23:17 -07:00
Kenneth Reitz 1a11a670e7 Merge pull request #57 from aerenchyma/fix-issue56
Fix - issue56
2012-09-24 07:19:32 -07:00
Kenneth Reitz 1dc521de1a Merge pull request #63 from dendright/develop
Only write progress bars to terminal by default
2012-09-24 07:18:52 -07:00
Kenneth Reitz 1e3888e530 Merge pull request #70 from gekitsuu/develop
changed import args to import arguments
2012-09-10 16:26:18 -07:00
Adam Glenn 2c8561a492 changed import args to import arguments 2012-09-10 12:52:51 -04:00
Kenneth Reitz 04f0cdd646 Merge pull request #69 from brandly/develop
Fix minor spelling mistake
2012-09-09 14:14:24 -07:00
Matthew Brandly 0bd5026d21 Fix minor spelling mistake 2012-09-09 14:54:52 -04:00
jczetta b69ceb18d2 redefined __getattr__ so all str methods work
All str methods work for ColoredStrings with expected functionality, excepting .join(). Retained some other method definitions in order to retain expected functionality. Added tests for ColoredString.
2012-08-25 12:43:29 -04:00
Jack Riches e1bdaa4d0d More robust checking for if output is a tty 2012-08-14 09:47:34 +01:00
Jack Riches 8103032de8 Only write progress bars to terminal by default
This removes unwanted progress bar output when piping to another command
or file. Progress bars may be explicitly shown in this case with
progess.bar(iterable, hide=False)
2012-08-08 15:01:06 +01:00
Kenneth Reitz ab401e7af2 Merge pull request #61 from barberj/args_integration
Args integration
2012-08-01 09:32:49 -07:00
barberj fc841b0a61 consistency is key 2012-08-01 09:15:58 -04:00
barberj b591c3edc2 forgot to include args dependency 2012-08-01 08:49:48 -04:00
barberj 70c0680b8c credit 2012-08-01 08:47:29 -04:00
barberj e7db8c7e37 Updated to use arguments module.
Removed py25 support and tox testing since try/except statements were >=2.5.
Try setup import from setuptools so python setup.py develop is available.
2012-08-01 08:42:34 -04:00
Kenneth Reitz 944af48ba5 Merge pull request #55 from donspaulding/develop
Added an expected_size parameter to progress.bar and progress.mill.
2012-06-14 10:30:43 -07:00
Don Spaulding a1808173d9 Added an expected_size parameter to progress.bar and progress.mill.
Some objects you might want to show progress on while iterating over
do not support calling len().  In these cases you can now pass
`expected_size` in to the progress.bar and progress.mill functions
to avoid the len() call on the iterable.
2012-06-14 12:23:05 -05:00
Kenneth Reitz c2aa315a58 Merge pull request #53 from johtso/develop
Make prompt module accessible
2012-06-14 10:07:15 -07:00
Johannes 3e03a9ceb9 Make prompt module accessible 2012-05-14 12:43:19 +02:00
Kenneth Reitz 02016e8b06 Merge pull request #38 from Lothiraldan/develop
Try a reimplementation of clint.textui.core
2012-05-09 16:28:42 -07:00
Kenneth Reitz a7e2d21273 Merge pull request #51 from kracekumar/develop
Develop
2012-05-09 11:19:39 -07:00
kracekumar 911a84406e added an example get_each_args.py 2012-05-09 01:06:03 +05:30
kracekumar afd410125d added an example get_each_args.py 2012-05-09 01:05:32 +05:30
Kenneth Reitz e2a169ab9c Merge pull request #44 from mjs2600/develop
Fixed a typo in README.rst
2012-04-22 17:55:01 -07:00
Kenneth Reitz cfad07a774 Merge pull request #49 from gbrindisi/prompt
Added basic yes/no prompt module
2012-04-06 10:05:22 -07:00
Gianluca Brindisi 48d9c16f0f Added basic yes/no prompt module 2012-04-06 15:01:14 +02:00
Michael Simpson 86b196811f Update README.rst 2012-02-23 14:26:05 -05:00
Thomas Kluyver d479ea3a3c Initialise colorama for textui on Windows.
Closes gh-39
2012-02-23 10:08:55 +00:00
Kenneth Reitz fc873deb3b Merge pull request #40 from verigak/develop
Allow multiple occurences of a flag in grouped
2012-02-14 14:04:00 -08:00
Giorgos Verigakis d4cb4e8c01 Allow multiple occurences of a flag in grouped 2012-02-14 23:57:45 +02:00
FELD Boris 7c48045b57 Update clint.textui.core's docstrings 2012-02-12 17:46:33 +01:00
FELD Boris ea9b2186d5 More simple implementation of indent context 2012-02-12 17:32:59 +01:00
FELD Boris 761dce7237 Try to reimplement clint.textui.core in a more simpler way 2012-02-12 17:27:18 +01:00
Boris Feld 72b04cf5af Add a dedent util function, useful when using indent otherwise than as a context. 2012-02-11 22:51:20 +01:00
Kenneth Reitz 0378771f94 Merge pull request #32 from jpiper/develop
Added ETA timer to progress.bar
2012-01-23 11:04:07 -08:00
Jason Piper 129fea5e4f added myself to AUTHORS 2012-01-23 14:38:39 +00:00
Jason Piper a9d1089bbd Updated averaging method
Calculates a simple moving average based on the number of iterations
done in (1) second intervals over the last (10) seconds
2012-01-23 14:27:57 +00:00
Jason Piper 270afcca03 Added progress bar ETA
Very simplistic, currently updates every iteration (not a performance
issue, but not the prettiest way to do it)
2012-01-23 13:50:45 +00:00
Kenneth Reitz c7f5296b13 Merge pull request #31 from collinwat/f/unicode-bytes
Explicitly chack for instances of bytes to distinguish between py2 and py3
2012-01-20 09:12:51 -08:00
Collin Watson e8f6f7737a Explicitly chack for instances of bytes to distinguish between py2 and py3. 2012-01-17 08:07:42 -08:00
Kenneth Reitz 43b152cf0e Merge branch 'develop' of github.com:kennethreitz/clint into develop 2012-01-16 09:22:05 -05:00
Kenneth Reitz 0d0d482156 Merge branch 'f/unicode' of https://github.com/collinwat/clint 2012-01-16 09:15:29 -05:00
Collin Watson 3a40b682f4 Support python 3 by checking if the decode attribute exists. 2012-01-14 17:03:10 -08:00
Collin Watson 1d1bb71203 Added unicode file and input examples 2012-01-14 12:17:46 -08:00
Collin Watson b917e68837 Removed unnecessary interpolation since it's a known string 2012-01-14 12:17:29 -08:00
Kenneth Reitz 66a6148088 Merge pull request #30 from alejandrogomez/develop
Add a mill progress indicator to `progress.py`
2012-01-14 10:20:52 -08:00
Alejandro Gómez a95e803268 Add a mill progress indicator to progress.py
I've created a progress indicator that outputs a "mill" and added it to
the `progress.py` file.

Very simple stuff but its more compact than the other progress bars and
it can be useful when using long labels.
2012-01-14 19:01:23 +01:00
Collin Watson 7e1c739755 Ignore unicode strings as they are already decoded 2012-01-14 01:11:47 -08:00
Collin Watson ec46d65bd2 Added support for colored unicode 2012-01-14 00:59:44 -08:00