For interacting with the Chaos API
Project description
Praetorian CLI
The CLI is a fully-featured companion to the Chaos 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 chaos.praetorian.com.
- Log in and download your keychain file to
~/.praetorian/keychain.ini
.
View help for all available commands:
praetorian chaos --help
The CLI is configured as a simple command + option utility. For example, to retrieve all assets in your account simply run:
praetorian chaos assets
Developers
Integrate the CLI into your own application:
- Include the dependency
praetorian-cli
in your project - Import the Chaos class
from praetorian_cli.sdk.chaos import Chaos
- Import the Keychain class
from praetorian_cli.sdk.keychain import Keychain
- Call any function (example below)
Example
from praetorian_cli.sdk.chaos import Chaos
from praetorian_cli.sdk.keychain import Keychain
chaos = Chaos(Keychain(profile='United States'))
chaos.add_seed('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.10.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for praetorian_cli-0.10.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd645ae34188d9805639541a47abb0b51abce29455c9e4d05318e82b2480daac |
|
MD5 | 5f110e44c9ffd28c0539eabcaaa2743a |
|
BLAKE2b-256 | 2bc21bcadc33fc9a885833af9f4b0ab80f8710bd988b03adf9e9314e22626264 |