Skip to main content

Navigate the topology of mind - ML safety through persona vectors

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

darkfield CLI

Command-line interface for the darkfield ML Safety Platform.

Installation

For Development

# From the cli directory
./install-local.sh

For Production (when published)

pip install darkfield-cli
# or
npm install -g @darkfield/cli

First Run

When you first run darkfield, you'll see:

    ██████╗  █████╗ ██████╗ ██╗  ██╗███████╗██╗███████╗██╗     ██████╗ 
    ██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔════╝██║██╔════╝██║     ██╔══██╗
    ██║  ██║███████║██████╔╝█████╔╝ █████╗  ██║█████╗  ██║     ██║  ██║
    ██║  ██║██╔══██║██╔══██╗██╔═██╗ ██╔══╝  ██║██╔══╝  ██║     ██║  ██║
    ██████╔╝██║  ██║██║  ██║██║  ██╗██║     ██║███████╗███████╗██████╔╝
    ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚══════╝╚═════╝ 

    ML Safety Platform Command Line Interface
    Protecting AI from harmful personas • v0.1.0

Quick Start

# Authenticate
darkfield auth login

# Run a demo
darkfield analyze demo --trait sycophancy

# Check your usage
darkfield billing usage

Development

# Install dependencies
pip install -e .

# Run tests
pytest

# Build distribution
python setup.py sdist bdist_wheel

Publishing

# PyPI
python -m twine upload dist/*

# NPM (wrapper)
npm publish

Project details


Download files

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

Source Distribution

darkfield_cli-0.2.1.tar.gz (162.3 kB view details)

Uploaded Source

Built Distribution

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

darkfield_cli-0.2.1-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

Details for the file darkfield_cli-0.2.1.tar.gz.

File metadata

  • Download URL: darkfield_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 162.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for darkfield_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e7f1813b8b7f59f8e8a1eac08c5526f7f4ed52c38f312664abd8bae8ee30af06
MD5 54ea1da4b40cce3e9ffa67e988a60261
BLAKE2b-256 33816b849b2de6bd7f3d99b8637dcc692a3c4ccf8daa33cbb95b5fe72eb2af40

See more details on using hashes here.

File details

Details for the file darkfield_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: darkfield_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 62.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for darkfield_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8404c66eebffceec1a3309e9eea3e4dea240199a5b2e8d4bfb4839927299018
MD5 15ba2086bf3015e12e69ae33a0ad5edc
BLAKE2b-256 0ccd442a15ee7d9d6014dfe66c94df31c7087de3649baaeb6835d19a0fb4166d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page