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.

Download files

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

Source Distribution

arches_resource_merge-0.1.3.tar.gz (346.7 kB view details)

Uploaded Source

Built Distribution

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

arches_resource_merge-0.1.3-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

Details for the file arches_resource_merge-0.1.3.tar.gz.

File metadata

  • Download URL: arches_resource_merge-0.1.3.tar.gz
  • Upload date:
  • Size: 346.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for arches_resource_merge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 146e3bec7f6db0fb93b74f764e5d4f0b54ae0633302d83f0e9b47c7f8d715354
MD5 fd71d0b8f7593beda9800d0b7792e7dd
BLAKE2b-256 a513491855badbd01d21c5b2da9d6e8444f72ea11da5fa05960c772e04470a61

See more details on using hashes here.

File details

Details for the file arches_resource_merge-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for arches_resource_merge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd096e0eba59ba7e0a2efff30889ace97fad4c11c43d618a3c2209297cfbbc9b
MD5 51b8dcabfd92fe171db2129c1ef8ad6b
BLAKE2b-256 842ae8237de9b3404613c73c66495e51d1108ec1ede855a904a8ed0e13f83850

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 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