Skip to main content

pggo

A redistricting plan graph for goal optimization (PGGO or "pogo")

Installing the Package

To install the package:

pip install plangraph

The latest version of the package is 0.4.0.

Then in your code, either import pggo or from pggo import .... Note: The import name is different from the package name.

Getting Started

from pggo import PlanGraph

plan: PlanGraph = PlanGraph(
    "NC",
    "congress",
    "testdata/NC_congress_root_map.csv",
    "testdata/NC_input_data.jsonl",
    "testdata/NC_graph.json",
)

See PlanGraph.md for using a PlanGraph. See Metrics.md for predefined metrics ("scores").

Testing

Run automated tests with:

pytest

Metadata

Release files for plangraph 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plangraph 0.4.0
File Size Uploaded Provenance Actions
plangraph-0.4.0.tar.gz 18.3 kB Without provenance Details for plangraph-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plangraph 0.4.0
File Interpreter ABI Platform Actions
plangraph-0.4.0-py3-none-any.whl Python 3 none any Details for plangraph-0.4.0-py3-none-any.whl

Total release size: 35.1 kB

Release files / plangraph-0.4.0.tar.gz

Download URL plangraph-0.4.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
754f4cdb1bb0bc5ea8545d2335a1b303753fee1d5968ab92ac9c52186c498f9f
BLAKE2b-256 checksum
How to use checksums
9bc4328afb674e1ced583f500107ecd7bd494bca15031b30927f051cc288025a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / plangraph-0.4.0-py3-none-any.whl

Download URL plangraph-0.4.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0cbb6b2d258f322fbf5e23d2c0a420999d5c171a9c949d4aa74abc83d50e3b6
BLAKE2b-256 checksum
How to use checksums
498d9dbdb54c140405ea21426f0703ed1c6a449c18e752bb28d8436e1a6b51de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for plangraph 0.4.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page