projects
/
python-collate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Installation docs.
[python-collate.git]
/
README.txt
diff --git
a/README.txt
b/README.txt
index
35bef84
..
c1f9236
100644
(file)
--- a/
README.txt
+++ b/
README.txt
@@
-1,42
+1,5
@@
This module is unsuitable for real-world use at this time.
This module is unsuitable for real-world use at this time.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
pycollate - Collation algorithms for Python
-------------------------------------------
pycollate - Collation algorithms for Python
-------------------------------------------
@@
-55,18
+18,22
@@
pycollate also provides tools to perform word-wise and numeric sorts.
pycollate, as with all Unicode collation tools, is a work in progress.
pycollate, as with all Unicode collation tools, is a work in progress.
+Installing
+----------
+$ sudo apt-get install python-pyrex libicu-dev
+$ ./setup.py build
+$ sudo ./setup.py install
+
Example
-------
import collate
strings = file("contents.txt").read().decode("utf-8").splitlines()
strings.sort(key=collate.key)
Example
-------
import collate
strings = file("contents.txt").read().decode("utf-8").splitlines()
strings.sort(key=collate.key)
-# Equivalently but slower,
-strings.sort(cmp=collate.cmp)
License
-------
License
-------
-icu/_
ucol
.pyx:
+icu/_
icu
.pyx:
Copyright (c) 2004 Zope Corporation and Contributors.
All Rights Reserved.
Copyright (c) 2004 Zope Corporation and Contributors.
All Rights Reserved.