Kaptain
A modern SRE tool.
Install
pip install kaption
Support version
python 3.5+
report
report operation to platform, currently it only support slack.
pre-config
we need .git-config to set user/email.
vi ~/.gitconfig
# add line like this
[kaption]
slack-channel = https://hooks.slack.com/xxx
slack-private = https://hooks.slack.com/xxx
how to
kap report "hello world" --private # send to private channel
kap report "hello world" # send to public channel
Fetch GCP Log
Pre-Requirements
- gcloud cli
export KAPTAIN_FETCH_LOG_PROJECT=YOUR-GCP-PROJECT-ID
# preview
kap fetch-log gcp abc.log --save-dir=$HOME/Downloads --display --filter=tradebot-prod --date-filter=2019/05/30 --bucket-name=archive-log
# download
kap fetch-log gcp abc.log --save-dir=$HOME/Downloads --filter=tradebot-prod --date-filter=2019/05/30 --bucket-name=archive-log
Metadata
Release files for kaptain 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kaptain-0.1.3.tar.gz | 4.3 kB | Without provenance | Details |
Release files / kaptain-0.1.3.tar.gz
| Download URL | kaptain-0.1.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b22946ff571c67c5016356a19a305d3c77e0e6c7d24af4e0cf37d22856df78f2
|
|
BLAKE2b-256 checksum How to use checksums |
ec8d7b3a56f15a5d7cc6401ade30787a64b47a6610a9f5583f67ec52f89d58f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.3
|
Security for kaptain 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.