Python SDK for the Valmar platform
Project description
valmar
Python SDK for the Valmar platform.
Documentation: https://docs.getvalmar.com
Source: https://github.com/TheValmarAI/valmar-python
License: Apache-2.0
Installation
uv add valmar
Quick start
from valmar import Valmar
client = Valmar(
api_key="valmr_proj_sk_...",
base_url="https://your-valmar-deployment.example.com",
organization_id="your-org-id",
project_id="your-project-id",
)
base_url is required because Valmar is deployed per customer. Use the base URL for your own Valmar deployment.
Search knowledge
Find relevant saved knowledge across the configured project.
results = client.knowledge.search("deployment process")
for item in results.items:
print(f"{item.title} ({item.confidence})")
print(item.content_md)
Create a knowledge request
Create a knowledge request that gets routed to the right people in your organization.
handle = client.knowledge_requests.create(
"How do we handle database migrations in production?",
background_context="Planning a schema change for the orders table",
)
print(f"Request created: {handle.knowledge_request_id}")
print(f"Status: {handle.status}")
request = client.knowledge_requests.get(handle.knowledge_request_id)
if request.status == "completed":
print(request.result_summary)
List and import people
from valmar import CreatePersonInput
people = client.people.list()
result = client.people.import_bulk(
[
CreatePersonInput(
email="ada@example.com",
display_name="Ada Lovelace",
timezone="UTC",
title="Principal Engineer",
)
]
)
Context manager
with Valmar(
api_key="valmr_proj_sk_...",
base_url="https://your-valmar-deployment.example.com",
organization_id="your-org-id",
project_id="your-project-id",
) as client:
results = client.knowledge.search("onboarding process")
Error handling
The SDK raises httpx.HTTPStatusError for non-2xx responses.
import httpx
try:
client.knowledge.search("test")
except httpx.HTTPStatusError as e:
print(f"API error {e.response.status_code}: {e.response.text}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file valmar-0.1.0.tar.gz.
File metadata
- Download URL: valmar-0.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87e353b2011f8c4e840c3a5148589d7804314daa9d0cc468bc452a58814f4d53
|
|
| MD5 |
84554f1b6b5a33077a0affa4e61369e9
|
|
| BLAKE2b-256 |
425a42346e104f2294703b05c07418367d1acb597f9449b261735259190d7fa8
|
Provenance
The following attestation bundles were made for valmar-0.1.0.tar.gz:
Publisher:
publish.yml on TheValmarAI/valmar-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valmar-0.1.0.tar.gz -
Subject digest:
87e353b2011f8c4e840c3a5148589d7804314daa9d0cc468bc452a58814f4d53 - Sigstore transparency entry: 1591560165
- Sigstore integration time:
-
Permalink:
TheValmarAI/valmar-python@199de08557a009e193d5a05b006c768a2dd4d115 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TheValmarAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@199de08557a009e193d5a05b006c768a2dd4d115 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file valmar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: valmar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14663a84752851f8242d5c2c85bc376fec45951481a7888eb51d61bd04c347c0
|
|
| MD5 |
2d170f2487db8ddb7a6a7f4a80b24486
|
|
| BLAKE2b-256 |
c22ae2330222f6cf69f0a38f2c7132cd24cf7944516fc597a5080ef3c5dbac84
|
Provenance
The following attestation bundles were made for valmar-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on TheValmarAI/valmar-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valmar-0.1.0-py3-none-any.whl -
Subject digest:
14663a84752851f8242d5c2c85bc376fec45951481a7888eb51d61bd04c347c0 - Sigstore transparency entry: 1591560203
- Sigstore integration time:
-
Permalink:
TheValmarAI/valmar-python@199de08557a009e193d5a05b006c768a2dd4d115 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TheValmarAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@199de08557a009e193d5a05b006c768a2dd4d115 -
Trigger Event:
workflow_dispatch
-
Statement type: