semvec/pypi-packages huggingface dataset:
elasticsearch-shell 0.1.0
A REPL for Elasticsearch.
Requires Python: >=3.13

# Elasticsearch Shell

A powerful, interactive REPL for Elasticsearch with auto-completion.

## Features

- **Auto-completion**: Smart suggestions for:
  - HTTP methods (`GET`, `POST`, `PUT`, `DELETE`)
  - Indices and aliases
  - Common Elasticsearch API endpoints (`_search`, `_cat/indices`, etc.)
  - Query DSL keywords inside JSON bodies.
- **Multi-line Editing**: Comfortably write and edit complex queries.
- **Persistent History**: Your command history is saved across sessions in `~/.local/state/elasticsearch-shell/history`.
- **Flexible Connection**: Connect to Elasticsearch using Cloud ID and API Key, or via Host, Username, and Password.

## Requirements

- Python 3.13+
- `uv` package manager (e.g., `pip install uv`)

## Usage

The recommended way to run the application is with `uvx`:

```bash
uvx elasticsearch-shell
```

This will download and run the latest version in a temporary virtual environment.

### Running from source (for development)

If you have cloned this repository, you can also run the script directly. The script uses `uv` to manage its dependencies automatically.

First, make the script executable:
```bash
chmod +x elasticsearch_shell/elasticsearch_shell.py
```

Then run it:
```bash
./elasticsearch_shell/elasticsearch_shell.py
```

Alternatively, you can run it with `uv` without making it executable:
```bash
uv run --script elasticsearch_shell/elasticsearch_shell.py
```

## Configuration

Connection to your Elasticsearch cluster is configured via environment variables.

### Method 1: Cloud ID and API Key

This is the recommended method for connecting to Elastic Cloud.

```bash
export ES_CLOUD_ID="your_cloud_id"
export ES_API_KEY="your_api_key_id:your_api_key_secret"
```

### Method 2: Host, Username, and Password

For self-managed clusters or other connection scenarios.

```bash
export ES_HOST="https://your-elasticsearch-host:9200"
export ES_USERNAME="your_username"
export ES_PASSWORD="your_password"
```

## How to Use

Once the shell is running, you can start making requests to Elasticsearch.

- The first line of your input should be the HTTP method and the path (e.g., `GET /_search`).
- For requests with a body (like `POST` or `PUT`), write the JSON body on the following lines.
- Press `Meta+Enter` (or `Esc` then `Enter`) to submit the multi-line request.
- Use `Ctrl+D` to exit.

### Example

Here's how you would run a search query:

```
>>> GET /my-index/_search
{
  "query": {
    "match_all": {}
  }
}
```
(Press `Meta+Enter` to submit)

The shell will then execute the request and print the JSON response from Elasticsearch.
folder-organizer-tool 1.0.0
A CLI tool to organize files based on file type and extension.
Requires Python: >=3.7

# 📁 file-organizer-cli

A Python command-line utility to organize messy folders — clean up files by extension into neat subfolders like `Images`, `Documents`, `Code`, and more.

---

## 🚀 Features

- ✅ Organize files by extension (e.g. `.jpg`, `.pdf`, `.mp3`)
- ✅ Dry-run mode (simulate before actually moving files)
- ✅ Colored console output using `rich`
- ✅ Lightweight and easy to run
- ✅ Clean, readable CLI interface

---

## 📦 Installation

```bash
pip install rich
```

> No need for PyPI — just clone the repo and run via Python.

---

## 💻 Usage

```bash
python main.py --path /your/folder
```

### Example with dry-run mode:

```bash
python main.py --path ~/Downloads --dry-run
```

---

## 🧪 Command-Line Arguments

| Argument      | Description                            |
|---------------|----------------------------------------|
| `--path`      | Target folder to organize (**required**) |
| `--dry-run`   | Show what would move, without doing it |

---

## 🛠️ Extension Mapping (Default)

| Category   | Extensions                             |
|------------|----------------------------------------|
| Images     | `.jpg`, `.jpeg`, `.png`, `.gif`        |
| Documents  | `.pdf`, `.docx`, `.txt`, `.xlsx`       |
| Music      | `.mp3`, `.wav`                         |
| Code       | `.py`, `.js`, `.html`, `.css`          |
| Archives   | `.zip`, `.tar`, `.gz`                  |
| Videos     | `.mp4`, `.mov`, `.avi`                 |
| Others     | Everything else                        |

---

## 🧑‍💻 Developer Info

- **Author**: Qazi Arsalan  
- **GitHub**: [https://github.com/](https://github.com/)  
- **License**: MIT

---

## 📝 License

Licensed under the [MIT License](LICENSE).

---

## 🙌 Contributions

PRs and suggestions are welcome!  
This is just the beginning — more features coming soon:

- Recursive mode  
- Organize by date  
- Configurable mappings  
- Undo/rollback mode  
- Logging and summaries
mfd-event-log 0.9.0
Module for event logs handling
Requires Python: <3.14,>=3.10

> [!IMPORTANT]  
> This project is under development. All source code and features on the main branch are for the purpose of testing or evaluation and not production ready.

# MFD Event Log
Module for interacting with and managing Windows Event Logs.

## Usage
```python
from mfd_connect import RPyCConnection
from mfd_event_log import EventLog, EventType

conn = RPyCConnection(ip="x.x.x.x")
eventlog_obj = EventLog(connection=conn)
eventlog_obj.clear_event_log()
eventlog_obj.get_event_log()
eventlog_obj.get_event_log(source="Microsoft-Windows-Eventlog",
	event_type=EventType.INFORMATION, event_id="104")
result = eventlog_obj.get_and_verify_event_log()
result = eventlog_obj.get_and_verify_event_log(failure_entry_types=[EventType.INFORMATION])
result = eventlog_obj.get_and_verify_event_log(ignored_event_ids=["236"])
```


## Implemented methods

* `get_event_log(self, logger_name: str = "System", source: str = "", event_type: EventType = EventType.ALL, event_id: str = "") -> Dict[str, str]` - To get Windows Event Log.
* `clear_event_log(self) -> None` - Clear Windows Event Log.
* `get_and_verify_event_log(self, failure_entry_types: List[str] = None, ignored_event_ids: List[str] = None) -> bool` - Get Windows Event Log and check if it contains any unwanted entries.
* `verify_event_log(self, event_log_entries: Dict[str, str], ignored_event_ids: List[str] = None) -> bool` - Check if given list of Event Log entries contains any unwanted entries

* **Methods**
- `verify_log(driver: str) -> str` 

  Checks the system log for errors.

  **Parameters:**
  * driver - name of driver for check

  **Returns:**
  * `str` -  empty string if no errors found, error content otherwise

## OS supported:

* WINDOWS


## Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue [here](https://github.com/intel/mfd-event-log/issues).