All Projects → xmonader → python-sonic-client

xmonader / python-sonic-client

Licence: MIT license
sonic search backend client in python

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to python-sonic-client

eyy-indexer
An image and video friendly directory indexer for web directories.
Stars: ✭ 53 (+17.78%)
Mutual labels:  index
bigdata-tech-index
Big Data Technology Index
Stars: ✭ 24 (-46.67%)
Mutual labels:  index
concentrationMetrics
A python library for the computation of various concentration, inequality and diversity indices
Stars: ✭ 26 (-42.22%)
Mutual labels:  index
Sonic-1-2-2013-Decompilation
Sonic 1/2 (2013) Decompilation for New 3DS
Stars: ✭ 41 (-8.89%)
Mutual labels:  sonic
sonix
An Elixir client for Sonic Search
Stars: ✭ 56 (+24.44%)
Mutual labels:  sonic
kdtree-rs
K-dimensional tree in Rust for fast geospatial indexing and lookup
Stars: ✭ 137 (+204.44%)
Mutual labels:  index
scan
DeFi Scan, everything one-stop location for DeFi Blockchain. Powered by jellyfish & ocean network.
Stars: ✭ 31 (-31.11%)
Mutual labels:  index
SQLFlow
SQLFlow is a bridge that connects a SQL engine, e.g. MySQL, Hive, SparkSQL or SQL Server, with TensorFlow and other machine learning toolkits. SQLFlow extends the SQL language to enable model training, prediction and inference.
Stars: ✭ 72 (+60%)
Mutual labels:  index
index shotgun
duplicate index checker 🔥 🔫 👮
Stars: ✭ 35 (-22.22%)
Mutual labels:  index
dice-coefficient
Sørensen–Dice coefficient
Stars: ✭ 37 (-17.78%)
Mutual labels:  index
NasdaqCloudDataService-SDK-Java
Nasdaq Data Link provides a modern and efficient method of delivery for real-time exchange data and other financial information. This repository provides a Java SDK for developing applications using Nasdaq Data Link's real-time data.
Stars: ✭ 70 (+55.56%)
Mutual labels:  index
luke
Please use the luke bundled with lucene! This repo is archived and frozen now.
Stars: ✭ 101 (+124.44%)
Mutual labels:  index
indexd
An external bitcoind index management service module
Stars: ✭ 50 (+11.11%)
Mutual labels:  index
auctus
Dataset search engine, discovering data from a variety of sources, profiling it, and allowing advanced queries on the index
Stars: ✭ 34 (-24.44%)
Mutual labels:  index
sonic-gms2
A GameMaker Studio 2 template project used for constructing games based on the Sonic the Hedgehog series.
Stars: ✭ 18 (-60%)
Mutual labels:  sonic
poly-commit
A Rust library for polynomial commitments
Stars: ✭ 170 (+277.78%)
Mutual labels:  sonic
tex-course-index-template
A template for writing a condensed course index leveraging LaTeX indexing
Stars: ✭ 30 (-33.33%)
Mutual labels:  index
pufferfish
An efficient index for the colored, compacted, de Bruijn graph
Stars: ✭ 94 (+108.89%)
Mutual labels:  index
index
The frontend, editor panel, and API of TheIndex.moe
Stars: ✭ 123 (+173.33%)
Mutual labels:  index
indexList
微信小程序字母索引
Stars: ✭ 45 (+0%)
Mutual labels:  index

python-sonic-client

Python client for sonic search backend.

Install

pip install sonic-client

Examples

Ingest

from sonic import IngestClient

with IngestClient("127.0.0.1", 1491, "password") as ingestcl:
    print(ingestcl.ping())
    print(ingestcl.protocol)
    print(ingestcl.bufsize)
    ingestcl.push("wiki", "articles", "article-1", "for the love of god hell")
    ingestcl.push("wiki", "articles", "article-2", "for the love of satan heaven")
    ingestcl.push("wiki", "articles", "article-3", "for the love of lorde hello")
    ingestcl.push("wiki", "articles", "article-4", "for the god of loaf helmet")

Search

from sonic import SearchClient

with SearchClient("127.0.0.1", 1491, "password") as querycl:
    print(querycl.ping())
    print(querycl.query("wiki", "articles", "for"))
    print(querycl.query("wiki", "articles", "love"))
    print(querycl.suggest("wiki", "articles", "hell"))

Control

from sonic import ControlClient

with ControlClient("127.0.0.1", 1491, "password") as controlcl:
    print(controlcl.ping())
    controlcl.trigger("consolidate")

API reference

API documentation can be found at docs/api and also Browsable

Difference from asonic

asonic uses asyncio and this client doesn't. It grew out of needing to use sonic within gevent context

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].