6 Commits

Author SHA1 Message Date
star:Kenneth Reitz dda561387c RELASE v0.2.0 2011-03-23 08:52:41 -04:00
star:Kenneth Reitz 06af338874 back to regular adding (thanks to clean()) 2011-03-23 08:43:57 -04:00
star:Kenneth Reitz 9b91cf16b5 v0.2.0 2011-03-23 06:45:01 -04:00
star:Kenneth Reitz ec8fe4a0b7 Added appdirs license 2011-03-23 06:44:56 -04:00
star:Kenneth Reitz dc6a9c63ea prepping for 0.2.0 release 2011-03-23 06:40:38 -04:00
star:Kenneth Reitz 82d31e555f Merge branch 'feature/widths' 2011-03-23 06:35:33 -04:00
8 changed files with 53 additions and 14 deletions
+17 -4
View File
@@ -1,10 +1,21 @@
History
-------
0.1.0 (2011-03-20)
0.2.0 (2011-03-23)
++++++++++++++++++
* Initial Release!
* Column Printing!!!
* (Auto/Manual) Disabling of Colors
* Smarter Colors
* max_width, min_width
* Strip cli colors
* bug fixes
0.1.2 (2011-03-21)
++++++++++++++++++
* Bugfixes
0.1.1 (2011-03-20)
@@ -16,7 +27,9 @@ History
* Lots of Examples
0.1.2 (2011-03-21)
0.1.0 (2011-03-20)
++++++++++++++++++
* Bugfixes
* Initial Release!
+28 -1
View File
@@ -1,4 +1,4 @@
Clint includes some vendorized python libraries: appdirs, colorama, ordereddict.
Clint includes some vendorized python libraries: appdirs, applib, colorama, ordereddict.
AppDirs License
===============
@@ -25,6 +25,33 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AppLib License (console width detection functions are from this library)
==============
# This is the MIT license
# Copyright (c) 2010 ActiveState Software Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Colorama License
================
+2 -2
View File
@@ -19,8 +19,8 @@ from .pipes import piped_in
__title__ = 'clint'
__version__ = '0.1.2'
__build__ = 0x000102
__version__ = '0.2.0'
__build__ = 0x000200
__author__ = 'Kenneth Reitz'
__license__ = 'ISC'
__copyright__ = 'Copyright 2011 Kenneth Reitz'
+2 -4
View File
@@ -58,12 +58,10 @@ class ColoredString(object):
return self.color_str
def __add__(self, other):
self.s += other
return self
return str(self.color_str) + str(other)
def __radd__(self, other):
self.s = other + self.s
return self
return str(other) + str(self.color_str)
def __mul__(self, other):
return (self.color_str * other)
+2 -1
View File
@@ -15,10 +15,11 @@ import sys
from .progress import progressbar
from .formatters import max_width, min_width
from .cols import columns
from ..utils import tsplit
__all__ = ('puts', 'puts_err', 'indent', 'progressbar', 'max_width', 'min_width')
__all__ = ('puts', 'puts_err', 'indent', 'progressbar', 'columns', 'max_width', 'min_width')
STDOUT = sys.stdout.write
+1 -1
View File
@@ -7,7 +7,7 @@ import os
sys.path.insert(0, os.path.abspath('..'))
from clint.textui import puts, colored
from clint.textui.columns import columns
from clint.textui import columns
lorem = 'Lorem ipsum dolor sit amet, consehdfhdfhdfhdfhdfhctetur adi pisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+1 -1
View File
@@ -19,7 +19,7 @@ required = []
setup(
name='clint',
version='0.1.2',
version='0.2.0',
description='Python Command-line Application Tools',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),