Openmander Python Bindings
This directory contains the Python bindings for Openmander.
Installation
To install the Openmander Python bindings, you can use pip. Make sure you have Python ≥ 3.8 and pip installed on your system.
python -m pip install openmander
Usage
Once installed, you can import the Openmander module in your Python scripts and start using its features.
import openmander as om
# Download state pack for Illinois
pack_path = om.download("IL")
IL_map = om.Map(pack_path)
plan = om.Plan(IL_map, num_districts=17)
# Generate a random configuration of 17 districts.
plan.randomize()
# Balance the total population of each district.
plan.equalize("T_20_CENS_Total", tolerance=0.002, max_iter=1000)
# Output the block assignments to a csv file.
plan.to_csv("IL-block-assign.csv")
Metadata
Release files for openmander 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openmander-0.1.3-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
Release files / openmander-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | openmander-0.1.3-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 23.2 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4924e2d23103d65b0a4d48116bc8fa14f40f26445e53638b4646f827728b0d89
|
|
BLAKE2b-256 checksum How to use checksums |
415a816ee65bbaa6e4f11bf7d4b2f78274d80e57eefb24541f8b126196dd8226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.9.4
|
Security for openmander 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.