Python client for sonic search backend
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339822fc61627f4b8d6c75b0dc7581260e8991a5a51cd2462700b97d6f0fe2f2 |
|
MD5 | 21965dcf7bd1130908a0204003e89fa8 |
|
BLAKE2b-256 | f188e818eb11ce815fcb6f4ddef5129758562d4dbf824acefae1b8b18965e5a3 |
Close
Hashes for pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66084ee96024c3137c44385833409c3de62dbb7c18cd6d80018810740114522e |
|
MD5 | 5dbc3db95e59961b1c35485ba01e434f |
|
BLAKE2b-256 | c66c92dba60fe1263ef690c98059dbb58bcaf38f0a50eef2fb17dd70bcf047df |
Close
Hashes for pysonic_channel-0.1.1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d006b8c72eb16e513ffdbb367699660f30a710ea4c7c83be5ecd9d2fe71f7e |
|
MD5 | f7ed9013f821d17c1e66b0e1505c54ef |
|
BLAKE2b-256 | 8961432faa32a7829b602e3a76a090cb64b9a7036f87a215b373635d94dc4912 |
Close
Hashes for pysonic_channel-0.1.1-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d8910f6d0f57a1fabe6119bdbe9e90c14b4c804429eea4d5873b1c052a8bc6 |
|
MD5 | e532915adfa9223e9e4a5255cff03964 |
|
BLAKE2b-256 | c43f2ff7dd4d4eb3c7b8a4a27236563b9dee3bb779268b0a9267817824acb6ac |
Close
Hashes for pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d308fd189fb0733d5ca2f1522c24da3a45faff88d261279da62d024e8bea6aeb |
|
MD5 | f33fe96133c926b877ff675f4ddb35e0 |
|
BLAKE2b-256 | 1154c48d3f7c1ad09f7b217a61892eb986da38751f0ef95704e54be061a61304 |
Close
Hashes for pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61076d58f4c8a9ac40e89a4a8788c7c028e04dae416a04f7e69ba4126b2e022 |
|
MD5 | 7a787c96bc70d7d7bedeefeef16772b7 |
|
BLAKE2b-256 | e6fdfc0c88dd18b7fdecdf7f210b18645d51169cb7961176f21617dcc513dcf8 |
Close
Hashes for pysonic_channel-0.1.1-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fadc5d78caecea568f1729d093a489ed93cb7b90fe633ac0512e2947539b9e6b |
|
MD5 | 1bf963c27fa8ed9b1ff67d81e10fded1 |
|
BLAKE2b-256 | 84dcdfe7cb8df86518dcc4e2a6e54f6f75336fbdeca04b7213f1680bd7b73cbb |
Close
Hashes for pysonic_channel-0.1.1-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ae340561099b7edb06ef68bac943420b0a35e7b1c1b4128e4d7ebd56b87ba5 |
|
MD5 | fcd0e2233005c4332cebf0e04232ecbe |
|
BLAKE2b-256 | 9e683faf372e67a0584641a73c0a3fb8a7dc1745844caaaa79d60e662b717795 |
Close
Hashes for pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3d4ec802f31c3cc6b69c059f29fe0757bd200f4f70d97c074b127a23bc47d3b |
|
MD5 | b378941a68c77850ac69d62cfd2bbb13 |
|
BLAKE2b-256 | 9a6fd7050b21fa1d3fa77cb2348bea51545a1eca5b9c00181f0eda109e554f56 |
Close
Hashes for pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e76e08273ae3861270fb938b43560e463b25d1e7ab7feab8c089962141a9e84 |
|
MD5 | 7bc91a578041d3d125466f88c38b9d15 |
|
BLAKE2b-256 | b016d34546c18a90eef51d57503002ade464c0e93fbd5cb2286807ba0e4e8872 |
Close
Hashes for pysonic_channel-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63082930612747d1bc7eeb409c7cd1e2f200b8dd123cf35fb785b9d4a6bc54c3 |
|
MD5 | f8da0e20dc6f122b3a92f8d446fcaef5 |
|
BLAKE2b-256 | 2d9968c197665d570f5337f263e2301e8568acfce572f7ea3136e69b9040e27e |
Close
Hashes for pysonic_channel-0.1.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26c8de69c3729d1ebd3935c7861757481c66c5deff619a87b7063417c3004aa |
|
MD5 | 981528e58c20c3d57106546ff702644d |
|
BLAKE2b-256 | f26dfbe1b40acac2a9ff053156d3cfafe8877c9ecd6781ab6c37bee8db5f6ef7 |
Close
Hashes for pysonic_channel-0.1.1-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b1f9fba831ec1420cb3b83924509882ec996faf452c5ab83e154ad42c20469 |
|
MD5 | 7068717b08d1f65cbf0f094e19c0a223 |
|
BLAKE2b-256 | ce90d97bcb7ee667cbff0e32405513d88a69567d1bac9e1187b8f3a0d869aa1c |
Close
Hashes for pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039b9e5698486b419a74683572e1aeffc59743db746e391ac71cb9c57661a104 |
|
MD5 | 072f83b04d2a1b754134a0abaf95064f |
|
BLAKE2b-256 | 70296eb9146857083c2294d87e89858cbd404aabd2ad24fbac9c4cf3e51c7abc |
Close
Hashes for pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea9f5ffb970791554e740fc478978588e2f8c2bcf39407a8e2f502f81a31428 |
|
MD5 | a4e8b0226a69634ffbbda1c3313f0817 |
|
BLAKE2b-256 | b9b33ce2b0030e62b6a9f018b2bb69540b4c1e9e1fbba37de521c0de2a554cc9 |
Close
Hashes for pysonic_channel-0.1.1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c214c0d23522f66f36b4ffb4ec531f42b1f202d7eef7870e5707fc6285ad9e62 |
|
MD5 | 528ff9a8e77472fb228c7f486449027b |
|
BLAKE2b-256 | 80210b718c7f723288f47ce364a7404a6db730486bffb3c8d12d15d942afa97a |
Close
Hashes for pysonic_channel-0.1.1-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dec70d524ce5bab6c6333b0af4fa129f345d4953471acf987994dcd186521f73 |
|
MD5 | 37c990cab4ef7e490f246f3671aec814 |
|
BLAKE2b-256 | 7d948b886e3d2cd9eb1a55fe30f9ff6d2cd0982bb5982ef1777e3d82a2cb6880 |
Close
Hashes for pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21731866af9b4a94742e914974137da438b3aa6b7e8272e66c0caa433fb00ac7 |
|
MD5 | 44c07f1d8b682e87d6a017055c770143 |
|
BLAKE2b-256 | 858feb0eee4e0d9dda161198711fff604c33db7efc7a7d2503c9dd031ca52e33 |
Close
Hashes for pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198d9d103e53b2225517dbd26f456b53ff95fd70ece0b99fd8130f1c1ce979ad |
|
MD5 | bc92ef1beee0fbd63724397b7c5b63c3 |
|
BLAKE2b-256 | c77640f5c58cb95f8b626ba82cf543ee5b766686a8a94903464f0e3e8f212503 |
Close
Hashes for pysonic_channel-0.1.1-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5485f6a5c48d76e776fe4fbc9f4fadd3c5f368ff51a08ac2b10862085a75a9 |
|
MD5 | 83105e839c9d720a62e6bdfa1520fe62 |
|
BLAKE2b-256 | 80d068b50054e91051fde4a26fe6c3c405350dd81cdb5b50e9a00c3df4e02d63 |
Close
Hashes for pysonic_channel-0.1.1-cp36-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a97c72c457f0912e2c3e8df643744c6732b130ff397025e7a2c6c77ff0c8a3 |
|
MD5 | 8c4ba76a463d7ce1d3dca720d7cc6574 |
|
BLAKE2b-256 | 7b1be85b0ff1a4446a4b0088c02259494c38a3503bdb722d1022ff6943df1945 |
Close
Hashes for pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0aa8d257a3a338901562ee300bb2795f8d07ccbba62bf1e818458e625908459 |
|
MD5 | 42aea59e6497b9ef2498c1c738e5d94f |
|
BLAKE2b-256 | ae9a13c7f1b5c457cab2d3511d701c7d5fc122d952636b737e023eb274fd2b70 |
Close
Hashes for pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf38428ad126468817af94e7703b5b3b4ef33f61f6c40cf337d1c12d2fb37499 |
|
MD5 | 8d69c598ba5c3022bd4191625212f93e |
|
BLAKE2b-256 | 322a5c6c410a9dce4f67ae636133d8dfdfd5f51d9af4365e71b451a86aa21412 |