For interacting with the Chariot API
Project description
Praetorian CLI
The CLI is a fully-featured companion to the Chariot UI, which is hosted at chaos.praetorian.com.
Install
Python 3.8+ and PIP are required.
pip install praetorian-cli
Usage
To use the CLI:
- Register for an account at http://preview.chariot.praetorian.com.
- Log in and download your keychain file
to
~/.praetorian/keychain.ini
.
View help for all available commands:
praetorian chariot --help
The CLI is configured as a simple command + option utility. For example, to retrieve a list of all assets in your account simply run:
praetorian chariot list assets
To get detailed information about a specific asset:
praetorian chariot get asset <ASSET_KEY>
Developers
Integrate the CLI into your own application:
- Include the dependency
praetorian-cli
in your project - Import the Chariot class
from praetorian_cli.sdk.chariot import Chariot
- Import the Keychain class
from praetorian_cli.sdk.keychain import Keychain
- Call any function (example below)
Example
from praetorian_cli.sdk.chariot import Chariot
from praetorian_cli.sdk.keychain import Keychain
chariot = Chariot(Keychain(profile='United States'))
chariot.add('seed', {'dns': 'example.com'})
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
praetorian_cli-0.16.1.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for praetorian_cli-0.16.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7da3cb5ac0ffc7f0fb3d2e8a3ed9054d7805123fea7d1084656a43bc66e20e |
|
MD5 | 46041d8b1baad4e1a5d7c1aeb07a61b4 |
|
BLAKE2b-256 | 6c01097b2f7a00715d0fa96314b036f23421689a378242a5fd31adba72741af3 |