An Arches application extension that provides location-based functionality and enhancements for Arches-based projects. Designed for easy integration with Historic England's Arches projects.
Project description
arches-he-location-extensions
An Arches application extension that provides location-based functionality and enhancements 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.22
Contents Overview
This Arches application contains extensions that provide location management and location-related functionality for Arches-based heritage inventory systems.
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.
Standard Development Setup
pip install -e '/path/to/arches_he_location_extensions[dev]'
This installs the app in editable mode, allowing you to make changes and see them reflected immediately without needing to reinstall.
Development Using arches-containers
This repository includes an arches-containers project configuration (requires version 1.1.0 or above), so you can import, activate, and start the system as follows:
-
Ensure Docker is installed and running.
-
Navigate to your workspace directory e.g.
~/workspaces/ahle_workspace -
Clone this repository if you haven't already.
-
Import the arches-container project configuration:
act import -p arches_he_location_extensions
-
Activate the project:
act activate -p arches_he_location_extensions
-
Start the system:
act up -
Once setup and webpack builds are complete, open a browser and navigate to
http://localhost:8002or useact viewin 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-location-extensions to your Arches project:
1. Add to your_project/pyproject.toml
Add the following to your pyproject.toml dependencies (in the [project] section):
dependencies = [
"arches==7.6.22",
"arches-he-location-extensions @ git+https://github.com/HistoricEngland/arches-he-location-extensions.git@main",
]
2. Update your_project/your_project/settings.py
Add to INSTALLED_APPS and ARCHES_APPLICATIONS:
INSTALLED_APPS = (
...
"your_project",
"arches_he_location_extensions",
)
ARCHES_APPLICATIONS = ("arches_he_location_extensions",)
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_location_extensions.urls")),
]
4. Run Database Migrations
Run the following command to apply any database migrations required by this app:
# If using 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 webpack
npm install
npm run build_development
6. Start Your Arches Project
python manage.py runserver
For more information on deploying your Arches project, see the Arches Deployment Guide.
License
This project is licensed under the GNU AGPLv3. See the LICENSE file for details.
Additional Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arches_he_location_extensions-1.0.0rc1.tar.gz.
File metadata
- Download URL: arches_he_location_extensions-1.0.0rc1.tar.gz
- Upload date:
- Size: 229.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fe206941b6087bb40b656a6278cc5c19846f4b3886d8cf7366848f42832a99b
|
|
| MD5 |
4260d8b59edb74bd59af98ff427ed649
|
|
| BLAKE2b-256 |
183e8c51a6bb2cbd67a166a05823a6d4dae087387be4a8b9829eb0cfb51e422d
|
File details
Details for the file arches_he_location_extensions-1.0.0rc1-py3-none-any.whl.
File metadata
- Download URL: arches_he_location_extensions-1.0.0rc1-py3-none-any.whl
- Upload date:
- Size: 44.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c03475a17b2bef85855c90c79dfc7dedf8cb30878546e85f04acf1d85673d4a
|
|
| MD5 |
0b0bc72e6b4bd96ae2b1d197147a88c2
|
|
| BLAKE2b-256 |
51b7e1d55fb1f2895eed5ad017e326af563eaec9d63c4c091871c2386667d1ab
|