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
Metadata
Release files for pysonic-channel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 22.7 MB
Release files / pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Linux glibc 2.5+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
339822fc61627f4b8d6c75b0dc7581260e8991a5a51cd2462700b97d6f0fe2f2
|
|
BLAKE2b-256 checksum How to use checksums |
f188e818eb11ce815fcb6f4ddef5129758562d4dbf824acefae1b8b18965e5a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Linux glibc 2.5+ x86-32 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
66084ee96024c3137c44385833409c3de62dbb7c18cd6d80018810740114522e
|
|
BLAKE2b-256 checksum How to use checksums |
c66c92dba60fe1263ef690c98059dbb58bcaf38f0a50eef2fb17dd70bcf047df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp310-none-win_amd64.whl
| Download URL | pysonic_channel-0.1.1-cp310-none-win_amd64.whl |
|---|---|
| Size | 501.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
20d006b8c72eb16e513ffdbb367699660f30a710ea4c7c83be5ecd9d2fe71f7e
|
|
BLAKE2b-256 checksum How to use checksums |
8961432faa32a7829b602e3a76a090cb64b9a7036f87a215b373635d94dc4912
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp310-none-win32.whl
| Download URL | pysonic_channel-0.1.1-cp310-none-win32.whl |
|---|---|
| Size | 445.7 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
c8d8910f6d0f57a1fabe6119bdbe9e90c14b4c804429eea4d5873b1c052a8bc6
|
|
BLAKE2b-256 checksum How to use checksums |
c43f2ff7dd4d4eb3c7b8a4a27236563b9dee3bb779268b0a9267817824acb6ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d308fd189fb0733d5ca2f1522c24da3a45faff88d261279da62d024e8bea6aeb
|
|
BLAKE2b-256 checksum How to use checksums |
1154c48d3f7c1ad09f7b217a61892eb986da38751f0ef95704e54be061a61304
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
a61076d58f4c8a9ac40e89a4a8788c7c028e04dae416a04f7e69ba4126b2e022
|
|
BLAKE2b-256 checksum How to use checksums |
e6fdfc0c88dd18b7fdecdf7f210b18645d51169cb7961176f21617dcc513dcf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp39-none-win_amd64.whl
| Download URL | pysonic_channel-0.1.1-cp39-none-win_amd64.whl |
|---|---|
| Size | 500.9 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fadc5d78caecea568f1729d093a489ed93cb7b90fe633ac0512e2947539b9e6b
|
|
BLAKE2b-256 checksum How to use checksums |
84dcdfe7cb8df86518dcc4e2a6e54f6f75336fbdeca04b7213f1680bd7b73cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp39-none-win32.whl
| Download URL | pysonic_channel-0.1.1-cp39-none-win32.whl |
|---|---|
| Size | 445.7 kB |
| Tags | CPython 3.9 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a3ae340561099b7edb06ef68bac943420b0a35e7b1c1b4128e4d7ebd56b87ba5
|
|
BLAKE2b-256 checksum How to use checksums |
9e683faf372e67a0584641a73c0a3fb8a7dc1745844caaaa79d60e662b717795
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f3d4ec802f31c3cc6b69c059f29fe0757bd200f4f70d97c074b127a23bc47d3b
|
|
BLAKE2b-256 checksum How to use checksums |
9a6fd7050b21fa1d3fa77cb2348bea51545a1eca5b9c00181f0eda109e554f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
0e76e08273ae3861270fb938b43560e463b25d1e7ab7feab8c089962141a9e84
|
|
BLAKE2b-256 checksum How to use checksums |
b016d34546c18a90eef51d57503002ade464c0e93fbd5cb2286807ba0e4e8872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl |
|---|---|
| Size | 637.2 kB |
| Tags | CPython 3.9 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
63082930612747d1bc7eeb409c7cd1e2f200b8dd123cf35fb785b9d4a6bc54c3
|
|
BLAKE2b-256 checksum How to use checksums |
2d9968c197665d570f5337f263e2301e8568acfce572f7ea3136e69b9040e27e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp38-none-win_amd64.whl
| Download URL | pysonic_channel-0.1.1-cp38-none-win_amd64.whl |
|---|---|
| Size | 501.3 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a26c8de69c3729d1ebd3935c7861757481c66c5deff619a87b7063417c3004aa
|
|
BLAKE2b-256 checksum How to use checksums |
f26dfbe1b40acac2a9ff053156d3cfafe8877c9ecd6781ab6c37bee8db5f6ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp38-none-win32.whl
| Download URL | pysonic_channel-0.1.1-cp38-none-win32.whl |
|---|---|
| Size | 446.0 kB |
| Tags | CPython 3.8 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f2b1f9fba831ec1420cb3b83924509882ec996faf452c5ab83e154ad42c20469
|
|
BLAKE2b-256 checksum How to use checksums |
ce90d97bcb7ee667cbff0e32405513d88a69567d1bac9e1187b8f3a0d869aa1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
039b9e5698486b419a74683572e1aeffc59743db746e391ac71cb9c57661a104
|
|
BLAKE2b-256 checksum How to use checksums |
70296eb9146857083c2294d87e89858cbd404aabd2ad24fbac9c4cf3e51c7abc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
4ea9f5ffb970791554e740fc478978588e2f8c2bcf39407a8e2f502f81a31428
|
|
BLAKE2b-256 checksum How to use checksums |
b9b33ce2b0030e62b6a9f018b2bb69540b4c1e9e1fbba37de521c0de2a554cc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp37-none-win_amd64.whl
| Download URL | pysonic_channel-0.1.1-cp37-none-win_amd64.whl |
|---|---|
| Size | 501.6 kB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c214c0d23522f66f36b4ffb4ec531f42b1f202d7eef7870e5707fc6285ad9e62
|
|
BLAKE2b-256 checksum How to use checksums |
80210b718c7f723288f47ce364a7404a6db730486bffb3c8d12d15d942afa97a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp37-none-win32.whl
| Download URL | pysonic_channel-0.1.1-cp37-none-win32.whl |
|---|---|
| Size | 445.9 kB |
| Tags | CPython 3.7 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
dec70d524ce5bab6c6333b0af4fa129f345d4953471acf987994dcd186521f73
|
|
BLAKE2b-256 checksum How to use checksums |
7d948b886e3d2cd9eb1a55fe30f9ff6d2cd0982bb5982ef1777e3d82a2cb6880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
21731866af9b4a94742e914974137da438b3aa6b7e8272e66c0caa433fb00ac7
|
|
BLAKE2b-256 checksum How to use checksums |
858feb0eee4e0d9dda161198711fff604c33db7efc7a7d2503c9dd031ca52e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
198d9d103e53b2225517dbd26f456b53ff95fd70ece0b99fd8130f1c1ce979ad
|
|
BLAKE2b-256 checksum How to use checksums |
c77640f5c58cb95f8b626ba82cf543ee5b766686a8a94903464f0e3e8f212503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp36-none-win_amd64.whl
| Download URL | pysonic_channel-0.1.1-cp36-none-win_amd64.whl |
|---|---|
| Size | 501.2 kB |
| Tags | CPython 3.6 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0f5485f6a5c48d76e776fe4fbc9f4fadd3c5f368ff51a08ac2b10862085a75a9
|
|
BLAKE2b-256 checksum How to use checksums |
80d068b50054e91051fde4a26fe6c3c405350dd81cdb5b50e9a00c3df4e02d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp36-none-win32.whl
| Download URL | pysonic_channel-0.1.1-cp36-none-win32.whl |
|---|---|
| Size | 445.6 kB |
| Tags | CPython 3.6 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
b2a97c72c457f0912e2c3e8df643744c6732b130ff397025e7a2c6c77ff0c8a3
|
|
BLAKE2b-256 checksum How to use checksums |
7b1be85b0ff1a4446a4b0088c02259494c38a3503bdb722d1022ff6943df1945
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d0aa8d257a3a338901562ee300bb2795f8d07ccbba62bf1e818458e625908459
|
|
BLAKE2b-256 checksum How to use checksums |
ae9a13c7f1b5c457cab2d3511d701c7d5fc122d952636b737e023eb274fd2b70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | pysonic_channel-0.1.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
cf38428ad126468817af94e7703b5b3b4ef33f61f6c40cf337d1c12d2fb37499
|
|
BLAKE2b-256 checksum How to use checksums |
322a5c6c410a9dce4f67ae636133d8dfdfd5f51d9af4365e71b451a86aa21412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for pysonic-channel 0.1.1
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.