semvec/pypi-packages huggingface dataset:
dbl-boundary-service 0.2.1
Reference service exposing a governed LLM boundary via DBL and KL
License: MIT
Requires Python: >=3.11
Keywords: dbl, kl, llm, governance, boundary, deterministic

# DBL Boundary Service Demo

Reference UI and service for deterministic boundary evaluation. Each request produces explicit DECISION events in V (append-only). Observations are non-normative.

## Quick Start

```bash
pip install dbl-boundary-service
dbl-boundary
```

Open http://127.0.0.1:8787

## What it does

Flow:

Input -> Boundary policies -> DECISION -> LLM call -> Observations

DECISION is produced before any LLM call and is the only normative effect in V.

## Demo presets

| Preset | Purpose |
|--------|---------|
| minimal | no policies (testing only) |
| basic_safety | light content safety |
| standard | content safety and rate limiting |
| enterprise | strict content safety and rate limiting |

## Dry run (no LLM)

Use "Dry run" to exercise the full boundary flow without calling the LLM.

## Observable outputs

The UI exposes the following outputs for each run:

- Outcome and DECISION events
- Request context and Psi definition
- LLM payload and LLM result (when executed)
- Observations (request id, timestamps, trace id)

Observations and timing metrics are non-normative and MUST NOT affect decisions.

![DBL Boundary Service UI](screenshots/dbl-boundary-ui-example.png)

## API usage

```bash
curl -X POST http://127.0.0.1:8787/run \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hello, how are you?",
    "pipeline_mode": "standard",
    "dry_run": true
  }'
```

## Learn more

Deterministic Boundary Layer: https://github.com/lukaspfisterch/deterministic-boundary-layer

This repo is the reference UI/service. The theory and ecosystem map live there.
everything 0.1.7
from everything import anything
License: MIT
Requires Python: >=3.09

# Literally everything!
## The ultimate abstraction.

### from everything import anything!

Real example:
```py
from everything import sort_list, stylized_greeting

# Print a greeting for Wolf
print(stylized_greeting("Wolf", "Angry"))

# Sort a list
print(sort_list([3, 2, 1, 0, -5, 2.5]))
```

```cmd
>> ANTHROPIC_API_KEY=...
>> python example.py
WHAT DO YOU WANT, WOLF?!
[-5, 0, 1, 2, 2.5, 3]
```

### How's it work?

Using state-of-the-art technology, we can literally import anything from everything! Any function you can imagine, dynamically generated at runtime, accessible with a simple import. 

When you `import <anything> from everything`, `everything` will use Python's [AST](https://docs.python.org/3/library/ast.html) library to scan your source code, and find all usages of `<anything>`. It then will merge a few lines of context on both sides of every function call, along with the call itself. Then, it will have claude generate a Python function, freshly plopped into your code at runtime.

### How to use

First, set the `ANTHROPIC_API_KEY` to a valid API token. Then install the package with [`pip install everything`](https://pypi.org/project/everything/) (or `uv`, etc). Finally, `import anything from everything`!

### Words of caution

You **probably** don't want to use this in production. `everything` provides no guarantees! This is my escape hatch after of 6 weeks of learning `nix`.