Skip to main content

dmint-cli

Developer tooling for creating, compiling, and validating Dmint security policies.

dmint-cli provides command-line utilities for discovering tools via AST analysis, gathering security requirements, and compiling natural language security rules into schema-compliant Dmint policy files (policy.json).

access.md (Human Security Intent)
       ↓
dmint compile-policy / create-policy
       ↓
LLM Compiler & Dmint Skill
       ↓
Dmint Core Validation (Policy.from_mapping)
       ↓
policy.json (Authoritative Policy)

Note: The CLI helps developers author and validate policies during development. dmint core remains the sole trusted runtime authorization engine.

Installation

pip install dmint-cli

CLI Commands

1. Interactive Policy Wizard (dmint create-policy)

Inspect Python source code for tool declarations using AST analysis (zero execution), prompt the developer for security rules, and generate access.md + verified policy.json.

dmint create-policy --tools my_tools.py -f access.md -o policy.json

2. Policy Compiler (dmint compile-policy)

Compile natural language security requirements into a strictly validated policy.json file using an OpenAI-compatible API or local fallback parser.

dmint compile-policy -f access.md -o policy.json

Environment Configuration

Set API credentials via environment variables for LLM policy compilation:

export OPENAI_API_KEY="sk-..."
# Optional custom provider / base URL
export DMINT_BASE_URL="https://api.openai.com/v1"
export DMINT_MODEL="gpt-4o-mini"

Testing

Run the CLI test suite:

pytest -v

License

Licensed under the Apache License, Version 2.0. See the LICENSE file for the complete license text.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmint_cli-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmint_cli-0.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file dmint_cli-0.1.0.tar.gz.

File metadata

  • Download URL: dmint_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dmint_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf8f6c780f97cad4404c9c6e738c6f08f353baa38bae81bf17cbfd44d8089f63
MD5 66d3acfeda5c4478c8337ddf38e2d864
BLAKE2b-256 c12c4c68c617d94d7324c72d3747c3dca8ce549f7916bb2c3cd4789625c8e91c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmint_cli-0.1.0.tar.gz:

Publisher: publish.yml on dmint-app/dmint-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dmint_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dmint_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dmint_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e95854c96449f6821f4bc3b2e4dbd26c82b3f6f5f9862294461fb0e98c219fc7
MD5 25d5a3a2c6548406420693d3bbd4abb6
BLAKE2b-256 50250aa4a3a04fed05066718473a9093880d44ef0765d533f68c5e1e72ac3e06

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmint_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dmint-app/dmint-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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