semvec/pypi-packages huggingface dataset:
hopkins-statistic 0.4.0
Compute the Hopkins statistic to assess clustering tendency.
Requires Python: >=3.11
Keywords: cluster-analysis, clusterability, clustering-tendency, data-mining, data-science, data-analysis, hopkins-statistic, machine-learning, spatial-randomness, statistics

# hopkins-statistic

[![CI](https://github.com/jo-phil/hopkins-statistic/actions/workflows/ci.yml/badge.svg)](https://github.com/jo-phil/hopkins-statistic/actions/workflows/ci.yml "View workflow runs")
[![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/jo-phil/dd436ee381602e21922433dfcdd0b9ec/raw/coverage.json)](https://github.com/jo-phil/hopkins-statistic/actions/workflows/ci.yml?query=branch%3Amain+event%3Apush "View coverage report")
[![PyPI - Version](https://img.shields.io/pypi/v/hopkins-statistic)](https://pypi.org/project/hopkins-statistic/ "View latest release on PyPI")
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hopkins-statistic)](https://pypi.org/project/hopkins-statistic/ "View supported Python versions on PyPI")
[![Docs](https://github.com/jo-phil/hopkins-statistic/actions/workflows/docs.yml/badge.svg)](https://jo-phil.github.io/hopkins-statistic/ "Read the documentation")
[![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.18172791-blue)](https://doi.org/10.5281/zenodo.18172791 "View on Zenodo")

hopkins-statistic is a library for computing the Hopkins statistic to assess
clustering tendency (also known as clusterability) by testing for departure from
complete spatial randomness (CSR) in point patterns.

This implementation defaults to the Cross and Jain (1982) formulation, raising
distances to the power of the data dimension. In two dimensions, this matches
the original definition by Hopkins and Skellam (1954). Because the resulting
statistic follows a beta distribution under the null hypothesis, *p*-values can
be computed analytically.

## Installation

```bash
pip install hopkins-statistic
```

## Usage

```python
import numpy as np
from hopkins_statistic import hopkins

rng = np.random.default_rng(42)

# Simple clustered example: two Gaussian blobs
centers = np.array([[0, 0], [0, 1]])
labels = rng.integers(len(centers), size=100)
X = centers[labels] + rng.normal(scale=0.1, size=(100, 2))

statistic = hopkins(X, rng=rng)
print(f"{statistic:.3f}")
#> 0.771
```

## License

MIT.
See [LICENSE](https://github.com/jo-phil/hopkins-statistic/blob/main/LICENSE).
mfbt-cli 0.1.9
CLI tool for the mfbt platform — interactive TUI and subcommands for managing mfbt projects
Requires Python: >=3.10

# mfbt CLI

Command-line tool for the [mfbt](https://mfbt.ai) platform. Provides both an interactive TUI mode and traditional subcommands for managing mfbt projects.

## Features

- **Interactive TUI** -- K9S-style keyboard-driven interface for navigating projects, phases, modules, and features
- **Subcommands** -- Traditional CLI commands for scripting and automation (`auth`, `projects`, `ralph`, and more)
- **OAuth 2.1 Authentication** -- Secure browser-based login with PKCE and API key support
- **Real-time Updates** -- WebSocket-powered job monitoring and status tracking
- **Agent Orchestration** -- Auto-invoke coding agents to implement pending features with `mfbt ralph`

## Requirements

- Python 3.10+

## Installation

```bash
pip install mfbt-cli
```

## Quick Start

```bash
# Authenticate with the mfbt platform
mfbt auth login

# List your projects
mfbt projects list

# Launch the interactive TUI
mfbt

# Show version
mfbt --version
```

## Usage

```bash
# Run with verbose output
mfbt -v
mfbt -vv    # debug
mfbt -vvv   # trace

# Authentication commands
mfbt auth login
mfbt auth status
mfbt auth logout

# Project management
mfbt projects list
mfbt projects show
mfbt projects switch

# Auto-invoke coding agents
mfbt ralph
```

## Development Setup

```bash
# Clone the repository
git clone https://github.com/Zipstack/mfbt-cli.git
cd mfbt-cli

# Create a virtual environment
python -m venv .venv
source .venv/bin/activate  # Unix
# .venv\Scripts\activate   # Windows

# Install in editable mode with dev dependencies
pip install -e .
pip install -r requirements-dev.txt

# Run tests
pytest tests/ -v

# Code quality
black --check src/ tests/
ruff check src/ tests/
mypy src/
```

## License

MIT -- see [LICENSE](LICENSE) for details.
gitlabform 5.0.0rc1
🏗 Specialized configuration as a code tool for GitLab projects, groups and more using hierarchical configuration written in YAML
Requires Python: >=3.14.0
Keywords: cli, yaml, gitlab, configuration-as-code

[![version](https://badge.fury.io/gh/gitlabform%2Fgitlabform.svg)](https://badge.fury.io/gh/gitlabform%2Fgitlabform)
![release date](https://img.shields.io/github/release-date/gitlabform/gitlabform)
[![Downloads](https://static.pepy.tech/badge/gitlabform/month)](https://pepy.tech/project/gitlabform)
[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![codecov](https://codecov.io/gh/gitlabform/gitlabform/branch/main/graph/badge.svg?token=NOMttkpB2A)](https://codecov.io/gh/gitlabform/gitlabform)
[![gitlabform](https://snyk.io/advisor/python/gitlabform/badge.svg)](https://snyk.io/advisor/python/gitlabform)

<img src="https://raw.githubusercontent.com/gitlabform/gitlabform/main/docs/images/gitlabform-logo.png" width="600px" alt="logo">

🏗 GitLabForm is a specialized configuration as a code tool for GitLab:

* application settings,
* groups,
* projects,

...and more using hierarchical configuration written in YAML.

Please see <a href="https://gitlabform.github.io/gitlabform/">the project site</a> for more information.