QuipuBase Client for Python
Welcome to the QuipuBase Client for Python! This SDK is designed to provide a seamless and efficient way to interact with QuipuBase, an advanced data management system tailored for modern AI applications. With QuipuBase, you can leverage high-performance storage, semantic search, custom data modeling, and seamless integrations. Our SDK ensures that developers have all the tools they need to build powerful, scalable, and efficient applications.
Features
- High-Performance Storage: QuipuBase leverages cutting-edge technologies to provide rapid storage and retrieval capabilities, ensuring that your applications run smoothly and efficiently.
- Semantic Search: Perform advanced searches with ease using our robust semantic search functionalities.
- Custom Data Modeling: Define and manage custom data models to suit the unique needs of your application.
- Seamless Integrations: Integrate with various third-party services and platforms effortlessly.
Installation
To install the QuipuBase Client for Python, simply use pip:
pip install quipu-sdk
Getting Started
Initializing the Client
First, import the necessary modules and initialize the client:
from quipubase_client import QuipuClient, Base
from pydantic import BaseModel
# Define your data model
class MyDataModel(BaseModel):
name: str
value: int
# Initialize the client with your data model
client = QuipuClient[MyDataModel]()
Inserting Data
To insert data into QuipuBase, use the put method:
data = MyDataModel(name="example", value=42)
response = await client.put(namespace="my_namespace", instance=data)
print(response)
Retrieving Data
To retrieve data from QuipuBase, use the get method:
key = "your_data_key"
response = await client.get(namespace="my_namespace", key=key)
print(response)
Merging Data
To merge data into an existing entry, use the merge method:
data = MyDataModel(name="example_updated", value=43)
response = await client.merge(namespace="my_namespace", instance=data)
print(response)
Deleting Data
To delete data from QuipuBase, use the delete method:
key = "your_data_key"
response = await client.delete(namespace="my_namespace", key=key)
print(response)
Finding Data
To find data based on certain criteria, use the find method:
response = await client.find(namespace="my_namespace", name="example")
print(response)
Advanced Operations
Upserting Vector Data
QuipuBase supports vector operations for advanced use cases such as similarity search and AI applications:
from quipubase_client.schemas import RagRequest
data = RagRequest(content=[0.1, 0.2, 0.3, 0.4])
response = await client.upsert(namespace="my_namespace", data=data)
print(response)
Querying Vector Data
To query vector data:
response = await client.query(namespace="my_namespace", data=data, top_k=5)
print(response)
# CosimResult(id='23rw-a194k-2r3', score=0.99, content='example')
Conclusion
The QuipuBase Client for Python provides a powerful and efficient way to interact with QuipuBase, enabling developers to build advanced AI applications with ease. With high-performance storage, semantic search, custom data modeling, and seamless integrations, QuipuBase is the ideal choice for modern data management needs. Get started with the QuipuBase Client for Python today and unlock the full potential of your applications!
For more information, visit QuipuBase.
Metadata
Release files for quipu-sdk 0.1.1
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 | |
|---|---|---|---|---|
| quipu_sdk-0.1.1.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quipu_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / quipu_sdk-0.1.1.tar.gz
| Download URL | quipu_sdk-0.1.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c47685550f5ce061978e078277c82f03a1cc9f962493bd65d709e8c8b6ae5022
|
|
BLAKE2b-256 checksum How to use checksums |
08f8576b43155afab66bd970e43173d5501a5867fd93fc37100b524e40058cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
|
Release files / quipu_sdk-0.1.1-py3-none-any.whl
| Download URL | quipu_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f7c374b71116125c50e6d374022d534b22932e7d0e8aa9413c049adcc396c60
|
|
BLAKE2b-256 checksum How to use checksums |
adb5aa42dce311676df524d2cc137705b71c56a9ed6d9a5e17d161100a9cb18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
|
Security for quipu-sdk 0.1.1
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.