Skip to content

Commit 393e95c

Browse files
committed
First commit
0 parents  commit 393e95c

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

LICENSE.txt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2013 Matthew Rocklin
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
a. Redistributions of source code must retain the above copyright notice,
9+
this list of conditions and the following disclaimer.
10+
b. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
c. Neither the name of toolz nor the names of its contributors
14+
may be used to endorse or promote products derived from this software
15+
without specific prior written permission.
16+
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
28+
DAMAGE.

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Itertoolz
2+
=========
3+
4+
More tools for Python. A set of common utility functions.
5+
6+
[![Build Status](https://travis-ci.org/mrocklin/toolz.png)](https://travis-ci.org/mrocklin/toolz)
7+
8+
Author
9+
------
10+
11+
[Matthew Rocklin](http://matthewrocklin.com)
12+
13+
LICENSE
14+
-------
15+
16+
New BSD. See [License File](LICENSE.TXT).
17+
18+
Install
19+
-------
20+
21+
`toolz` is on the Python Package Index (PyPi)
22+
23+
pip install toolz
24+
25+
or
26+
27+
easy_install toolz
28+
29+
Dependencies
30+
------------
31+
32+
`toolz` supports Python 2.6+ and Python 3.2+ with a common codebase.
33+
34+
It has no dependencies outside of the standard library.
35+
36+
See Also
37+
--------
38+
39+
* [`itertoolz`](http://github.com/mrocklin/itertoolz)
40+
* [`functoolz`](http://github.com/mrocklin/functoolz)

setup.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from os.path import exists
2+
from setuptools import setup
3+
4+
setup(name='toolz',
5+
version='0.1',
6+
description='More tools',
7+
url='http://github.com/mrocklin/toolz',
8+
author='Matthew Rocklin',
9+
author_email='[email protected]',
10+
license='BSD',
11+
packages=['toolz'],
12+
install_requires=[
13+
"itertoolz >= 0.5",
14+
"functoolz >= 0.4",
15+
],
16+
long_description=open('README.md').read() if exists("README.md") else "",
17+
zip_safe=False)

toolz/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from itertoolz import (groupby, countby, frequencies,
2+
first, second, nth, take, drop, rest, last,
3+
merge_sorted, merge_dict,
4+
interleave, unique, intersection, iterable, distinct)
5+
6+
from functoolz import (remove, iterate, accumulate,
7+
memoize, curry,
8+
thread_first, thread_last)

0 commit comments

Comments
 (0)