Skip to main content

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

MIT

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

python-sonic-client-0.0.7.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

python_sonic_client-0.0.7-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file python-sonic-client-0.0.7.tar.gz.

File metadata

  • Download URL: python-sonic-client-0.0.7.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

Hashes for python-sonic-client-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5cecf2d0935b85c8b9c8d53f041a79b2cc73464da9e531ed8b5837af08f46c15
MD5 2ef9fdc981171fda033da2a99b15f7f7
BLAKE2b-256 44a6892584d334c41a5aaa8fc605fe719824d0f7e4af7de42d7e76235e92c631

See more details on using hashes here.

File details

Details for the file python_sonic_client-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: python_sonic_client-0.0.7-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

Hashes for python_sonic_client-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 12a5c013b8012cf4d1d37b0b74258796fd706180b22b5b2c671a34cfb7364afe
MD5 d9fd0efcf1f906bb19e7314b9d94bd8b
BLAKE2b-256 6e7a6d66d81685934efad7344fb912f747fe4be2b02348f02606607a41c2a5d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page