Metadata-Version: 2.4
Name: sunwt-devtools-cli
Version: 0.1.0
Summary: A developer toolbox CLI with env check, hashing, encoding, UUID, JSON, HTTP and more
Project-URL: Homepage, https://github.com/sunwt/sunwt-devtools-cli
License: MIT
Requires-Python: >=3.10
Requires-Dist: click>=8.0
Requires-Dist: httpx>=0.24
Requires-Dist: rich>=13.0
Description-Content-Type: text/markdown

# sunwt-devtools-cli

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

## Install

```bash
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

```bash
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

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