Changeset 131:9f4885429b5b
- Timestamp:
- 06/21/07 10:11:55 (15 months ago)
- Author:
- Tarek Ziad?? <tarek@…>
- Message:
-
fixes
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r128
|
r131
|
|
| 1 | | from neighbours import compute |
| | 1 | from neighbours import compute, get |
| 2 | 2 | |
| 3 | 3 | if __name__ == '__main__': |
-
|
r129
|
r131
|
|
| 12 | 12 | >>> from neighbours import get |
| 13 | 13 | >>> get('tarek') |
| 14 | | [(0.04..., 'robert'), (0.04..., 'test')] |
| | 14 | [(0.56..., 'robert'), (0.56..., 'test')] |
| 15 | 15 | |
-
|
r125
|
r131
|
|
| 8 | 8 | curdir = os.path.realpath(curdir) |
| 9 | 9 | |
| 10 | | sql_db = create_engine('mysql://chainon:chainon@localhost/chainon') |
| | 10 | sql_db = create_engine('postgres://chainon:chainon@localhost/chainon') |
| 11 | 11 | metadata = BoundMetaData(sql_db) |
| 12 | 12 | |