Skip to main content

Data managment tools used by MORPC

Project description

morpc-py

Introducion

The MORPC data team maintains a package with contains commonly-used constants, mappings, and functions to allow for code-reuse in multiple scripts. The package documentation and code is available at the morpc-py repository in GitHub.

This package is still in development but will contain the following modules:

  • morpc - Main library. Includes contents which are broadly applicable for MORPC's work, including MORPC branding, region definitions and utilities, and general purpose data manipulation functions.
  • morpc.frictionless - Functions and classes for working with metadata, including schemas, resources, and data packages. These are for internal processes that us the frictionless-py package. Frictionless was implemented roughly 2025 to manage all metadata and to develop workflow documentation.
  • morpc.census - Constants and functions that are relevant when working with Census data, including decennial census, ACS, and PEP.
  • morpc.rest_apt - Tools for working with ArcGIS Online REST API, including scripts for creating local copies as frictionless resources.
  • morpc.plot - Tools for standard plots which leverage MORPC branding and data visualization best practices.
  • morpc.color - Various tools for working with colors, largely implemented through morpc.plot.

Installation

A version of the package is available via pip and can be installed by a standard pip install.

$ pip install morpc

Dev Install

As the package is still in development, the best way to install it is via the pip -editable option. To do so:

  1. Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
  2. Using the following command to install an editable version, replacing the path to the correct location.
$ pip install -e "C:/path/to/folder/morpc-py/"

Import the package as normal

$ import morpc

To contribute to the development branch make changes in the local repo and push them to git. When making changes to the package, you will have to re-import the package. If you are working in a Jupyter environment you will have to do this after restarting the kernel.

Documentation

See docs for documentation.

(in development) there will be a livemark site for documenatation.

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

morpc-0.3.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

morpc-0.3.1-py3-none-any.whl (61.1 kB view details)

Uploaded Python 3

File details

Details for the file morpc-0.3.1.tar.gz.

File metadata

  • Download URL: morpc-0.3.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for morpc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ec82db6291bb8ac65d5add259316454a218ac7a33f06a2b5993283e6ed290ab5
MD5 852c3e0f6ca7e63449d37f8c493b9772
BLAKE2b-256 c4959a79f893d7e3d60361105ab0b8f7744f9140e27d081aef0751a05529d7d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpc-0.3.1.tar.gz:

Publisher: python-publish.yml on morpc/morpc-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morpc-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: morpc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 61.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for morpc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecef73dae291e9e50cfa6aba7cb6b7fc72bae583702a6ec27ddb96ce50fa223
MD5 16242aeb8a3e9194a0258b84a793b084
BLAKE2b-256 c532110c6a41ba8e75a2a23945069fc46e3528b20d7f63845808df1867767f35

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpc-0.3.1-py3-none-any.whl:

Publisher: python-publish.yml on morpc/morpc-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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