Skip to main content

arches-csv

arches-csv is an Arches extension that adds a Bulk Data Manager ETL module for loading Arches resource data from CSV files.

The extension installs as a separate CSV import module named Import Single CSV Plugin. It does not replace the bundled Arches Import Single CSV module.

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-csv

For local development, install the checkout in editable mode:

pip install -e /path/to/arches-csv

Configure The Host Arches Project

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

Example:

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

# 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_csv
python manage.py migrate arches_csv

The migration registers the Bulk Data Manager ETL module:

name: Import Single CSV Plugin
slug: import-single-csv-plugin
component: views/components/etl_modules/import-single-csv-plugin
backend module: import_single_csv_plugin.py
class: ImportSingleCsv

The plugin uses a distinct module and component name so it can coexist with the bundled Arches CSV importer:

Bundled Arches module: Import Single CSV / import-single-csv
External plugin module: Import Single CSV Plugin / import-single-csv-plugin

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.

If the frontend has not been rebuilt, opening the plugin ETL task can fail with a browser console error such as:

Unknown component 'import-single-csv-plugin'

Basic Use

  1. Start the host Arches application and Celery worker.
  2. Open Bulk Data Manager.
  3. Select Import Single CSV Plugin.
  4. Choose the target resource model.
  5. Upload a CSV file.
  6. Map CSV columns to Arches node aliases.
  7. Validate the file, then run the import.

For a first smoke test, use a small CSV with simple string fields before adding concept or resource-instance relationship columns. Relationship fields require the referenced resources to exist in the database, and concept fields require valid concept UUIDs or labels.

Development

Useful local checks:

python -m py_compile \
  arches_csv/etl_modules/ext_import_single_csv.py \
  arches_csv/etl_modules/import_single_csv_plugin.py \
  arches_csv/migrations/0001_add_csv_etl_module.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_csv-0.1.0.tar.gz (249.3 kB view details)

Uploaded Source

Built Distribution

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

arches_csv-0.1.0-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file arches_csv-0.1.0.tar.gz.

File metadata

  • Download URL: arches_csv-0.1.0.tar.gz
  • Upload date:
  • Size: 249.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for arches_csv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 255a062deacff6bf74a6ca2cd3eece1f6148a6f722169f365719197e8f3a19bf
MD5 08326eca9b3a9770f4cc0aa8dad42252
BLAKE2b-256 539723b7851d4b85c67095e662c2661e676cfaa7c07197c12491d46ed4810863

See more details on using hashes here.

File details

Details for the file arches_csv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arches_csv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for arches_csv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 401d6c1b1fcdedbdef659f70902c3c4d8087e3ac9d98ebd64ea913c03a790715
MD5 24731323c56988b65e52b6145cedf2b6
BLAKE2b-256 c9411b0b4e5b4f0db76bfe07055d9f2c95ba7fb3845f3b889944908d7ce7097d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.2

2 files

0.0.1

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