voronoi

Python port of boost/polygon Voronoi library (with separate C++ binding)

https://github.com/lycantropos/voronoi

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary

Keywords

voronoi voronoi-decomposition voronoi-diagram voronoi-tessellation
Last synced: 10 months ago · JSON representation

Repository

Python port of boost/polygon Voronoi library (with separate C++ binding)

Basic Info
Statistics
  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • Open Issues: 1
  • Releases: 0
Topics
voronoi voronoi-decomposition voronoi-diagram voronoi-tessellation
Created almost 6 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

voronoi

In what follows python is an alias for python3.7 or pypy3.7 or any later version (python3.8, pypy3.8 and so on).

Installation

Install the latest pip & setuptools packages versions bash python -m pip install --upgrade pip setuptools

User

Download and install the latest stable version from PyPI repository bash python -m pip install --upgrade voronoi

Developer

Download the latest version from GitHub repository bash git clone https://github.com/lycantropos/voronoi.git cd voronoi

Install bash python setup.py install

Usage

```python

from voronoi.diagram import Diagram diagram = Diagram() diagram.construct([], []) diagram.cells == diagram.edges == diagram.vertices == [] True from voronoi.point import Point diagram = Diagram() diagram.construct([Point(0, 0), Point(4, 0), Point(4, 4), Point(0, 4)], []) from voronoi.faces import Vertex diagram.vertices == [Vertex(2, 2)] True from voronoi.segment import Segment diagram.construct([], [Segment(Point(0, 0), Point(4, 0)), ... Segment(Point(4, 4), Point(0, 4))]) diagram.vertices == [Vertex(2, 2), Vertex(0, 2), Vertex(4, 2)] True

`` forCPythonoriginal C++ implementation can be invoked by importing from_voronoi` module instead.

Development

Bumping version

Preparation

Install bump2version.

Pre-release

Choose which version number category to bump following semver specification.

Test bumping version bash bump2version --dry-run --verbose $CATEGORY

where $CATEGORY is the target version number category name, possible values are patch/minor/major.

Bump version bash bump2version --verbose $CATEGORY

This will set version to major.minor.patch-alpha.

Release

Test bumping version bash bump2version --dry-run --verbose release

Bump version bash bump2version --verbose release

This will set version to major.minor.patch.

Running tests

Install dependencies bash python -m pip install --force-reinstall -r requirements-tests.txt

Plain bash pytest

Inside Docker container: - with CPython bash docker-compose --file docker-compose.cpython.yml up - with PyPy bash docker-compose --file docker-compose.pypy.yml up

Bash script (e.g. can be used in Git hooks): - with CPython bash ./run-tests.sh or bash ./run-tests.sh cpython

  • with PyPy bash ./run-tests.sh pypy

PowerShell script (e.g. can be used in Git hooks): - with CPython powershell .\run-tests.ps1 or powershell .\run-tests.ps1 cpython - with PyPy powershell .\run-tests.ps1 pypy

Owner

  • Name: Azat Ibrakov
  • Login: lycantropos
  • Kind: user
  • Location: Russia

Pythoneer

GitHub Events

Total
  • Watch event: 3
Last Year
  • Watch event: 3

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 0
  • Average time to close issues: 6 days
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 2.67
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wzx-ziron (2)
  • eddsanity (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 1,130 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
pypi.org: voronoi
  • Homepage: https://github.com/lycantropos/voronoi/
  • Documentation: https://voronoi.readthedocs.io/
  • License: MIT License Copyright (c) 2020 Azat Ibrakov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.4.0
    published about 3 years ago
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 1,130 Last month
Rankings
Dependent packages count: 10.0%
Downloads: 10.8%
Average: 17.3%
Stargazers count: 21.5%
Dependent repos count: 21.7%
Forks count: 22.6%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • codecov/codecov-action v3.1.1 composite
  • docker/setup-qemu-action v2 composite
  • pypa/cibuildwheel v2.12.1 composite
  • pypa/gh-action-pypi-publish v1.6.4 composite
Dockerfile docker
  • ${IMAGE_NAME} ${IMAGE_VERSION} build
docker-compose.cpython.yml docker
  • lycantropos/voronoi-cpython 0.4.0
docker-compose.pypy.yml docker
  • lycantropos/voronoi-pypy 0.4.0
pyproject.toml pypi
  • dendroid >=1.6.1,<2.0
  • prioq >=0.6.0,<1.0
  • reprit >=0.8.0,<1.0
setup.py pypi