Skip to main content

A developer toolbox CLI with env check, hashing, encoding, UUID, JSON, HTTP and more

Project description

sunwt-devtools-cli

A developer toolbox CLI (dt) with env check, hashing, encoding, UUID, JSON tools, HTTP check, and Lorem Ipsum generation.

Install

pip install sunwt-devtools-cli

Commands

Command Description
dt env Check dev environment versions
dt time [TS] Show time in common timezones, or convert a timestamp
dt hash TEXT Compute MD5/SHA1/SHA256/SHA512
dt encode TEXT Base64 / URL / Hex encode or decode
dt uuid Generate UUID(s)
dt json fmt Pretty-print JSON
dt json minify Minify JSON
dt json validate Validate JSON
dt json get --key KEY Extract value by dot-notation path
dt http URL Check HTTP endpoint status and latency
dt lorem Generate Lorem Ipsum text

Examples

dt env
dt env -c kubectl -c terraform

dt time
dt time 1700000000 --unix
dt time "2024-01-01T00:00:00Z"

dt hash hello
dt hash hello --algo sha256
dt hash /path/to/file --file

dt encode "hello world"
dt encode "aGVsbG8gd29ybGQ=" --decode
dt encode "hello" --mode hex

dt uuid
dt uuid -n 5 --upper --no-hyphens

dt json fmt '{"a":1}'
dt json get '{"user":{"name":"alice"}}' --key user.name
echo '{"x":1}' | dt json validate

dt http https://httpbin.org/get
dt http https://httpbin.org/post -X POST -d '{"key":"val"}' -H "Content-Type: application/json" -v

dt lorem
dt lorem -p 3 -s 6
dt lorem --words 50

Development

pip install -e ".[dev]"
pytest tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sunwt_devtools_cli-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sunwt_devtools_cli-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file sunwt_devtools_cli-0.1.0.tar.gz.

File metadata

  • Download URL: sunwt_devtools_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for sunwt_devtools_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40ab4f69469418fac9f6ee06ad7f7dc8d33e7c957bde61074ff14195ff4b1955
MD5 47fd68ed44892acac00adf9a148550c9
BLAKE2b-256 24f3c5d39ce7f117a65e059bf303cd310f34d1d93eb55c2d6468f4ca26e2d31e

See more details on using hashes here.

File details

Details for the file sunwt_devtools_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sunwt_devtools_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 add33ae1ba1fedbae4ac17e8ae39f873da9a20957bc79336a02d944efa4a69a7
MD5 a1ec5171f6d5b21baa1e8994d6a21216
BLAKE2b-256 aa7eec3833517de65cf0c7de93e4db5b78e441e03266f3ea05aa3d38db8e8552

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page