Skip to main content

Linked records for the core project

Project description

This Django reusable app contains the PID functionalities for a CDCS project.

Pre-requisites

For automated and manual install, the following software are needed:

  • python

  • pip

  • virtual env (conda or venv)

In addition, for manual setup, git is needed.

Installation

Automated installation

$ pip install core_linked_records_app

Manual installation

$ git clone https://github.com/usnistgov/core_linked_records_app.git
$ cd core_linked_records_app
$ python setup.py
$ pip install sdist/*.tar.gz

Configuration

Edit the setting.py file

Add the "core_linked_records_app" under INSTALLED_APPS as such:

INSTALLED_APPS = [
  ...
  "core_linked_records_app",
]

Add the necessary keys at the end of the file.

ID_PROVIDER_SYSTEMS = {
    "local": {
        "class": "core_linked_records_app.utils.providers.local.LocalIdProvider",
        "args": [SERVER_URI],
    },
    "handle.net": {  # Optional: if a Handle.net server is available.
        "class": "core_linked_records_app.utils.providers.handle_net.HandleNetSystem",
        "args": [
            "https://handle-net.domain/api/handles",
            SERVER_URI,
            "300%3ACDCS/ADMIN",
            "admin",
        ],
    },
}

Edit the urls.py file

Add the core_linked_records_app urls to the Django project as such.

url(r'^pid/', include("core_linked_records_app.urls")),

Tests

To play the test suite created for this package, download the git repository and run:

$ python runtests.py

Project details


Download files

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

Source Distribution

core_linked_records_app-1.0.0b3.tar.gz (16.9 kB view details)

Uploaded Source

File details

Details for the file core_linked_records_app-1.0.0b3.tar.gz.

File metadata

  • Download URL: core_linked_records_app-1.0.0b3.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.6.8

File hashes

Hashes for core_linked_records_app-1.0.0b3.tar.gz
Algorithm Hash digest
SHA256 2ecba09ee52c95cd5dee9115c526baa09c9c01dee4f25d1797681434d81ef1a8
MD5 1b26070fae9dc0c748d98135a15cf9e3
BLAKE2b-256 0073d377bf4412bd949b50d52364d998087fe4a7b9b29da723b98095750a7e62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page