morpc 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- morpc-0.3.2/.github/workflows/deploy.yml +49 -0
- morpc-0.3.2/.gitignore +11 -0
- morpc-0.3.2/PKG-INFO +62 -0
- morpc-0.3.2/README.md +43 -0
- morpc-0.3.2/docs/.gitignore +2 -0
- morpc-0.3.2/docs/.ipynb_checkpoints/index-checkpoint.md +44 -0
- morpc-0.3.2/docs/.ipynb_checkpoints/myst-checkpoint.yml +6 -0
- morpc-0.3.2/docs/01-morpc-py-demos.ipynb +1327 -0
- morpc-0.3.2/docs/02-morpc-countylookup-demo.ipynb +958 -0
- morpc-0.3.2/docs/03-morpc-varlookup-demo.ipynb +57 -0
- morpc-0.3.2/docs/04-morpc-restapi-demo.ipynb +387 -0
- morpc-0.3.2/docs/05-morpc-geos-demo.ipynb +898 -0
- morpc-0.3.2/docs/06-morpc-frictionless-demo.ipynb +506 -0
- morpc-0.3.2/docs/07-morpc-census-demo.ipynb +648 -0
- morpc-0.3.2/docs/08-morpc-plot-demo.ipynb +468 -0
- morpc-0.3.2/docs/09-morpc-color-demo.ipynb +1784 -0
- morpc-0.3.2/docs/assets/HORIZONTAL_LOGOS_PRIMARY_COLOR_V2.png +0 -0
- morpc-0.3.2/docs/index.md +44 -0
- morpc-0.3.2/docs/myst.yml +12 -0
- morpc-0.3.2/docs/temp_data/MORPC MPO Boundary.gpkg +0 -0
- morpc-0.3.2/docs/temp_data/Screenshot 2025-06-03 080403.png +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/dataChartToExcelOutput.xlsx +0 -0
- morpc-0.3.2/docs/temp_data/rest_resource.json +53 -0
- morpc-0.3.2/morpc/__init__.py +9 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/census/census.py +64 -34
- morpc-0.3.2/morpc/color/__init__.py +2 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/color/color.py +133 -110
- morpc-0.3.2/morpc/color/morpc_colors.json +1 -0
- morpc-0.3.2/morpc/color/palette.py +71 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/frictionless/frictionless.py +23 -52
- {morpc-0.3.0 → morpc-0.3.2}/morpc/morpc.py +124 -30
- {morpc-0.3.0 → morpc-0.3.2}/morpc/plot/plot.py +6 -6
- morpc-0.3.2/morpc/rest_api/__init__.py +1 -0
- morpc-0.3.2/morpc/rest_api/rest_api.py +185 -0
- morpc-0.3.2/morpc.egg-info/PKG-INFO +62 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc.egg-info/SOURCES.txt +24 -6
- {morpc-0.3.0 → morpc-0.3.2}/morpc.egg-info/requires.txt +1 -0
- {morpc-0.3.0 → morpc-0.3.2}/pyproject.toml +4 -0
- morpc-0.3.0/.gitignore +0 -5
- morpc-0.3.0/PKG-INFO +0 -17
- morpc-0.3.0/docs/livemark.yaml +0 -17
- morpc-0.3.0/docs/morpc-color-demo.ipynb +0 -463
- morpc-0.3.0/docs/morpc-plot-demo.ipynb +0 -145
- morpc-0.3.0/docs/morpc-py-demos.ipynb +0 -2808
- morpc-0.3.0/index.html +0 -2209
- morpc-0.3.0/morpc/__init__.py +0 -7
- morpc-0.3.0/morpc/color/__init__.py +0 -1
- morpc-0.3.0/morpc/color/morpc_colors.json +0 -866
- morpc-0.3.0/morpc.egg-info/PKG-INFO +0 -17
- {morpc-0.3.0 → morpc-0.3.2}/.gitattributes +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/.github/workflows/python-publish.yml +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/.ipynb_checkpoints/morpc-color-demo-checkpoint.ipynb +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/plot_df.csv +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/plot_df.resource.yaml +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/plot_df.schema.yaml +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/temp_df.csv +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/temp_df.resource.yaml +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/docs/temp_data/temp_df.schema.yaml +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/census/__init__.py +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/color/.ipynb_checkpoints/color-checkpoint.py +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/color/.ipynb_checkpoints/morpc_colors-checkpoint.json +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/frictionless/__init__.py +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc/plot/__init__.py +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc.egg-info/dependency_links.txt +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/morpc.egg-info/top_level.txt +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/release_new_package.md +0 -0
- {morpc-0.3.0 → morpc-0.3.2}/setup.cfg +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# This file was created automatically with `myst init --gh-pages` 🪄 💚
|
|
2
|
+
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
|
|
3
|
+
|
|
4
|
+
name: MyST GitHub Pages Deploy
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
# Runs on pushes targeting the default branch
|
|
8
|
+
branches: [main]
|
|
9
|
+
env:
|
|
10
|
+
# `BASE_URL` determines, relative to the root of the domain, the URL that your site is served from.
|
|
11
|
+
# E.g., if your site lives at `https://mydomain.org/myproject`, set `BASE_URL=/myproject`.
|
|
12
|
+
# If, instead, your site lives at the root of the domain, at `https://mydomain.org`, set `BASE_URL=''`.
|
|
13
|
+
BASE_URL: /${{ github.event.repository.name }}
|
|
14
|
+
|
|
15
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
pages: write
|
|
19
|
+
id-token: write
|
|
20
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
21
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
22
|
+
concurrency:
|
|
23
|
+
group: 'pages'
|
|
24
|
+
cancel-in-progress: false
|
|
25
|
+
jobs:
|
|
26
|
+
deploy:
|
|
27
|
+
environment:
|
|
28
|
+
name: github-pages
|
|
29
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
- name: Setup Pages
|
|
34
|
+
uses: actions/configure-pages@v3
|
|
35
|
+
- uses: actions/setup-node@v4
|
|
36
|
+
with:
|
|
37
|
+
node-version: 18.x
|
|
38
|
+
- name: Install MyST Markdown
|
|
39
|
+
run: npm install -g mystmd
|
|
40
|
+
- name: Build HTML Assets
|
|
41
|
+
run: myst build --html
|
|
42
|
+
working-directory: ./docs
|
|
43
|
+
- name: Upload artifact
|
|
44
|
+
uses: actions/upload-pages-artifact@v3
|
|
45
|
+
with:
|
|
46
|
+
path: './docs/_build/html'
|
|
47
|
+
- name: Deploy to GitHub Pages
|
|
48
|
+
id: deployment
|
|
49
|
+
uses: actions/deploy-pages@v4
|
morpc-0.3.2/.gitignore
ADDED
morpc-0.3.2/PKG-INFO
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: morpc
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Data managment tools used by MORPC
|
|
5
|
+
Author-email: MORPC data team <dataandmaps@morpc.org>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Development Status :: 1 - Planning
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: requests
|
|
12
|
+
Requires-Dist: pandas
|
|
13
|
+
Requires-Dist: geopandas
|
|
14
|
+
Requires-Dist: frictionless
|
|
15
|
+
Requires-Dist: shapely
|
|
16
|
+
Requires-Dist: IPython
|
|
17
|
+
Requires-Dist: xlsxwriter
|
|
18
|
+
Requires-Dist: plotnine
|
|
19
|
+
|
|
20
|
+
# morpc-py
|
|
21
|
+
|
|
22
|
+
## Introducion
|
|
23
|
+
|
|
24
|
+
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](https://github.com/morpc/morpc-py) repository in GitHub.
|
|
25
|
+
|
|
26
|
+
This package is still in development but will contain the following modules:
|
|
27
|
+
|
|
28
|
+
- 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.
|
|
29
|
+
- 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](https://github.com/frictionlessdata/frictionless-py/tree/main) package. Frictionless was implemented roughly 2025 to manage all metadata and to develop workflow documentation.
|
|
30
|
+
- morpc.census - Constants and functions that are relevant when working with Census data, including decennial census, ACS, and PEP.
|
|
31
|
+
- morpc.rest_apt - Tools for working with ArcGIS Online REST API, including scripts for creating local copies as frictionless resources.
|
|
32
|
+
- morpc.plot - Tools for standard plots which leverage MORPC branding and data visualization best practices.
|
|
33
|
+
- morpc.color - Various tools for working with colors, largely implemented through morpc.plot.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
A version of the package is available via pip and can be installed by a standard pip install.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
$ pip install morpc
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Dev Install
|
|
44
|
+
|
|
45
|
+
As the package is still in development, the best way to install it is via the pip [-editable option](https://setuptools.pypa.io/en/latest/userguide/development_mode.html). To do so:
|
|
46
|
+
1. Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
|
|
47
|
+
2. Using the following command to install an editable version, replacing the path to the correct location.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
$ pip install -e "C:/path/to/folder/morpc-py/"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Import the package as normal
|
|
54
|
+
```bash
|
|
55
|
+
$ import morpc
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
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.
|
|
59
|
+
|
|
60
|
+
## Documentation
|
|
61
|
+
|
|
62
|
+
See [docs](https://morpc.github.io/morpc-py) for documentation.
|
morpc-0.3.2/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# morpc-py
|
|
2
|
+
|
|
3
|
+
## Introducion
|
|
4
|
+
|
|
5
|
+
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](https://github.com/morpc/morpc-py) repository in GitHub.
|
|
6
|
+
|
|
7
|
+
This package is still in development but will contain the following modules:
|
|
8
|
+
|
|
9
|
+
- 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.
|
|
10
|
+
- 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](https://github.com/frictionlessdata/frictionless-py/tree/main) package. Frictionless was implemented roughly 2025 to manage all metadata and to develop workflow documentation.
|
|
11
|
+
- morpc.census - Constants and functions that are relevant when working with Census data, including decennial census, ACS, and PEP.
|
|
12
|
+
- morpc.rest_apt - Tools for working with ArcGIS Online REST API, including scripts for creating local copies as frictionless resources.
|
|
13
|
+
- morpc.plot - Tools for standard plots which leverage MORPC branding and data visualization best practices.
|
|
14
|
+
- morpc.color - Various tools for working with colors, largely implemented through morpc.plot.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
A version of the package is available via pip and can be installed by a standard pip install.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
$ pip install morpc
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Dev Install
|
|
25
|
+
|
|
26
|
+
As the package is still in development, the best way to install it is via the pip [-editable option](https://setuptools.pypa.io/en/latest/userguide/development_mode.html). To do so:
|
|
27
|
+
1. Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
|
|
28
|
+
2. Using the following command to install an editable version, replacing the path to the correct location.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
$ pip install -e "C:/path/to/folder/morpc-py/"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Import the package as normal
|
|
35
|
+
```bash
|
|
36
|
+
$ import morpc
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
See [docs](https://morpc.github.io/morpc-py) for documentation.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# morpc-py
|
|
2
|
+
|
|
3
|
+
## Introducion
|
|
4
|
+
|
|
5
|
+
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](https://github.com/morpc/morpc-py) repository in GitHub.
|
|
6
|
+
|
|
7
|
+
This package is still in development but will contain the following modules:
|
|
8
|
+
|
|
9
|
+
- 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.
|
|
10
|
+
- 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](https://github.com/frictionlessdata/frictionless-py/tree/main) package. Frictionless was implemented roughly 2025 to manage all metadata and to develop workflow documentation.
|
|
11
|
+
- morpc.census - Constants and functions that are relevant when working with Census data, including decennial census, ACS, and PEP.
|
|
12
|
+
- morpc.rest_apt - Tools for working with ArcGIS Online REST API, including scripts for creating local copies as frictionless resources.
|
|
13
|
+
- morpc.plot - Tools for standard plots which leverage MORPC branding and data visualization best practices.
|
|
14
|
+
- morpc.color - Various tools for working with colors, largely implemented through morpc.plot.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
A version of the package is available via pip and can be installed by a standard pip install.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
$ pip install morpc
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Dev Install
|
|
25
|
+
|
|
26
|
+
As the package is still in development, the best way to install it is via the pip [-editable option](https://setuptools.pypa.io/en/latest/userguide/development_mode.html). To do so:
|
|
27
|
+
1. Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
|
|
28
|
+
2. Using the following command to install an editable version, replacing the path to the correct location.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
$ pip install -e "C:/path/to/folder/morpc-py/"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Import the package as normal
|
|
35
|
+
```bash
|
|
36
|
+
$ import morpc
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
See [docs](https://morpc.github.com/morpc-py) for documentation.
|
|
44
|
+
|