Python client for Sonic Search DB
Project description
pysonic
pysonic is a Python client for lightweight and fast search engine - Sonic
Installation
Use the package manager pip to install foobar.
pip install python-sonic-client --upgrade
Usage
import pysonic
c = pysonic.Client()
with c.mode(pysonic.Mode.INGEST) as ingestor:
resp = ingestor.ping()
with c.mode(pysonic.Mode.SEARCH) as searcher:
resp = searcher.ping()
TODO 0.1.0
- Ingest commands: POP, COUNT, FLUSHC, FLUSHB, FLUSHO
- Implement queue, auto reconnect socket
- Support escape characters
- Support Control mode
- Support push a bulk by parallel sockets
- Support LANG
- Add tags: testcov, version, build
- Update tests
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-sonic-client-0.0.8.tar.gz.
File metadata
- Download URL: python-sonic-client-0.0.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa19ec59a7bffd573e92b1c27ec742fa0270406e65eabf3fc53e62e223515ac
|
|
| MD5 |
248a2cbb283d245e713662525baac452
|
|
| BLAKE2b-256 |
ba4958834685f5fa3d10c40cfbecccde6854c0034c7d853bcd5b0c76e70c6a7d
|
File details
Details for the file python_sonic_client-0.0.8-py3-none-any.whl.
File metadata
- Download URL: python_sonic_client-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91c690684ae982802a63459cf6395a9945bde0e0da043a53d8420642940e758
|
|
| MD5 |
d00597a88ee1d298964eef76223df69d
|
|
| BLAKE2b-256 |
f31bcf3f0d77b6faede8f4418b0110daa8b63f1c9487491d5d457aee206bef78
|