Skip to main content

A Plan Graph for Goal Optimization (PGGO or 'pogo')

Project description

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.2.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plangraph-0.2.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plangraph-0.2.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file plangraph-0.2.0.tar.gz.

File metadata

  • Download URL: plangraph-0.2.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for plangraph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e1f2454b163afdb29a8de560c9ee4ca8c1023c458c7442f436666ea4bba7c3d6
MD5 d9f8543e3b7d9586e901e304afa3d95a
BLAKE2b-256 5338f693165d2bbbf1b8cb5b939531c9cff67f8ac3937739bf201eb33a918872

See more details on using hashes here.

File details

Details for the file plangraph-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: plangraph-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for plangraph-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2dccf41318269d9b96cba98dbfc997e367fd58ee86be309cb45b03838983a2e9
MD5 983ac67dc3c2e842e57a9fc634be54c5
BLAKE2b-256 bfba19b658c4ae0dad1121a4fff9113ebd887ec1f4203e134b7e64e2f264b650

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page