semvec/pypi-packages huggingface dataset:
nexus-insight-collector 0.1.0
An automated statistics and audit tool for large-scale Nexus repositories.
License: MIT
Requires Python: >=3.8

# Nexus Insight Collector

`nexus-insight-collector` is an automated statistics and audit tool designed to
analyze large‑scale [Nexus](https://www.sonatype.com/products/repository-pro) repositories.
It crawls repositories concurrently, caches component metadata in SQLite,
exports complete snapshots to CSV, and generates summary and detail reports in
Excel format. The tool also supports checkpointing so long‑running jobs can be
resumed if interrupted.

## Features

- **Concurrent crawling**: Uses Python’s `ThreadPoolExecutor` to query multiple
  repositories in parallel.
- **Fault tolerant**: Saves progress to a JSON checkpoint file and uses a
  dedicated thread to persist data into SQLite.
- **Cold vs. hot data insight**: Collects both last updated and last
  downloaded timestamps for each component.
- **Exportable reports**: Produces a CSV backup of all raw component data and
  an Excel workbook summarizing repository usage and storage consumption.

## Installation

````bash
pip install nexus-insight-collector
````

This will install the package and register a `nexus-insight-collector` command
in your environment.

## Usage

After installation, simply run the command:

````bash
nexus-insight-collector
````

The collector will start crawling the repositories defined in the source code
and write results into a SQLite database as well as the exported reports.

### Configuration

The default configuration values such as `NEXUS_URL`, `USERNAME`, `PASSWORD` and
the list of repositories are defined at the top of
`nexus_insight_collector/collector.py`. Modify these constants to point at
your own Nexus instance and credentials before running the tool. Future
enhancements could expose these as command‑line options for greater
flexibility.

## Development

If you would like to work on the code or run it in editable mode, clone
the repository and install the development dependencies:

````bash
git clone <repo-url>
cd nexus-insight-collector
pip install -e .
````

You can then invoke the command locally via `python -m
nexus_insight_collector.collector` or use `nexus-insight-collector`.

## License

This project is licensed under the MIT License. See the `LICENSE` file for
details.
ucl-tools 1.0.0
UCL Tools SDK for getting and executing tools
License: MIT
Requires Python: >=3.8

# ucl-tools (Python)

UCL Tools SDK for Python - Get and execute tools via REST API.

## Installation

```bash
pip install ucl-tools
```

## Usage

```python
from ucl_sdk import UCLClient

client = UCLClient(
    space_id="your-space-id",
    tenant_id="your-tenant-id",      # optional, defaults to ""
    gateway_id="your-gateway-id",    # optional, defaults to space_id
    api_key="your-api-key",          # either api_key or auth_token required
    # auth_token="your-auth-token",
)

# Get available tools
tools = client.get_tools(limit=10)
print(tools)

# Get tools filtered by prompt (search by keywords)
email_tools = client.get_tools(limit=10, prompt="send email")
print(email_tools)

# Execute a tool
result = client.execute_tool(
    tool_name="tool_name",
    parameters={
        "param1": "value1",
    },
)
print(result)
```

## API Reference

### `UCLClient`

#### Constructor Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `space_id` | `str` | Yes | - | Your space ID |
| `tenant_id` | `str` | No | `""` | Your tenant ID |
| `gateway_id` | `str` | No | `space_id` | Your gateway ID |
| `api_key` | `str` | No* | - | Your API key |
| `auth_token` | `str` | No* | - | Your auth token |

*Either `api_key` or `auth_token` is required.

#### Methods

##### `get_tools(limit: int = 10, prompt: Optional[str] = None) -> list[Tool]`

Retrieves available tools. Optionally filter by keywords in tool name or description.

```python
class Tool(TypedDict):
    name: str
    description: str
    inputSchema: dict[str, Any]
```

##### `execute_tool(tool_name: str, parameters: Optional[dict] = None) -> ExecuteToolResponse`

Executes a tool.

```python
class ExecuteToolResponse(TypedDict):
    body: dict[str, Any]
    rawBody: str
    statusCode: int
```

## Development

```bash
# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Run type checking
mypy ucl_sdk
```

## License

MIT