Metadata-Version: 2.4
Name: osearch-cli
Version: 0.1.0
Summary: CLI to inspect OpenSearch without the dashboard
Project-URL: Homepage, https://github.com/EnzoDeg40/opensearch-cli
Project-URL: Repository, https://github.com/EnzoDeg40/opensearch-cli
Project-URL: Issues, https://github.com/EnzoDeg40/opensearch-cli/issues
Author: EnzoDeg40
License-Expression: MIT
License-File: LICENSE
Keywords: cli,elasticsearch,opensearch,search
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: opensearch-py>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: rich>=13.0.0
Description-Content-Type: text/markdown

# osearch-cli

CLI to inspect OpenSearch without the dashboard.

## Installation

```bash
pip install osearch-cli
```

## Usage

```bash
# List all indices
os-cli --list

# Show documents from an index
os-cli my_index --limit 20

# Show documents with embedding vectors
os-cli my_index --show-embedding
```

## Configuration

Set environment variables or use a `.env` file:

```bash
# Option 1: JSON config
OPENSEARCH_URL='{"endpoint": "https://...", "username": "admin", "password": "..."}'

# Option 2: URL
OPENSEARCH_URL=https://localhost:9200

# Option 3: Separate vars
OPENSEARCH_HOST=localhost
OPENSEARCH_PORT=9200
```

## License

MIT
