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 research.praetorian.com.
Install
Python 3.8+ and PIP are required.
pip install praetorian-cli
Usage
To use the CLI:
- Register for a free account at research.praetorian.com.
- Log in and download your keychain file to
~/.praetorian/keychain.ini
.
View help for all available commands:
praetorian --help
The CLI is configured as a simple command + option utility. For example, to retrieve all assets in your account simply run:
praetorian chaos my-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 Account class
from praetorian_cli.sdk.account import Account
- Call any function (example below)
Example
from praetorian_cli.sdk.chaos import Chaos
from praetorian_cli.sdk.account import Account
chaos = Chaos(Account())
assets = chaos.my_assets()
print(assets)
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.1.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for praetorian_cli-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df3822d1fa0bb165d2c44453587bd78e531689bf6484e82dc21c359052ca23c9 |
|
MD5 | 9d79914d60094d9e80cc282170c9fdf5 |
|
BLAKE2b-256 | 331ae78f43cebf906213ab49ebabcaf67892db29f97abf18e89eb7c6e349635a |