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

  • activate_record_version
  • aggregate_latest
  • authenticate_key
  • batch_query_namespace
  • branch_namespace
  • claim_documents
  • claim_udf_items
  • compare_udf_candidate
  • complete_udf_items
  • copy_namespace
  • create_checkpoint
  • create_pipeline
  • create_scan
  • create_snapshot
  • create_udf
  • create_udf_candidate
  • delete_key
  • delete_namespace
  • delete_pipeline
  • delete_scan
  • delete_udf
  • discard_udf_candidate
  • 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_record_version
  • get_scan
  • get_scan_results
  • get_snapshot_job
  • get_snapshot_policy
  • get_turbopuffer_namespace_schema
  • get_turbopuffer_v1_namespace_metadata
  • get_udf
  • get_udf_candidate
  • 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_record_activations
  • list_record_versions
  • list_scans
  • list_search_history
  • list_snapshot_activity
  • list_snapshot_jobs
  • list_turbopuffer_namespaces
  • list_udfs
  • list_vectorstores
  • list_warehouses
  • list_warm_jobs
  • lookup_udf_siblings
  • mint_key
  • pause_udf
  • promote_udf_candidate
  • put_blob
  • put_pipeline_document_chunks
  • put_pipeline_document_rows
  • put_pipeline_document_vectors
  • put_pipeline_rows
  • 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
  • scan_source_rows
  • search_namespace
  • set_documents_stage
  • update_turbopuffer_namespace_metadata
  • update_turbopuffer_namespace_schema
  • upsert_udf
  • warm_cache
  • write_namespace

Metadata

Release files for hevlayer 0.8.0

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.8.0
File Size Uploaded Provenance Actions
hevlayer-0.8.0.tar.gz 22.3 kB Without provenance Details for hevlayer-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 45.6 kB

Release files / hevlayer-0.8.0.tar.gz

Download URL hevlayer-0.8.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
09d3f25ec204ead38bb3e7079f3480213693e69454c3283e216b61684d0a167c
BLAKE2b-256 checksum
How to use checksums
6d170c7b94b8e8cfddbc13bcf66b93fd0a1ca60d8085a512cc2ec5085eafa3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

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

Download URL hevlayer-0.8.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22585c2573160f8fef22272b67c17bbab78679df225731b274a7a02330c79021
BLAKE2b-256 checksum
How to use checksums
fbb275edbc8c820eebde5ce3b71100b36d2b26c430df07133c4747d7344e6435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for hevlayer 0.8.0

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