This release is a pre-release and may not be stable for production use.
Periplus Client Library
Introduction
The Periplus client library provides an interface to interact with a Periplus instance. Periplus is a remote vector database cache. This client library allows you to initialize, train, add data, load data, perform searches, and evict data within Periplus. For more information on Periplus, please refer to the README.md.
Installation
Prerequisites
- Python 3.8+
structandcollectionslibraries (included in the Python standard library)
Installation via pip
You can install the Periplus client library using pip:
pip install periplus-client
Quick Start
Here’s a quick example of how to use the Periplus client library to interact with the Periplus service:
from periplus_client import Periplus
# Initialize the Periplus client
client = Periplus(host='localhost', port=8080)
# Initialize the Periplus instance
await client.initialize(
d=128,
db_url='http://localhost:5000/proxy',
options={'n_records': 500000, 'use_flat': False}
)
# Train the instance with sample data
await client.train(training_data=[[0.1, 0.2, ..., 0.128]])
# Add data to the instance
await client.add(ids=['vec1', 'vec2'], embeddings=[[0.1, 0.2, ..., 0.128]])
# Perform a search
results = await client.search(k=5, xq=[[0.1, 0.2, ..., 0.128]])
print(results)
Documentation
API Reference
For a complete API reference, including details on all classes, methods, and their usage, please refer to the API Reference.
Contributing
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name. - Make your changes.
- Commit your changes:
git commit -m 'Add some feature'. - Push to the branch:
git push origin feature/your-feature-name. - Open a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for periplus-client 0.1.0a1
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 | Actions |
|---|---|---|---|---|
| periplus_client-0.1.0a1.tar.gz | 9.6 kB | Without provenance | Details for periplus_client-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| periplus_client-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for periplus_client-0.1.0a1-py3-none-any.whl |
Total release size: 25.5 kB
Release files / periplus_client-0.1.0a1.tar.gz
| Download URL | periplus_client-0.1.0a1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c597ab04d04663269036d047c209146d2227fb858fb98ef0d332e5e4fae1ae6d
|
|
BLAKE2b-256 checksum How to use checksums |
e1c15f848ab6a0b74aafc47ae496951562a5cfd3a30487129922428c5882de5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.13
|
Release files / periplus_client-0.1.0a1-py3-none-any.whl
| Download URL | periplus_client-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d79da3fdcb81419c42ba560473628ecf7158ec0caf38441f05afef2b1e055409
|
|
BLAKE2b-256 checksum How to use checksums |
bb96289cb5e97f443e55a8cc3db34b88f039dd57e98dcb0614d274fb93311a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.13
|
Security for periplus-client 0.1.0a1
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.