Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix simple typo: occurence -> occurrence #1

Open
wants to merge 209 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
aa04b3f
Add `cytoolz.utils.dev_skip_test` decorator to skip tests for dev ver…
eriknw May 2, 2014
2022459
Move `dev_skip_test` into a module in "tests/" directory.
eriknw May 3, 2014
8999c18
Bump version to '0.6.2dev'
eriknw May 3, 2014
5feb46d
clean up some unnecessary C-API usages and integer sizes
scoder May 4, 2014
049b728
Merge pull request #26 from scoder/patch-1
eriknw May 5, 2014
af3eaaf
Add test for `dev_skip_test`
eriknw May 5, 2014
c65491a
Add scoder to AUTHORS.md. Welcome to CyToolz!
eriknw May 5, 2014
57559f0
use cythonize() instead of old-style distutils hack
May 5, 2014
4cb8eb9
replace "int" usage by safer "Py_ssize_t" types to avoid unnecessary …
May 5, 2014
9ec55cc
Merge pull request #28 from scoder/cythonize
eriknw May 5, 2014
5c2690f
Merge pull request #29 from scoder/int_fixes
eriknw May 5, 2014
39b53b1
Merge pull request #27 from eriknw/authors_scoder
eriknw May 5, 2014
4df68b1
remove some unnecessary C-API usages
May 5, 2014
4fbcbd9
Merge pull request #23 from eriknw/dev_skip_test
eriknw May 6, 2014
af19b18
Merge pull request #30 from scoder/less_explicit_capi
eriknw May 26, 2014
dd2d95f
add join
mrocklin Jun 5, 2014
919a97c
split out different joins into different classes
mrocklin Jun 8, 2014
1734d7c
single join class with single __next__
mrocklin Jun 8, 2014
78f725a
remove loose __iter__
mrocklin Jun 8, 2014
5867a32
add join to __init__.pxd
mrocklin Jun 10, 2014
ce92e0b
Rename additional C bindings defined in `cytoolz.cpython`
eriknw Jun 23, 2014
b349fb8
Simplify TravisCI script, which makes travis finish faster
eriknw Jun 23, 2014
cf8d9c2
Support serialization of curry, compose, juxt, and complement objects.
eriknw Jun 24, 2014
1a47d0e
Merge pull request #34 from eriknw/rename_c_bindings
eriknw Jun 24, 2014
ac3ab64
Merge pull request #35 from eriknw/simplify_travis
eriknw Jun 24, 2014
e3d49f3
Merge pull request #36 from eriknw/serialize
eriknw Jun 24, 2014
807a442
Update `curry` and `reduceby` to match those in toolz
eriknw Jun 24, 2014
561fd1e
Use op-code constants `Py_EQ` and `Py_NE` for rich comparisons
eriknw Jun 24, 2014
6021c62
Merge pull request #37 from eriknw/update_curry_reduceby
eriknw Jun 24, 2014
915aeb2
Add `cytoolz.utils.consume` to efficiently consume iterators.
eriknw Jun 24, 2014
cd802f8
Merge pull request #38 from eriknw/utils_consume
eriknw Jun 24, 2014
33a1068
Merge branch 'master' into join
mrocklin Jun 28, 2014
993c3c6
Merge pull request #31 from mrocklin/join
eriknw Jun 28, 2014
a234e7d
groupby can accept an index or list of indices as the key
eriknw Jun 28, 2014
66f1f4c
add conda.yaml and .binstar.yml files
mrocklin Jun 29, 2014
e800a6a
Merge pull request #40 from eriknw/groupby_indices
eriknw Jun 29, 2014
899878a
reduceby and countby can accept an index or list of indices as the key
eriknw Jun 30, 2014
37ad6e8
Merge pull request #42 from eriknw/reduceby_indices
eriknw Jun 30, 2014
4df4d3a
Fixes to pass release tests. cytoolz now matches toolz.
eriknw Jun 30, 2014
2c1ac70
Merge pull request #43 from eriknw/match_toolz1
eriknw Jun 30, 2014
63b41cb
Faster join by using subclasses for each case (type of join and index…
eriknw Jul 2, 2014
5e95e2c
Merge pull request #41 from mrocklin/binstar
mrocklin Jul 2, 2014
cfdcf50
Merge pull request #44 from eriknw/faster_join
eriknw Jul 2, 2014
59c5a8b
Attempt to add Python 3.4 support
eriknw Jul 2, 2014
360e96f
Merge pull request #45 from eriknw/python3.4
eriknw Jul 2, 2014
39b99ca
Add PyToolz mailing list to README.rst
eriknw Jul 2, 2014
833070d
Bump version to 0.7.0 (which will also run release tests)
eriknw Jul 2, 2014
cc33c42
Don't test if `toolz.curried.curry` is curried.
eriknw Jul 2, 2014
9c8a063
Bump to dev version
eriknw Jul 4, 2014
55069a3
some extra C typing in functoolz.pyx
larsmans Aug 26, 2014
a520aed
binstar: add more platforms/versions
mrocklin Nov 15, 2014
3c9abd0
Merge pull request #48 from larsmans/functoolz-typing
eriknw Dec 14, 2014
0cee2ed
Add `dissoc`, `tail`, and `getter`. Cytoolz once again matches toolz…
eriknw Dec 14, 2014
d8e46c0
Merge pull request #50 from eriknw/dissoc_tail
eriknw Dec 15, 2014
e81f131
Fix `nth` for negative indexes on iterators. Needs to raise ValueError.
eriknw Dec 20, 2014
b153af3
Merge branch 'master' of github.com:pytoolz/cytoolz
eriknw Dec 20, 2014
e749d83
Add itemmap and itemfilter. Update reduceby to accept callable initi…
eriknw Dec 20, 2014
453034e
Merge pull request #51 from eriknw/itemmap_itemfilter
eriknw Dec 20, 2014
4942575
Update version (0.7.1 was just released)
eriknw Dec 20, 2014
f384194
Ship tests with code
cpcloud Dec 21, 2014
5ba0f43
Ignore build output and build.sh
cpcloud Dec 21, 2014
c25d1b3
Use package_data to ship tests
cpcloud Dec 21, 2014
696837f
No need for build.sh
cpcloud Dec 21, 2014
a53b8e8
Move to own dir
cpcloud Dec 21, 2014
0320df8
No script field
cpcloud Dec 21, 2014
de626fb
we need toolz to test
cpcloud Dec 21, 2014
395e42a
Make work with py3.x
cpcloud Dec 21, 2014
d458cd1
Need init for dev skip test
cpcloud Dec 21, 2014
c85966a
Do not include cython files
cpcloud Dec 21, 2014
e541709
Remove __init__.py
cpcloud Dec 21, 2014
b3e1422
relative import
cpcloud Dec 21, 2014
c54aaed
Add myself to authors.md
cpcloud Dec 21, 2014
c7320b4
Windoze
cpcloud Dec 21, 2014
024a03d
Replace crlf with lf for win compat in py26
cpcloud Dec 21, 2014
c250700
Need bytes for py3.x
cpcloud Dec 21, 2014
9102d67
Move out of main
cpcloud Dec 21, 2014
87611a0
Exclude py34 + win64
cpcloud Dec 21, 2014
001c2c3
no libpython on win64 and python34
cpcloud Dec 21, 2014
4dd4f92
Put win64 py34 back in
cpcloud Dec 21, 2014
6a4babc
Merge pull request #52 from cpcloud/binstar-enh
eriknw Dec 21, 2014
865330c
Use absolute imports in pyx files to support Cython 0.17 and later.
eriknw Feb 24, 2015
2784b8a
Fix merge_sorted with key function (see #55).
eriknw Mar 4, 2015
00f440e
Merge pull request #56 from eriknw/fix/merge_sorted_55
eriknw Mar 4, 2015
4dfede7
Bump version to 0.7.3dev, and include *pyx files in distributed package.
eriknw Mar 4, 2015
de43358
Make running dev tests comparing toolz to cytoolz more strict.
eriknw Mar 20, 2015
9ce40e0
Don't require nose to run tests (including dev tests).
eriknw Mar 21, 2015
87f0f39
Add topk.
eriknw Mar 22, 2015
18f7a9f
Merge pull request #58 from eriknw/stricter_dev_tests
eriknw Mar 22, 2015
b19547f
Merge pull request #59 from eriknw/topk
eriknw Mar 22, 2015
72b9c36
This is one way to fix the memory leak in #63.
eriknw Apr 23, 2015
9033ed3
Fix memory leak in curry.
eriknw Apr 25, 2015
959cd0e
Merge pull request #64 from eriknw/fix/pluck_memleak
eriknw Apr 25, 2015
19d5278
Add diff and prepare for "factory" keyword argument in dictoolz.
eriknw May 17, 2015
3585726
Add factory keyword functionality to dicttoolz.
eriknw May 23, 2015
8196cd9
Bump version to 0.7.3 in conda recipe
eriknw May 23, 2015
24c77bd
Merge pull request #65 from eriknw/update/diff_and_dict_factory
eriknw May 23, 2015
c9f6b06
Bump to next dev version. Just released 0.7.3.
eriknw May 23, 2015
92b6d30
ENH: accumulate start
Aug 1, 2015
b5e3a39
ENH: adds curried operator
Aug 1, 2015
657a167
MAINT: PY2 compat
Aug 1, 2015
9b7a6c2
MAINT: update curry
Aug 1, 2015
030493f
BUG: 2.7.10 compat kwargs
Aug 1, 2015
bee4d01
ENH: cannot be null in fully initalized state
Aug 1, 2015
4fca904
MAINT: makes the lookup faster
Aug 2, 2015
24f0499
ENH: Adds flip
Aug 2, 2015
816f3fa
MAINT: rename start -> initial
Aug 10, 2015
8e521d8
MAINT: no fancy no_default
Aug 10, 2015
41b5177
Merge pull request #67 from llllllllll/curried-op
eriknw Oct 21, 2015
ce50552
Merge pull request #66 from llllllllll/accum-start
eriknw Oct 21, 2015
de750ca
Merge pull request #68 from llllllllll/flip
eriknw Oct 21, 2015
3b1b93d
Update cytoolz to toolz 0.7.4. Release tests enabled.
eriknw Oct 21, 2015
a456c0c
update AUTHORS.md
eriknw Oct 21, 2015
a1e7739
add forgotten tests.
eriknw Oct 21, 2015
9ab2c01
oops. these weren't forgotten after all. they were old.
eriknw Oct 21, 2015
0edcfe0
update conda version and add Python 3.5 to tests
eriknw Oct 21, 2015
ec820f7
punt on python 3.5 for now
eriknw Oct 21, 2015
cf3f95f
Merge pull request #71 from eriknw/v0.7.4
eriknw Oct 21, 2015
cc91ec7
Update setup.py, because cytoolz.curried is a package now.
eriknw Oct 21, 2015
8c92e0d
typo
shearerpmm Jan 3, 2016
91d26c8
Merge pull request #72 from shearerp/patch-1
eriknw Jan 4, 2016
b769472
bump to dev version
eriknw Jan 4, 2016
41df823
Add Python 3.5 support. Fix issue where exceptions need to be cleare…
eriknw Jan 26, 2016
ab07d10
oops, missed a couple places where errors should be cleared.
eriknw Jan 27, 2016
fa0f0b5
Merge pull request #74 from eriknw/py35
eriknw Jan 27, 2016
6320049
bump version to 0.7.6dev. 0.7.5 was just released.
eriknw Jan 27, 2016
707d650
Up-to-date with toolz: assoc_in, excepts, random_sample, is_partial_a…
eriknw Apr 17, 2016
fe1ac2e
Update introspection. `toolz` is now a dependency of `cytoolz`.
eriknw May 30, 2016
df5333b
Add `toolz` as a dependency in setup.py.
eriknw May 30, 2016
c9e4fe0
Update so `cytoolz` passes release tests. Change to use setuptools.
eriknw May 30, 2016
2bfd242
Only use setuptools, 'cause it's 2016 fer cryin' out loud.
eriknw May 30, 2016
a957af7
Use `==` instead of `is` to check for no_default
jcrist Jun 1, 2016
1a7642a
Merge pull request #76 from eriknw/update_introspection
eriknw Jun 2, 2016
3c20794
Merge pull request #77 from jcrist/eq_no_default
eriknw Jun 2, 2016
1a7f33f
Bump to 0.8.0.
eriknw Jun 2, 2016
003cf6e
0.8.0 just released. Bump to next dev version.
eriknw Jun 3, 2016
6df45d2
Add a copytests command to the Makefile
jcrist Oct 3, 2016
0c37ae6
Fix bug in pluck with default
jcrist Oct 3, 2016
26cad54
Merge pull request #82 from jcrist/pluck-default
eriknw Oct 3, 2016
68140f5
Convert readthedocs links for their .org -> .io migration for hosted …
Oct 10, 2016
81a30fd
MANIFEST.in: Add the license file.
jakirkham Oct 20, 2016
0e68b69
Merge pull request #84 from jakirkham/inc_license
mrocklin Oct 21, 2016
5fe8079
Fix issue #85: declare tail in itertoolz.pxd
achidlow Oct 26, 2016
772e75d
Merge pull request #86 from achidlow/master
eriknw Oct 26, 2016
7addee7
Cython >=0.25 now uses `get_directive_defaults` instead of `directive…
eriknw Oct 31, 2016
88c65e9
Change function signature introspection tests to support Cython 0.25.
eriknw Oct 31, 2016
186ebbf
Merge pull request #83 from adamchainz/readthedocs.io
eriknw Oct 31, 2016
52711fe
Faster `merge_sorted` using binary merge.
eriknw Nov 1, 2016
1e51c4c
Merge pull request #89 from eriknw/update/cython_0.25
eriknw Nov 2, 2016
898b6f2
Merge pull request #90 from eriknw/faster_merge_sorted
eriknw Nov 2, 2016
0f54c82
Update `cytoolz` to the latest dev version of `toolz`.
eriknw Nov 3, 2016
301c1c2
Maybe fix introspection of curried cytoolz objects.
eriknw Nov 3, 2016
2195a94
Update minimum required Cython version from 0.17 to 0.20.2
eriknw Nov 3, 2016
724eeb1
More changes to match recent changes in `toolz`.
eriknw Nov 3, 2016
727c5b3
Merge pull request #91 from eriknw/update_to_toolz
eriknw Nov 3, 2016
58f3b84
Explicitly curry objects in cytoolz.curried by copying what toolz does.
eriknw Nov 4, 2016
45fc586
Merge pull request #92 from eriknw/explicit_curried
eriknw Nov 4, 2016
0c3ed9d
cytoolz would always import doctest, which is only used for testing
pitrou Dec 4, 2016
1ea589a
Put back `raises` in `cytoolz.utils`
pitrou Dec 4, 2016
4377c9d
Merge pull request #93 from pitrou/import_time
eriknw Dec 4, 2016
f15908d
Fix docstring.
eriknw Dec 5, 2016
8a25343
Skip checking signature matches toolz for memoize and flip.
eriknw Dec 5, 2016
f5e7865
Bump to next dev version, 0.8.2dev
eriknw Dec 5, 2016
c06d239
Fix serializing global curried objects. pytoolz/toolz#355
eriknw Dec 11, 2016
9634ec8
Adding `__module__` to `curry` made `curry.__signature__` break in Py…
eriknw Dec 11, 2016
7470fdd
Update badges to use svg and match what toolz does.
eriknw Dec 11, 2016
4686c37
Merge pull request #94 from eriknw/fix/curry_module
eriknw Dec 11, 2016
3a78da0
Merge pull request #95 from eriknw/update/readme_badges
eriknw Dec 11, 2016
b8f1ef6
Bump to next dev version. 0.8.2 just released.
eriknw Dec 11, 2016
6fc6fae
Add python 3.6 to the test matrix
eriknw Jan 16, 2017
fd0ae2b
Merge pull request #96 from eriknw/python3.6
eriknw Jan 16, 2017
ce207df
Make sure bare test commands succeed. #97
eriknw Feb 4, 2017
d06f814
Oups indentation.
eriknw Feb 4, 2017
e6f14cf
Fix #104. Be more careful when getting references without the Cython…
eriknw Sep 26, 2017
1d7adfc
Merge pull request #98 from eriknw/fix/ensure_easy_testing
eriknw Sep 26, 2017
bff5bc8
Don't require introspection on `__reduce_cython__` (and similar) func…
eriknw Sep 26, 2017
82832f3
Merge pull request #105 from eriknw/fix/GH104
eriknw Sep 26, 2017
f722942
BUG: add __module__ to compose
Nov 30, 2017
d4535b5
preliminary debian package work
Dec 16, 2017
ad9e553
Merge pull request #108 from llllllllll/compose-module
eriknw Dec 16, 2017
1d78e85
Fix #101. Modify how we handle curried `memoize` to make `cimport cy…
eriknw Dec 16, 2017
79ddc48
test python 3.7 in travi-ci
eriknw Dec 16, 2017
927b688
Allow tests to fail on Python 3.7-dev (for now)
eriknw Dec 16, 2017
aba113d
Merge pull request #109 from themusicgod1/master
eriknw Dec 16, 2017
33c7b18
Merge pull request #111 from eriknw/python3.7
eriknw Dec 16, 2017
e75c426
Merge pull request #110 from eriknw/fix/cimport_cytoolz
eriknw Dec 16, 2017
9f8e39d
Update README.
eriknw Dec 17, 2017
23b6250
Merge pull request #112 from eriknw/update_readme
eriknw Dec 17, 2017
301ea9e
Just released 0.9.0. Bump to next dev version, 0.9.1dev.
eriknw Dec 17, 2017
0a86add
Merge pull request #113 from eriknw/0.9.1dev
eriknw Dec 17, 2017
2831532
Update to match latest toolz
eriknw Jul 9, 2019
d1acb28
update signatures
eriknw Jul 9, 2019
162471e
add `apply` to `curried`
eriknw Jul 9, 2019
676f754
Oups
eriknw Jul 10, 2019
4142949
clean up dissoc in curried
eriknw Jul 10, 2019
24614d7
Update setup.py Python version classifiers
eriknw Jul 10, 2019
00d91e1
Merge pull request #128 from eriknw/update_2019_07_09
eriknw Jul 10, 2019
e90e13f
Fix #123 when sliding_window n was larger than the sequence
eriknw Jul 10, 2019
33e5c8b
Merge pull request #129 from eriknw/issue123_sliding_window
eriknw Jul 10, 2019
b66732f
Safely iterate over non-dict mappings. See #127
eriknw Jul 11, 2019
f0484b9
Merge pull request #130 from eriknw/safe_iter_mapping
eriknw Jul 11, 2019
da99d69
Update readme to reflect minimum Python version
eriknw Jul 11, 2019
ada3b93
Merge pull request #131 from eriknw/update_readme_2.7
eriknw Jul 11, 2019
d8852c8
Just released! Bump to next dev version: 0.10.1dev
eriknw Jul 11, 2019
7b1c0ec
Merge pull request #133 from eriknw/0.10.1dev
eriknw Jul 11, 2019
f9d4019
Test Python 3.8 (#136) and use Cython if available (#134)
eriknw Nov 3, 2019
b1b57d2
Cythonize everything if we are using Cython with a non-dev version.
eriknw Nov 3, 2019
5a8a271
Update docs with a good explanation of when we cythonize or use `*.c`…
eriknw Nov 3, 2019
04d3a7f
Merge pull request #137 from eriknw/python38
eriknw Nov 4, 2019
e6d62e5
Fix simple typo: occurence -> occurrence
timgates42 Dec 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .binstar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package: cytoolz
platform:
- linux-64
- linux-32
- osx-64
- win-64
- win-32
engine:
- python=2.6
- python=2.7
- python=3.3
- python=3.4
script:
- conda build conda.recipe
build_targets:
files: conda
channels: main
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
*.pyc
*.swp
*.so
*.pyd
build/
dist/
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"

env:
- WITH_CYTHON=true
- WITH_CYTHON=false
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"

before_install:
- pip install git+https://github.com/pytoolz/toolz.git
- pip install cython
- pip install cython pytest

install:
# *.c files aren't in the repo, so we must always create them
- python setup.py build_ext --inplace --with-cython
- if [[ $WITH_CYTHON == 'false' ]]; then
- rm cytoolz/*.so
- python setup.py build_ext --inplace --without-cython
- fi

# commands to run tests
script:
- nosetests --with-doctest cytoolz
# For convenience, make sure simple test commands work
- py.test
- nosetests
# Make sure we can cimport cytoolz
- echo 'cimport cytoolz ; from cytoolz.functoolz cimport memoize' > try_cimport_cytoolz.pyx
- cythonize -i try_cimport_cytoolz.pyx
- python -c 'import try_cimport_cytoolz'

notifications:
email: false
6 changes: 6 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ Erik Welch [@eriknw](https://github.com/eri
Lars Buitinck [@larsmans](http://github.com/larsmans)

[Thouis (Ray) Jones](http://people.seas.harvard.edu/~thouis) [@thouis](https://github.com/thouis/)

scoder [@scoder](https://github.com/scoder/)

Phillip Cloud [@cpcloud](https://github.com/cpcloud)

Joe Jevnik [@llllllllll](https://github.com/llllllllll)
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include LICENSE.txt

include cytoolz/tests/*.py
29 changes: 28 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
SHELL= /bin/bash
PYTHON ?= python

inplace:
$(PYTHON) setup.py build_ext --inplace
$(PYTHON) setup.py build_ext --inplace --cython

test: inplace
nosetests -s --with-doctest cytoolz/
echo 'cimport cytoolz ; from cytoolz.functoolz cimport memoize' > try_cimport_cytoolz.pyx
cythonize -i try_cimport_cytoolz.pyx
python -c 'import try_cimport_cytoolz'
rm try_cimport_cytoolz.*

clean:
rm -f cytoolz/*.c cytoolz/*.so cytoolz/*/*.c cytoolz/*/*.so
rm -rf build/ cytoolz/__pycache__/ cytoolz/*/__pycache__/

curried:
sed -e 's/toolz/cytoolz/g' -e 's/itercytoolz/itertoolz/' \
-e 's/dictcytoolz/dicttoolz/g' -e 's/funccytoolz/functoolz/g' \
../toolz/toolz/curried/__init__.py > cytoolz/curried/__init__.py

copytests:
for f in ../toolz/toolz/tests/test*py; \
do \
if [[ $$f == *test_utils* ]]; then continue ; fi; \
if [[ $$f == *test_curried_doctests* ]]; then continue ; fi; \
if [[ $$f == *test_tlz* ]]; then continue ; fi; \
newf=`echo $$f | sed 's/...toolz.toolz/cytoolz/g'`; \
sed -e 's/toolz/cytoolz/g' -e 's/itercytoolz/itertoolz/' \
-e 's/dictcytoolz/dicttoolz/g' -e 's/funccytoolz/functoolz/g' \
$$f > $$newf; \
echo $$f $$newf; \
done
24 changes: 14 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CyToolz
=======

|Build Status| |Version Status| |Downloads|
|Build Status| |Version Status|

Cython implementation of the
|literal toolz|_ `package, <https://pypi.python.org/pypi/toolz/>`__ which
Expand All @@ -20,14 +20,14 @@ usage is achieved by using the iterator protocol and returning iterators
whenever possible.

``cytoolz`` implements the same API as ``toolz``. The main differences are
that ``cytoolz`` is faster (typically 2-5x faster with a few spectactular
that ``cytoolz`` is faster (typically 2-5x faster with a few spectacular
exceptions) and ``cytoolz`` offers a C API that is accessible to other
projects developed in Cython. Since ``toolz`` is able to process very
large (potentially infinite) data sets, the performance increase gained by
using ``cytoolz`` can be significant.

See the PyToolz documentation at http://toolz.readthedocs.org and the full
`API Documentation <http://toolz.readthedocs.org/en/latest/api.html>`__
See the PyToolz documentation at https://toolz.readthedocs.io and the full
`API Documentation <https://toolz.readthedocs.io/en/latest/api.html>`__
for more details.

LICENSE
Expand All @@ -48,7 +48,7 @@ Install
Dependencies
------------

``cytoolz`` supports Python 2.6+ and Python 3.2+ with a common codebase.
``cytoolz`` supports Python 2.7+ and Python 3.4+ with a common codebase.
It is developed in Cython, but requires no dependecies other than CPython
and a C compiler. Like ``toolz``, it is a light weight dependency.

Expand All @@ -66,9 +66,13 @@ Please take a look at our issue pages for
`cytoolz <https://github.com/pytoolz/cytoolz/issues>`__
for contribution ideas.

.. |Build Status| image:: https://travis-ci.org/pytoolz/cytoolz.png
Community
---------

See our `mailing list <https://groups.google.com/forum/#!forum/pytoolz>`__.
We're friendly.

.. |Build Status| image:: https://travis-ci.org/pytoolz/cytoolz.svg?branch=master
:target: https://travis-ci.org/pytoolz/cytoolz
.. |Version Status| image:: https://pypip.in/v/cytoolz/badge.png
:target: https://pypi.python.org/pypi/cytoolz/
.. |Downloads| image:: https://pypip.in/d/cytoolz/badge.png
:target: https://pypi.python.org/pypi/cytoolz/
.. |Version Status| image:: https://badge.fury.io/py/cytoolz.svg
:target: http://badge.fury.io/py/cytoolz
2 changes: 2 additions & 0 deletions conda.recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd %RECIPE_DIR%\..
%PYTHON% setup.py install
2 changes: 2 additions & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd $RECIPE_DIR/..
$PYTHON setup.py install
32 changes: 32 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
name: cytoolz
version: "0.10.0"

build:
number: {{environ.get('BINSTAR_BUILD', 1)}}

requirements:
build:
- setuptools
- python
- cython
- toolz
- libpython # [win and not (win64 and py34)]

run:
- python
- libpython # [win and not (win64 and py34)]

test:
requires:
- pytest
- nose
- toolz
imports:
- cytoolz
commands:
- py.test -x --doctest-modules --pyargs cytoolz

about:
home: https://toolz.readthedocs.io/
license: BSD
11 changes: 6 additions & 5 deletions cytoolz/__init__.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ from cytoolz.itertoolz cimport (
accumulate, c_merge_sorted, cons, count, drop, get, groupby, first,
frequencies, interleave, interpose, isdistinct, isiterable, iterate,
last, mapcat, nth, partition, partition_all, pluck, reduceby, remove,
rest, second, sliding_window, take, take_nth, unique)
rest, second, sliding_window, take, tail, take_nth, unique, join,
c_diff, topk, peek, random_sample, concat)


from cytoolz.functoolz cimport (
c_compose, c_juxt, c_memoize, c_pipe, c_thread_first, c_thread_last,
complement, curry, do, identity, memoize)
c_compose, c_juxt, memoize, c_pipe, c_thread_first, c_thread_last,
complement, curry, do, identity, excepts, flip)


from cytoolz.dicttoolz cimport (
assoc, c_merge, c_merge_with, get_in, keyfilter, keymap, update_in,
valfilter, valmap)
assoc, c_merge, c_merge_with, c_dissoc, get_in, keyfilter, keymap,
itemfilter, itemmap, update_in, valfilter, valmap, assoc_in)


from cytoolz.recipes cimport countby, partitionby
10 changes: 8 additions & 2 deletions cytoolz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@

from .compatibility import map, filter

# from . import sandbox

from functools import partial, reduce

sorted = sorted

# Aliases
comp = compose

# Always-curried functions
flip = functoolz.flip = curry(functoolz.flip)
memoize = functoolz.memoize = curry(functoolz.memoize)

from . import curried # sandbox

functoolz._sigs.update_signature_registry()

from ._version import __version__, __toolz_version__
Loading