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.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for praetorian_cli-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7f1fc80afa045c64ba96cef0a44f26341e520b69d9ff3ed064edd460190b12 |
|
MD5 | f2e98ddc6ead4d32867e54ed85dba909 |
|
BLAKE2b-256 | b2ec3a6b23d7e63b37a76f67726773e06feac7117843cce8ed6d0d0898f0f266 |