Skip to main content

Manticore Python client

Сlient for Manticore Search.

❗ WARNING: this is a development version of the client. The latest release's readme is https://github.com/manticoresoftware/manticoresearch-python/tree/4.0.0

Requirements.

Minimum Manticore Search version is >= 2.5.1 with HTTP protocol enabled.

Manticore Search manticoresearch-python Python
dev manticoresearch-devel >= 3.4
>= 6.2.0 >= 3.3.1 >= 3.4
>= 4.2.1 >= 2.0.x >= 3.4
>= 4.0.2 < 4.2.1 >= 1.0.6 >= 3.4
>= 2.5.1 < 4.0.2 >= 1.0.5 >= 2.7

Installation & Usage

pip install

Install the manticoresearch package with pip

pip install manticoresearch-devel

Then import the package:

import manticoresearch

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import manticoresearch

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import manticoresearch
from manticoresearch import *
from manticoresearch.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://127.0.0.1:9308
# See configuration.py for a list of all supported configuration parameters.
configuration = manticoresearch.Configuration(
    host = "http://127.0.0.1:9308"
)



# Enter a context with an instance of the API client
with manticoresearch.ApiClient(configuration) as api_client:
    # Create an instance of the IndexApi API class
    api_instance = manticoresearch.IndexApi(api_client)
    body = "["'{\"insert\": {\"index\": \"test\", \"id\": 1, \"doc\": {\"title\": \"Title 1\"}}},\\n{\"insert\": {\"index\": \"test\", \"id\": 2, \"doc\": {\"title\": \"Title 2\"}}}'"]" # str | 

    try:
        # Bulk index operations
        api_response = api_instance.bulk(body)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling IndexApi->bulk: %s\n" % e)
    
    
    # Create an instance of the Search API class
    api_instance = manticoresearch.SearchApi(api_client)

    # Create SearchRequest
    search_request = SearchRequest()
    search_request.index='test'
    search_request.fullltext_filter=QueryFilter('Title 1') 
    
    # The example passes only required values which don't have defaults set
    try:
        # Perform a search
        api_response = api_instance.search(search_request)
        pprint(api_response)
    except manticoresearch.ApiException as e:
        print("Exception when calling SearchApi->search: %s\n" % e)

Documentation

Full documentation on the API Endpoints and Models used is available in docs folder as listed below.

Manticore Search server documentation: https://manual.manticoresearch.com.

Metadata

Release files for manticoresearch-devel 4.3.24041813

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manticoresearch-devel 4.3.24041813
File Size Uploaded Provenance Actions
manticoresearch-devel-4.3.24041813.tar.gz 68.1 kB Without provenance Details for manticoresearch-devel-4.3.24041813.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for manticoresearch-devel 4.3.24041813
File Interpreter ABI Platform Actions
manticoresearch_devel-4.3.24041813-py3-none-any.whl Python 3 none any Details for manticoresearch_devel-4.3.24041813-py3-none-any.whl

Total release size: 193.3 kB

Release files / manticoresearch-devel-4.3.24041813.tar.gz

Download URL manticoresearch-devel-4.3.24041813.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01b80cdebe2a095fc0261a3dee2c9e2c0d92fd543c9424305f6d9521f66dee8e
BLAKE2b-256 checksum
How to use checksums
7286e2725a8f9cc419de691c5c0cef1783a17b6639fdf839e8daaf8d160e1c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Release files / manticoresearch_devel-4.3.24041813-py3-none-any.whl

Download URL manticoresearch_devel-4.3.24041813-py3-none-any.whl
Size 125.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
139957eeb17dabcdc73714c4101f1a333c0b1576ba0194ab6a6f5736bbf22870
BLAKE2b-256 checksum
How to use checksums
f08c6d4de87493859ce8d7a8fa55a6511a8b5c228f93d210008123c35fbcce3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Security for manticoresearch-devel 4.3.24041813

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page