Python Xapiand Client
Official low-level client for Xapiand. Its goal is to provide common ground for all Xapiand-related code in Python; because of this it tries to be opinion-free and very extendable.
Installation
Install the xapiand package with
pip:
pip install xapiand
Example use
Simple use-case:
>>> from datetime import datetime
>>> from xapiand import Xapiand
# by default we connect to localhost:8880
>>> client = Xapiand()
# datetimes will be serialized
>>> client.index(index="my-index", id=42, body={"any": "data", "timestamp": datetime.now()})
{'#docid': 42, '#shard': 2 '_id': 42, '_version': 1, 'any': 'data', 'timestamp': '2019-07-18T09:04:54.182665'}
# and deserialized
>>> client.get(index="my-index", id=42)
{'#docid': 42, '#shard': 2 '_id': 42, '_version': 1, 'any': 'data', 'timestamp': '2019-07-18T09:04:54.182665'}
Features
The client's features include:
- translating basic Python data types to and from msgpack
- configurable automatic discovery of cluster nodes
- persistent connections
- load balancing (with pluggable selection strategy) across all available nodes
- failed connection penalization (time based - failed connections won't be retried until a timeout is reached)
- thread safety
- pluggable architecture
License
Copyright 2018-2019 Dubalu LLC Copyright 2017 Xapiand
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for xapiand 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xapiand-0.1.4.tar.gz | 40.9 kB | Without provenance | Details |
Release files / xapiand-0.1.4.tar.gz
| Download URL | xapiand-0.1.4.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1670f4ebe66a66986ec1a406bd95e58044355bebd39e9487d1db6768612f913c
|
|
BLAKE2b-256 checksum How to use checksums |
1ab1c8f8c977e93889f868e5a370d6be35b46a1a9f636fc8b249f6673dfd493f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16
|
Security for xapiand 0.1.4
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.