Skip to main content

arches-resource-merge

arches-resource-merge is an Arches extension that adds a Bulk Data Manager ETL module for merging resource instances.

The extension installs a Merge Resources task. It merges two or more resource instances into a selected base resource, integrates data from the merge resources into the base resource, and deletes the merged resources after the merge completes. The task is reversible through the Bulk Data Manager task history undo action.

Requirements

  • Python 3.10+
  • Arches >=7.6.17,<8.3.0
  • Django 4.2

Installation

Install the package into the same Python environment that runs the host Arches project:

pip install arches-resource-merge

For local development, install the checkout in editable mode:

pip install -e /path/to/arches-resource-merge

Configure The Host Arches Project

Add arches_resource_merge to the host project's INSTALLED_APPS before arches.app.

Example:

INSTALLED_APPS = (
    # Django, Arches, and project apps...
    "arches_resource_merge",
)

# Keep arches.app last so extension templates and static assets can override
# core Arches files when needed.
INSTALLED_APPS += ("arches.app",)

Apply Migrations

Run the extension migration from the host Arches project:

python manage.py showmigrations arches_resource_merge
python manage.py migrate arches_resource_merge

The migration registers the Bulk Data Manager ETL module:

name: Merge Resources
slug: Resources_merge
component: views/components/etl_modules/Resources_merge
backend module: Resources_merge.py
class: Resourcesmerge

Build Frontend Assets

After installing the extension or changing hosted apps, rebuild the host project's frontend assets:

python manage.py generate_frontend_configuration
npm install
npm run build_development

For production deployments, use the host project's production build command.

Basic Use

  1. Start the host Arches application and Celery worker.
  2. Open Bulk Data Manager.
  3. Select Merge Resources.
  4. Choose the base resource that should remain after the merge.
  5. Choose the resources whose data should be merged into the base resource.
  6. Run the task.
  7. Use the task history undo action if a reversible merge needs to be rolled back.

Development

Useful local checks:

python -m py_compile arches_resource_merge/etl_modules/Resources_merge.py
python manage.py check
npm run build_development

Run database-changing commands only against an approved local or test database.

Metadata

Release files for arches-resource-merge 0.1.3

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

Source distribution (sdist)

Source distribution for arches-resource-merge 0.1.3
File Size Uploaded
arches_resource_merge-0.1.3.tar.gz 346.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arches-resource-merge 0.1.3
File Interpreter ABI Platform
arches_resource_merge-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 433.6 kB

Release files / arches_resource_merge-0.1.3.tar.gz

Download URL arches_resource_merge-0.1.3.tar.gz
Size 346.7 kB
Tags Source
SHA-256 checksum
How to use checksums
146e3bec7f6db0fb93b74f764e5d4f0b54ae0633302d83f0e9b47c7f8d715354
BLAKE2b-256 checksum
How to use checksums
a513491855badbd01d21c5b2da9d6e8444f72ea11da5fa05960c772e04470a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / arches_resource_merge-0.1.3-py3-none-any.whl

Download URL arches_resource_merge-0.1.3-py3-none-any.whl
Size 86.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd096e0eba59ba7e0a2efff30889ace97fad4c11c43d618a3c2209297cfbbc9b
BLAKE2b-256 checksum
How to use checksums
842ae8237de9b3404613c73c66495e51d1108ec1ede855a904a8ed0e13f83850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

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