semvec/pypi-packages huggingface dataset:
polylabel-pyo3 0.1.1
Polylabel algorithm for optimal label centers in polygons (python wheels).
License: MIT
Requires Python: >=3.6
Keywords: geometry,geo,polylabel,opimization,python,pyo3

[![Test](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/test.yml/badge.svg)](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/test.yml)
[![Build](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/build.yml/badge.svg)](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/build.yml)
[![Benchmark](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/bench.yml/badge.svg)](https://github.com/MoonVision/polylabel-pyo3/actions/workflows/bench.yml) [![PyPI version](https://badge.fury.io/py/polylabel-pyo3.svg)](https://badge.fury.io/py/polylabel-pyo3)

# polylabel-pyo3

`polylabel-pyo3` lets you calculate the [pole of inaccessibility](https://github.com/mapbox/polylabel) in Python. It's a [pyo3](https://github.com/PyO3/pyo3) wrapper of [polylabel-rs](https://github.com/urschrei/polylabel-rs).

## Install

```
pip install polylabel-pyo3
```

## Use

```python
from polylabel_pyo3 import polylabel_ext, polylabel_ext_np

# define an open L-shape
L = [(0,0),(1,0),(1,1),(2,1),(2,2),(0,2)]

polylabel_ext(L, 1.0)
# (0.5, 0.5)

# A version for numpy.ndarray only is slightly faster
import numpy as np
polylabel_ext_np(np.array(L, dtype=np.float), 1.0)
# (0.5, 0.5)

# Note that the optional polylabel center for an L-shape
# is in between its mean of exterior vertices and origin
np.mean(L, axis=0)
# array([1., 1.])
```

## GUI Example

```
pip install -r examples/requirements.txt
python examples/polylabel_gui.py
```

Drag your shape with the mouse and observe a `momentum` based center in grey and `polylabel` center in green:

![](./docs/polylabel_gui-min.png)

## Develop

Requirements:

- Rust Toolchain
- Python >=3.7

In a `venv` or conda `env`:
```
pip install maturin -r requirements.txt
pre-commit install
```

### Test

```
maturin develop
pytest -v
```

### Benchmark

```
maturin develop --release
pyest benchmark
```
mkdocs-custommill 1.3.0
Improved and extended version of the Windmill theme
License: MIT

[![PyPI][pypi-image]][pypi-link]

  [pypi-image]: https://img.shields.io/pypi/v/mkdocs-custommill.svg
  [pypi-link]: https://pypi.python.org/pypi/mkdocs-custommill

# CustomMill theme for [MkDocs](https://github.com/mkdocs/mkdocs/)
Another iteration on the awesome [Windmill theme](https://github.com/gristlabs/mkdocs-windmill) for MkDocs. This is permitted by the MIT License.

Highlights:
- Clean navigation for large documentation projects
- Retains the state of the menu across page transitions
- Versatile search with term highlighting in a quick search and on its own page
- Supports syntax highlighting within pages
- Deep nesting of pages in folders

## Improvements over Windmill

- Customizable colors!
- Customizable links in the navigation menu
- A lot of small stylistic and design fixes
- Better search result listing
- Bootstrap 5 and no more jQuery

## Quick start

To install using `pip`:
``` sh
pip install mkdocs-custommill
```

To use in `mkdocs.yml`:
``` yaml
theme: custommill
```

## Demo and documentation
See [here](https://siphalor.github.io/mkdocs-custommill/) for a demo and some documentation :)

## Development

If doing development on `mkdocs-custommill`, check it out with
``` sh
git clone https://github.com/Siphalor/mkdocs-custommill/
cd mkdocs-custommill
```
APIAlchemy 1.3.1
API toolkit for Python, modeled after SQLAlchemy
License: MIT

# APIAlchemy

API toolkit for Python, modeled after SQLAlchemy

## Installation

```
pip install APIAlchemy
```

## Overview

APIAlchemy provides developers an abstraction layer for consuming web services from the following vendors:
- [AppDynamics](https://docs.appdynamics.com/display/PRO43/Metric+and+Snapshot+API)
- [ExtraHop](https://docs.extrahop.com/7.9/rest-extract-metrics)
- [GitHub](https://developer.github.com/v3)
- [New Relic](https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph)
- [Prometheus](https://prometheus.io/docs/prometheus/latest/querying/api)
- [Prometheus-to-Graphite bridge](https://github.com/prometheus/client_python#graphite)
- [Prometheus Pushgateway](https://github.com/prometheus/pushgateway)
- [SolarWinds](https://github.com/solarwinds/OrionSDK/wiki/REST)
- [Splunk](https://docs.splunk.com/Documentation/Splunk/8.0.2/RESTUM/RESTusing)
- [Wavefront](https://github.com/wavefrontHQ/wavefront-sdk-python)

## License

Distributed under the [MIT license](https://opensource.org/licenses/MIT).