Client for the Cetus API
Project description
Cetus Cearcher
Unofficial CLI tool to query the Cetus API maintained by SparkIT Solutions.
Installation
Clone the repo and use Typer CLI to run
or
pip install cetus-cearcher
Once installed, you'll need to create a file named config.py
in the cetus
directory and declare two variables:
Variable | Value |
---|---|
api_url | API server including protocol ( i.e. https://example.com ) |
api_key | API key obtained from the portal |
Usage
$ cetus [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--help
: Show this message and exit.
Commands:
example
: Show example result datasearch
: Search Cetus
cetus example
Show example result data
Usage:
$ cetus example [OPTIONS] INDEX:[dns|certstream]
Arguments:
INDEX:[dns|certstream]
: [required]
Options:
--raw
: Print raw output instead of pretty printed [default: False]--help
: Show this message and exit.
cetus search
Search Cetus
Usage:
$ cetus search [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
certstream
: Search the Cetus Certstream indexdns
: Search the Cetus DNS index
cetus search certstream
Search the Cetus Certstream index
Usage:
$ cetus search certstream [OPTIONS] QUERY
Arguments:
QUERY
: Lucene formatted query. [required]
Options:
--start [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
: Beginning of search range. Required. [required]--end [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
: End of search range. If omitted, end == now [default: 2021-06-10T17:11:20]--raw
: Print raw output instead of pretty printed [default: False]--metadata
: Include metadata in output [default: False]--help
: Show this message and exit.
cetus search dns
Search the Cetus DNS index
Usage:
$ cetus search dns [OPTIONS] QUERY
Arguments:
QUERY
: Lucene formatted query. [required]
Options:
--start [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
: Beginning of search range. Required. [required]--end [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
: End of search range. If omitted, end == now [default: 2021-06-10T17:11:20]--raw
: Print raw output instead of pretty printed [default: False]--metadata
: Include metadata in output [default: False]--help
: Show this message and exit.
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
cetus_cearcher-0.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file cetus_cearcher-0.1.1.tar.gz
.
File metadata
- Download URL: cetus_cearcher-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.5 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5212808658094704839c9febc962b35b74d57a04477d00a29bdba15d89e7e59 |
|
MD5 | 4efdc3d27f3c7742366d8dbc8f4b9066 |
|
BLAKE2b-256 | 4918836980ad6aa45662f74c9f97a61f092fc5f774147a26f9c0ba81b0b0fd44 |
File details
Details for the file cetus_cearcher-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cetus_cearcher-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.5 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f344a9eec34fd88a53e49c76d135eb10a5db174b6e8ca1c620c34ee824f349 |
|
MD5 | 1cfa5c3ebe67f2e02d06c511f1fd4090 |
|
BLAKE2b-256 | 4bfe90d34fba6b51fba696feeac72f64867c73f57499e2f710743566f72363ee |