Skip to main content

arches-he-data-transformation

An Arches application which contains extensions relating to data transformation for Arches-based projects. Designed for easy integration with Arches projects (Historic England context).

Requirements

  • Python 3.10+ (Check the Arches python requirements and match your Python version)
  • Arches 7.6

Contents Overview

This Arches application contains extensions that allow the following:

  • Bulk HTML export using an ETL Module where the input is a CSV file containing resource instance ids in a column with the header 'resourceid' to identify the resources for bulk HTML export.

Installing for Development

For development purposes, you can treat this app as a standard Arches project. Either use the instructions for developing an Arches project or use the arches-containers configuration included in this repository.

  • For development (standard):

    pip install -e '/path/to/arches_he_data_transformation[dev]'
    

    This installs the app in editable mode, allowing you to make changes and see them reflected immediately without needing to reinstall.

  • For development using included arches-container configuration:

    Please ensure that you clone the arches-he-data-transformation repository into a directory that uses underscores instead of hyphens, as the arches-containers configuration expects this format. For example, clone it to arches_he_data_transformation.

    git clone https://github.com/HistoricEngland/arches-he-data-transformations.git arches_he_data_transformation
    

    This repository includes an arches-containers project configuration, so you can import, activate, and start the system as follows:

    1. Ensure Docker is installed and running.

    2. Navigate to your workspace directory (the root where your projects and containers live).

    3. Import the arches-container project configuration:

      act import -p arches_he_data_transformation
      
    4. Activate the project:

      act activate -p arches_he_data_transformation
      
    5. Start the system:

      act up
      
    6. Once setup and webpack builds are complete, open a browser and navigate to http://localhost:8002 or use act view in a terminal to open the project in your default browser.

    For more details, see the arches-containers documentation.

Using This App in Your Arches Project

Follow these steps to add arches-he-data-transformation to your Arches project:

1. Add to your_project/pyproject.toml

Add the following to your pyproject.toml dependencies (in the [project] section):

arches-he-data-transformation==1.0.2

Example:

dependencies = [
    "arches==7.6.22",
    "arches-he-data-transformation==1.0.2",
]

2. Update your_project/your_project/settings.py

Add the following to the appropriate locations:

ETL_MODULE_LOCATIONS.append("arches_he_data_transformation.etl_modules")

Add to INSTALLED_APPS and ARCHES_APPLICATIONS:

INSTALLED_APPS = (
    ...
    "your_project",
    "arches_he_data_transformation",
)
ARCHES_APPLICATIONS = ("arches_he_data_transformation",)

3. Update your_project/your_project/urls.py

Include the app's URLs (add project URLs before this):

urlpatterns = [
    # ... your project urls ...
    path("", include("arches_he_data_transformation.urls")),
]

4. Run Database Migrations

Run the following command to apply any database migrations required by this app:

if using the arches-containers, run this in the application container

python manage.py migrate

5. Install and Build Front-End Dependencies

From the directory containing your your_project/package.json:

if using arches-containers, run this in the application container or restart the webpack

npm install
npm run build_development

6. Start Your Arches Project

python manage.py runserver

License

This project is licensed under the GNU AGPLv3. See the LICENSE file for details.


For more information on deploying your Arches project, see the Arches Deployment Guide.

Download files

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

Source Distribution

arches_he_data_transformation-1.0.2.tar.gz (242.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_he_data_transformation-1.0.2-py3-none-any.whl (59.1 kB view details)

Uploaded Python 3

File details

Details for the file arches_he_data_transformation-1.0.2.tar.gz.

File metadata

File hashes

Hashes for arches_he_data_transformation-1.0.2.tar.gz
Algorithm Hash digest
SHA256 11f7640f5871c23201072c70868e5ab873a76053f0e0082532af103324dbb5e7
MD5 1783327172d6c5b9cd97ee497445327c
BLAKE2b-256 be8aef304d72896db257657138c10ac025c8aa9713ecf6a1ad389b114f7f335a

See more details on using hashes here.

Provenance

The following attestation bundles were made for arches_he_data_transformation-1.0.2.tar.gz:

Publisher: publish-to-pypi.yml on HistoricEngland/arches-he-data-transformation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arches_he_data_transformation-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for arches_he_data_transformation-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3cfd0d3a6fee57a21d44480bc451c846077ddc1e55aaffa0d2be787fd0dc437
MD5 9a96c05e931b881f09dc66bf4cf63fb0
BLAKE2b-256 9d8bd4b85a4ffd7c646854be2f03a22b2ddd89b75d5aa56bb1a640c20328503c

See more details on using hashes here.

Provenance

The following attestation bundles were made for arches_he_data_transformation-1.0.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on HistoricEngland/arches-he-data-transformation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.2 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