Metadata-Version: 2.1
Name: tantipy
Version: 0.14.0.dev0
Summary: UNKNOWN
Home-page: https://github.com/izihawa/tantipy
Author: Pasha Podolsky
License: MIT
Platform: UNKNOWN
Classifier: Topic :: Database :: Database Engines/Servers
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: brotli (>=1.0.9)
Requires-Dist: izihawa-types (>=0.1.0)

# Tantipy

Tantipy is a pure python tool for reading Tantivy `.store` files.

## Example

```python
import json
import os

from tantipy import TantivyReader


index_path = '...'
with open(os.path.join(index_path, 'meta.json')) as schema_file:
    schema = json.load(schema_file)['schema']

with open(os.path.join(index_path, '687e95d2e6f54a3cb1008e69ebbebdd9.store')) as store_file:
    content = store_file.read()
    tantivy_reader = TantivyReader(content, schema)
    for document in tantivy_reader.documents():
        print(document)
```

