Skip to main content

No project description provided

Project description

Tantipy

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

Example

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tantipy-0.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

tantipy-0.1.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page