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:
- Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file morpc-0.3.4.tar.gz.
File metadata
- Download URL: morpc-0.3.4.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b9f53413524cdfaa3ec8befc92ce8524c06d76d08afe72f99ebd13db363ef05
|
|
| MD5 |
6c7b2b15f69e6db0fa001feaaea5bd5d
|
|
| BLAKE2b-256 |
1e83cdab9af2f207c83ade89dad6ebef47764d134d99b9d5b46abddc4e0ebfea
|
Provenance
The following attestation bundles were made for morpc-0.3.4.tar.gz:
Publisher:
python-publish.yml on morpc/morpc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morpc-0.3.4.tar.gz -
Subject digest:
4b9f53413524cdfaa3ec8befc92ce8524c06d76d08afe72f99ebd13db363ef05 - Sigstore transparency entry: 248688253
- Sigstore integration time:
-
Permalink:
morpc/morpc-py@765a242b337b846542a94deb5da63faf7ba0082c -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/morpc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@765a242b337b846542a94deb5da63faf7ba0082c -
Trigger Event:
release
-
Statement type:
File details
Details for the file morpc-0.3.4-py3-none-any.whl.
File metadata
- Download URL: morpc-0.3.4-py3-none-any.whl
- Upload date:
- Size: 66.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c27740bba4bc63e6d53b376cf07eb95701afd80c0517a3431186fe23ce34a7de
|
|
| MD5 |
4e93a888f8ca4165f8d24637c0f2950b
|
|
| BLAKE2b-256 |
f31c497d1cfa4eeba10219f184bfd438e306f00fa4dfe5aaf16c45ea6b557b45
|
Provenance
The following attestation bundles were made for morpc-0.3.4-py3-none-any.whl:
Publisher:
python-publish.yml on morpc/morpc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morpc-0.3.4-py3-none-any.whl -
Subject digest:
c27740bba4bc63e6d53b376cf07eb95701afd80c0517a3431186fe23ce34a7de - Sigstore transparency entry: 248688255
- Sigstore integration time:
-
Permalink:
morpc/morpc-py@765a242b337b846542a94deb5da63faf7ba0082c -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/morpc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@765a242b337b846542a94deb5da63faf7ba0082c -
Trigger Event:
release
-
Statement type: