mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
Compare commits
6 Commits
feature/widths
...
v0.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
| dda561387c | |||
| 06af338874 | |||
| 9b91cf16b5 | |||
| ec8fe4a0b7 | |||
| dc6a9c63ea | |||
| 82d31e555f |
+17
-4
@@ -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!
|
||||
|
||||
|
||||
@@ -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
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user