dconvexhull
An educational Python package that provides a simple API for computing the convex hull of a 2D point set.
This package wraps a C++ module for efficient computation and offers Python-friendly interfaces for students, researchers, and developers.
✨ Features
- Compute convex hulls for 2D point sets.
- Input formats:
- Python 2D lists (
[[x1, y1], [x2, y2], ...]) - CSV files containing 2D coordinates
- Python 2D lists (
- Output:
- A PDF file that visualizes the convex hull and highlights the vertices.
- Educational purpose: designed to help Python users understand convex hull algorithms and visualization workflows.
- First edition: only supports 2D data.
📦 Installation
You can install the package directly from PyPI (after publishing):
pip install dconvexhull
Or install locally for development:
git clone https://github.com/yourusername/dconvexhull.git
cd dconvexhull
pip install .
🚀 USAGE
After installation, you can import and use the package as follows: Example 1: Using a Python 2D list
from dconvexhull import convxHull
# Define a set of points
ptc = [[0, 0], [1, 1], [2, 0], [2, 2], [0, 2]]
# Draw convex hull from array input
convxHull.draw_convxHull_from_arr(ptc)
Example 2: Using a CSV fil
from dconvexhull import operations
operations.compute_convex_hull("points.csv")
This will generate a PDF file () that shows the convex hull polygon and its vertices.
📖 Educational Notes
• Convex Hull: The smallest convex polygon that contains all points in a set. • This package demonstrates how Python can interface with C++ modules for computational geometry. • Visualization is handled with matplotlib, making results easy to interpret for students and researchers.
⚙️ Dependencies
- matplotlib (for visualization and PDF export)
🧑🏫 Target Audience
• Python learners exploring computational geometry • Students studying convex hull algorithms • Developers interested in Python–C++ integration
Metadata
Release files for dconvexhull 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dconvexhull-0.1.3.tar.gz | 100.1 kB | Without provenance | Details for dconvexhull-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dconvexhull-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for dconvexhull-0.1.3-py3-none-any.whl |
Total release size: 199.0 kB
Release files / dconvexhull-0.1.3.tar.gz
| Download URL | dconvexhull-0.1.3.tar.gz |
|---|---|
| Size | 100.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3254b9f8290733218c2077259023aec70d9890609cf19ba1aef1cb8656e36cf7
|
|
BLAKE2b-256 checksum How to use checksums |
919f2e65af12a7bc7a7efd05880227f875b70732c306570b4bf15561a241bda4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / dconvexhull-0.1.3-py3-none-any.whl
| Download URL | dconvexhull-0.1.3-py3-none-any.whl |
|---|---|
| Size | 98.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41202ee0be8beb99a89e1da5a505dce4f25384f171fc2aef8ef9dcf9b141aac5
|
|
BLAKE2b-256 checksum How to use checksums |
8c550ec0c6194ccfb1760f9acb699c342bee447a2840553521da9ab0b6f6763a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for dconvexhull 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.