Python client for sonic search backend
Reason this release was yanked:
Failed
Project description
Sonic Channel
Python client for sonic search backend.
We recommend you start with the documentation.
Installation
pip install pysonic-channel
Example usage
Search channel
Note: This example requires enabling the search
feature, enabled by default.
from sonic import IngestChannel, SearchChannel, ControlChannel
querycl = SearchChannel("localhost:1491", "SecretPassword")
print(querycl.ping())
print(querycl.query("wiki", "articles", "for"))
print(querycl.query("wiki", "articles", "love"))
print(querycl.suggest("wiki", "articles", "hell"))
Ingest channel
Note: This example requires enabling the ingest
feature.
from sonic import IngestChannel, SearchChannel, ControlChannel
ingestcl = IngestChannel("localhost:1491", "SecretPassword")
print(ingestcl.ping())
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")
Control channel
Note: This example requires enabling the control
feature.
from sonic import IngestChannel, SearchChannel, ControlChannel
controlcl = ControlChannel("localhost:1491", "SecretPassword")
print(controlcl.ping())
print(controlcl.consolidate())
Available features
- default - ["search", "ingest", "control"]
- search - Add sonic search mode with methods
- ingest - Add sonic ignite mode with methods
- control - Add sonic control mode with methods
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysonic_channel-0.1.2.tar.gz
(11.1 kB
view hashes)
Built Distributions
Close
Hashes for pysonic_channel-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f3b09203b2b010107400361d7df36f3c9d13b26a32642a399bd4fc7316d5e9 |
|
MD5 | d8e1ed5f33ba283a8d1d24fb51b7cd45 |
|
BLAKE2b-256 | 368f69490ce3ad0924fca3393a6a3c3014de643ffa4d6160972d97baed44c87a |
Close
Hashes for pysonic_channel-0.1.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2f19dccbba5b602d0a60bbdefc8ecbd90edc421467dc7df9e1b8dbb9cfce36 |
|
MD5 | 4b6e3045e62fc9dafe7c8158042a2f61 |
|
BLAKE2b-256 | 13c1d141abacc63bfd17dab9e438b2b76ae04510e0d0b503ae8e694ddcfcb843 |
Close
Hashes for pysonic_channel-0.1.2-pp39-pypy39_pp73-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143f87d806d86f8f7bddbbb911cbab4a67970bd784dead24a5b86ca20ed709d7 |
|
MD5 | 22031c0d1095754ae0da70ec4c86aef3 |
|
BLAKE2b-256 | 38b25ff4b3ea2fd6a8dd17310f535d519b2bafdc8bd4d6ad0ab3d377efdb1111 |
Close
Hashes for pysonic_channel-0.1.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3381d021d8721809f8236e9b48a8e6f48d0d0a408cfbfd2f368a63d6b94add54 |
|
MD5 | dbba4f16031fe35f18cce8ed1a5e490b |
|
BLAKE2b-256 | 3d0fe51c9ac50fa3fa130c01442b213fea05dc6abb07fb64a1b8b044a16fccff |
Close
Hashes for pysonic_channel-0.1.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb889fe13b631729bb042b44a914fcc0250cd1ac1165a75ad3b350e8801b332f |
|
MD5 | 328d636c0381c0e9cf239fd85fa07af4 |
|
BLAKE2b-256 | 6d063b14992be394eb6eb7926771f5a776ec64f2805a8c273a60175928ec5110 |
Close
Hashes for pysonic_channel-0.1.2-pp38-pypy38_pp73-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7b2711402f7e9b1cce05608f9282a1a001c181e6a82a21edc1ccc871342358 |
|
MD5 | 916da633fab424425117ae59db6d0e92 |
|
BLAKE2b-256 | dbbfef5794b5d769e29e58351babde39d1009fe00260df1e6317a7c9ec27451f |
Close
Hashes for pysonic_channel-0.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ff1f539c754c9dfbf209dc59f612f9ea6e1ff0ff41ba955545eef3770cb14e1 |
|
MD5 | 5c6349ae471e85a91e9e31189759690c |
|
BLAKE2b-256 | c682fa63d4a4a5b61e30723b74cb6876efdae9242ddc1d9e66f61a1ab524649a |
Close
Hashes for pysonic_channel-0.1.2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d32141d4c846d65ef58db95bd9a0e4776da0938c5fbe989913fe7e55a5fcf9 |
|
MD5 | ee74b9140386bccbd2a8e8f4003ef698 |
|
BLAKE2b-256 | f8e7d88cb6fa6bb025e6693296001a5738e39aa6d0020e811b8232f072041e0d |
Close
Hashes for pysonic_channel-0.1.2-pp37-pypy37_pp73-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d00378aa65a24f28b7a943878141df464605020ed102ff3b6403b11fe30aaacd |
|
MD5 | 731b2484be905ebce64f57e6980dcb84 |
|
BLAKE2b-256 | 0bcce1efff7a1a2374503d9701c7f4823e0360723ba0e46af504439ee9da1059 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79469ac42525db7726f03781ddda75296926fd974c674dd78e162c07a323ed76 |
|
MD5 | 2d64e61d50f681f16c12cbb78a79585a |
|
BLAKE2b-256 | 50ca84c298551dd50fef172f16c7b63e317913dcaf2641e0f55db974af7a9893 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c1e739fdbbe69e9941979cd32e61adc98e3c53a02f087051d3ca4f3cd51c7b |
|
MD5 | 508bc8ab185204a4cbbbbd2633912337 |
|
BLAKE2b-256 | 2a0b605f808195c30fde293891e11832904c16f9b72342df095c6c4c9df862ba |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aaf74e818acbed767f5513490ffe86ec99525e332d1f06d250de220da9335c4 |
|
MD5 | 967c905b897875929d967ec16316ae94 |
|
BLAKE2b-256 | 19937afa2974750c58eae2893eecc228811d4ca2ff1352e5bafe17595b92ae44 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a4f35259cfe5b3a427e08861e0f983a7833a118e6f5c6ae7b30de46a72d1909 |
|
MD5 | 399d7b3d8ef1e6b1af741048d2dbea32 |
|
BLAKE2b-256 | e4bb912e79336be27c46ea7e926795527593e59c80ec27d176c4101b81dd52d8 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1594fac5b082ae7876fcdc56bc98445d91cad36723eb932286f2cab715854c4 |
|
MD5 | 3154821a70bb5754d66e20dcea84e6ae |
|
BLAKE2b-256 | 11fc2d9f722dd06e238cc9eac143a2eb88b46b4c9cc5af0f1d1c1c9981b4e2b2 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9234fc3527c91e3a5cd46118d13c28eed6d90303951b578d488f12f52febb56d |
|
MD5 | 6935349b27a48eb5e93a368cc270a8a8 |
|
BLAKE2b-256 | ac2d66581c0f0efa41a0e65a0a0a7b9a15e61d7cf893a1d92cb52b12e61f18bf |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca403a0961636ce77c7503951560460123787c4f17d35a883d0787e12baa67a6 |
|
MD5 | e0eef8aaf2c12975a42589ebb0dab5de |
|
BLAKE2b-256 | bbfe5f05565c4d7b36909f22502828c697e14569aef0dd203d2486b3b1ec719f |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1619e05b4dc21109b17a956e0fe92058f8b1a4b8898b4c9f935ddb3c0bd04f |
|
MD5 | e6450bfbcb750655a29e2e1168b5288c |
|
BLAKE2b-256 | ce66083f980c32d447d18343bd8604155eff88e02cb6f4a5d4f773a7e42c65bc |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cc2c200989dacd35da4835edecf34736e224ecdc2da3c5c1a862f810635a1e7 |
|
MD5 | 61a2eb7222bb4acc6d398aba3e1f4c6a |
|
BLAKE2b-256 | e14fd468e1f892b789ff329494efda4c7a254e7665310e7001b3f6dd3ec65e1b |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c836bc87f7b43098f3e4880c0df8abd42f8f056b199e653b6335a21583e4db2e |
|
MD5 | f7e21fff535696d1cbbf7f75d2af0e4e |
|
BLAKE2b-256 | 5d10ec77f57343971cb7fa9f39b1d8243f7c26b7d8dc3612869e571bd1e7beeb |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826ad3fbc2da66d283b25f823c8a79421a871b867ebcb54f5077bb15df1b463b |
|
MD5 | b63b80e91f6fe4cf20974adf2d324c61 |
|
BLAKE2b-256 | 79d6844696aa3ac92322ade88091501caf39f22a2e947bcb2cd07a0ba15d1445 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e40d9a4f11f3fc2f7f81efa2206ff5727c41a3e9c9125a5b99e6cd3b5575cbb |
|
MD5 | 5ec856798f3495f85b3e0da765ab6497 |
|
BLAKE2b-256 | 0ffb61d7b1baec846660675fea928721db367c76b6ce2d2c87a8464942446b32 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cbf123e8799c146d86b33433fa4ba03cd80f966b8bf0a5b720e9cebd5e814c |
|
MD5 | 3c96bbac00bfcbf4ff62393bac7e8200 |
|
BLAKE2b-256 | 10d3c402d5dfb9f32f60334daffd86847ee46ee3213d44ecde793671e16a1094 |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87142919711e592b4cb35b0bec530e8e8baf0d4a0d3570135754e36108b1ec13 |
|
MD5 | debf1f25502779ae08bf57bd1c66876c |
|
BLAKE2b-256 | a0a6c4be98703a0c668b12e85282d89052f584a47ca0f9f1a3797f1910ef095c |
Close
Hashes for pysonic_channel-0.1.2-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90cde5dcf51eca79f499e456c2e330985ecf0c0f17597e55f9a1e7bf11a34e8c |
|
MD5 | 8cae05497bb12b54a492c29b9c3a2426 |
|
BLAKE2b-256 | ff87914707f15840c9cf035a9f75252ce9ceaccb445910fc223bf143b80ed77e |