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.
dmintcore 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf8f6c780f97cad4404c9c6e738c6f08f353baa38bae81bf17cbfd44d8089f63
|
|
| MD5 |
66d3acfeda5c4478c8337ddf38e2d864
|
|
| BLAKE2b-256 |
c12c4c68c617d94d7324c72d3747c3dca8ce549f7916bb2c3cd4789625c8e91c
|
Provenance
The following attestation bundles were made for dmint_cli-0.1.0.tar.gz:
Publisher:
publish.yml on dmint-app/dmint-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmint_cli-0.1.0.tar.gz -
Subject digest:
bf8f6c780f97cad4404c9c6e738c6f08f353baa38bae81bf17cbfd44d8089f63 - Sigstore transparency entry: 2798925875
- Sigstore integration time:
-
Permalink:
dmint-app/dmint-cli@54bb4bdbbfdd713bfd036a38d43879f7ebb0a97f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dmint-app
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54bb4bdbbfdd713bfd036a38d43879f7ebb0a97f -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95854c96449f6821f4bc3b2e4dbd26c82b3f6f5f9862294461fb0e98c219fc7
|
|
| MD5 |
25d5a3a2c6548406420693d3bbd4abb6
|
|
| BLAKE2b-256 |
50250aa4a3a04fed05066718473a9093880d44ef0765d533f68c5e1e72ac3e06
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmint_cli-0.1.0-py3-none-any.whl -
Subject digest:
e95854c96449f6821f4bc3b2e4dbd26c82b3f6f5f9862294461fb0e98c219fc7 - Sigstore transparency entry: 2798925919
- Sigstore integration time:
-
Permalink:
dmint-app/dmint-cli@54bb4bdbbfdd713bfd036a38d43879f7ebb0a97f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dmint-app
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54bb4bdbbfdd713bfd036a38d43879f7ebb0a97f -
Trigger Event:
workflow_dispatch
-
Statement type: