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.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-sonic-client-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 315fb5e097f66ab92e9e1bbddd8c86742499b3dd1c8a07c859e6fb355b8c279c
MD5 b38b57ead87b811c6e073d13975969d1
BLAKE2b-256 0ff5fc08aa85f24303a2397d451fc3051164bfaa6a3141d4dd4c7fa9ff5c42f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_sonic_client-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6a89d4cfc8a8a2aebbbae620b1510ed8fad5b98c425226895f7626542814b894
MD5 361d2668cf5a3e1fe0d492a08b160373
BLAKE2b-256 439daceae70a7edb29dbbca62ddec7efe142825d2c00a6223321adcc9682103b

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