Skip to main content

hevlayer Python SDK

Generated by scripts/sdk-harness generate --lang python from apps/layer-gateway/openapi.yaml.

Quickstart

import asyncio
import os

from hevlayer import AsyncHevlayer, QueryRequest


async def main() -> None:
    client = AsyncHevlayer(
        api_key=os.environ["HEVLAYER_API_KEY"],
        base_url="https://aws-us-east-1.hevlayer.com",
    )
    async with client:
        response = await client.query_namespace(
            "products",
            QueryRequest(vector=[0.1, 0.2, 0.3], top_k=5, include_attributes=True),
            raw_query="wireless headphones",
            tags=["app:hev-shop", "surface:storefront", "route:search", "page:first"],
            with_perf=True,
        )
        print(response.perf.latency_ms, response.perf.cache_status)
        print(response.data.rows)

        history = await client.list_search_history(
            "products",
            tags=["app:hev-shop", "route:search", "page:first"],
            limit=20,
        )
        print(history.entries)


asyncio.run(main())

Generated Operations

  • authenticate_key
  • batch_query_namespace
  • branch_namespace
  • claim_documents
  • claim_udf_items
  • complete_udf_items
  • copy_namespace
  • create_checkpoint
  • create_pipeline
  • create_scan
  • create_snapshot
  • create_udf
  • delete_key
  • delete_namespace
  • delete_pipeline
  • delete_scan
  • delete_udf
  • discover_udf
  • evaluate_turbopuffer_recall
  • explain_turbopuffer_query
  • fail_udf_items
  • fetch_document
  • fetch_documents
  • get_blob
  • get_checkpoint
  • get_cost_rate_card
  • get_cost_snapshot
  • get_cost_timeseries
  • get_key
  • get_license
  • get_metric_catalog_entry
  • get_namespace_capabilities
  • get_namespace_metadata
  • get_namespace_snapshot
  • get_pipeline_document_chunks
  • get_pipeline_status
  • get_scan
  • get_scan_results
  • get_snapshot_job
  • get_snapshot_policy
  • get_turbopuffer_namespace_schema
  • get_turbopuffer_v1_namespace_metadata
  • get_udf
  • get_udf_status
  • get_vectorstore
  • get_vector_store_capabilities
  • get_warehouse
  • get_warm_job
  • heartbeat_documents
  • heartbeat_udf_items
  • hint_cache_warm
  • import_namespace
  • init_namespace
  • list_checkpoints
  • list_clickstream
  • list_keys
  • list_metrics_catalog
  • list_namespace_history
  • list_namespaces
  • list_pipelines
  • list_scans
  • list_search_history
  • list_snapshot_activity
  • list_snapshot_jobs
  • list_turbopuffer_namespaces
  • list_udfs
  • list_vectorstores
  • list_warehouses
  • list_warm_jobs
  • mint_key
  • pause_udf
  • put_blob
  • put_pipeline_document_chunks
  • put_pipeline_document_vectors
  • put_snapshot_policy
  • query
  • query_agent
  • query_metrics
  • query_metrics_api_v1
  • query_metrics_range
  • query_metrics_range_api_v1
  • query_namespace
  • query_turbopuffer_namespace
  • reset_failed_udf
  • resume_udf
  • revoke_key
  • set_documents_stage
  • update_turbopuffer_namespace_metadata
  • update_turbopuffer_namespace_schema
  • upsert_udf
  • warm_cache
  • write_namespace

Metadata

Release files for hevlayer 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hevlayer 0.7.2
File Size Uploaded Provenance Actions
hevlayer-0.7.2.tar.gz 17.2 kB Without provenance Details for hevlayer-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hevlayer 0.7.2
File Interpreter ABI Platform Actions
hevlayer-0.7.2-py3-none-any.whl Python 3 none any Details for hevlayer-0.7.2-py3-none-any.whl

Total release size: 35.4 kB

Release files / hevlayer-0.7.2.tar.gz

Download URL hevlayer-0.7.2.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0f09e7da651433e0617850d6c65f65230b4d8fa2cea82c9438bbf6de103bcbbe
BLAKE2b-256 checksum
How to use checksums
5af8cab627ddd948a818ae2b9f0de044efbe00de93a0942fc36b07b594ae1e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / hevlayer-0.7.2-py3-none-any.whl

Download URL hevlayer-0.7.2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f866a12a6128b2608e432b8b10382c39196d633e51b797333fa2251f45c525d
BLAKE2b-256 checksum
How to use checksums
f1c847a5f6dea25d38f863e4b43165fe3f82a9aecb9736043260e9d60d541bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for hevlayer 0.7.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page