Text retrieval and analytics engine.
Caterpillar is a pure python text indexing and analytics library. Some features include:
Quick example of using caterpillar below:
import os import tempfile from caterpillar.processing.index import IndexWriter, IndexConfig from caterpillar.processing.schema import TEXT, Schema, NUMERIC from caterpillar.storage.sqlite import SqliteStorage index_dir = os.path.join(tempfile.mkdtemp(), "examples") with open('caterpillar/test_resources/moby.txt', 'r') as f: data = f.read() with IndexWriter(index_dir, IndexConfig(SqliteStorage, Schema(text=TEXT, some_number=NUMERIC))) as writer: writer.add_document(text=data, some_number=1)
pip install caterpillar
The documentation can be found here.
We are working on porting our issues from our internal issue tracker over to a more visible system. But, for the time being, here is a general roadmap:
The current plan is to move to using GitHub issues with HuBoard, but stay tuned.
Currently Python 2.7+ only. Work is underway to support Python 3+. WARNING: Caterpillar might become Python 3+ only in the future. Stay tuned.
Anyone who is willing! In other words none yet, but we are more then accepting of contributions.
Not code will be merged unless it has 100% test coverage and passes pep8. We code with a line length of 120 characters (see tox.ini [pep8] section) and we use py.test for testing. Tests are in a test sub-folder in each package. We generally run coverage as follows:
coverage erase; coverage run --source caterpillar -m py.test -v caterpillar; coverage report
Caterpillar is copyright © 2013 - 2015 Kapiche Limited. It is licensed under the GNU Affero General Public License.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The copyright holders grant you an additional permission under Section 7 of the GNU Affero General Public License, version 3, exempting you from the requirement in Section 6 of the GNU General Public License, version 3, to accompany Corresponding Source with Installation Information for the Program or any work based on the Program. You are still required to comply with all other Section 6 requirements to provide Corresponding Source.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|caterpillar-1.0.0.dev17-py2-none-any.whl (79.6 kB) Copy SHA256 Checksum SHA256||py2||Wheel||Mar 20, 2017|
|caterpillar-1.0.0.dev17.tar.gz (59.5 kB) Copy SHA256 Checksum SHA256||–||Source||Mar 20, 2017|