preservation-database


Namepreservation-database JSON
Version 0.0.104 PyPI version JSON
download
home_pagehttps://gitlab.com/crossref/labs/preservationDatabase
SummaryA database builder for digital preservation information.
upload_time2023-04-09 16:57:50
maintainer
docs_urlNone
authorMartin Paul Eve
requires_python>=3.8
license
keywords digital preservation academic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Preservation Status Database Builder
Returns the preservation status of a Crossref DOI matched against mainstream digital preservation platforms.

![license](https://img.shields.io/gitlab/license/crossref/labs/preservation-database) ![activity](https://img.shields.io/gitlab/last-commit/crossref/labs/preservation-database) <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>

![Django](https://img.shields.io/badge/django-%23092E20.svg?style=for-the-badge&logo=django&logoColor=white) ![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white) ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) ![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black) ![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)

This application allows you to build a database of digital preservation sources and then to match a DOI against common digital preservation systems.

## Installation
The easiest install is via pip:
    
    pip install preservation-database

Then add "preservationdatabase" (no hyphen) to your list of INSTALLED_APPS.

## Usage

    export DJANGO_SETTINGS_MODULE=import_settings.settings

    Usage: python -m preservationdatabase.cli [OPTIONS] COMMAND [ARGS]...
    
    Options:
      --help  Show this message and exit.
    
    Commands:
        clear-cache                    Clear the import cache
        import-all                     Download and import all data (excluding...
        import-cariniana               Download and import data from Cariniana
        import-clockss                 Download and import data from CLOCKSS
        import-hathi                   Import data from Hathi (requires local...
        import-internet-archive        Import data from Internet Archive...
        import-internet-archive-items  Import item data from Internet Archive
        import-issnl                   Import ISSN-L mappings
        import-lockss                  Download and import data from LOCKSS
        import-ocul                    Import data from Ocul (requires local...
        import-pkp                     Download and import data from PKP's...
        import-portico                 Download and import data from Portico
        random-samples                 Return random samples that occur in and...
        show-archives                  Clear the import cache
        show-cache                     Show last fill date/times and cache status
        show-issn                      Show preservation items that match an ISSN
        show-preservation              Determine whether a DOI is preserved
        stamp-cache-today              Mark the latest imports as today

## Features
* Cariniana import.
* CLOCKSS import.
* HathiTrust import.
* Internet Archive import.
* Internet Archive item-level import.
* LOCKSS import.
* PKP PLN import.
* Portico import.
* Crossref DOI lookup.

## First-Run Setup
First, copy example_settings.py to settings.py and check settings.py to ensure that the database you want to use is set correctly. The default is db.sqlite. You should carefully read and check all of settings.py.

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': BASE_DIR / 'db.sqlite3',
        }
    }

Next, run the database build commands:

    python3 manage.py makemigrations
    python3 manage.py makemigrations preservation-database
    python3 manage.py migrate 

You should then have a working database into which you can import new preservation data.

## Archive Notes

### Internet Archive
The Internet Archive gives a KBART file for the Keepers Registry that we use as a primary ingest source: https://archive.org/details/ia-keepers-registry-kbart. However, this source is not the total coverage of the Internet Archive. However, sadly, the Internet Archive snapshots do not contain external identifiers and the container-level snapshots do not present coverage extent. While it is possible to download the entire 217GB FATCAT database snapshot, this will not be viable for many users. We have therefore stuck with the KBART file that Keepers uses. Extent of coverage in the Internet Archive may, therefore, be under-reported.

# Credits
* [Django](https://www.djangoproject.com/) for the ORM.
* [Git](https://git-scm.com/) from Linus Torvalds _et al_.
* [.gitignore](https://github.com/github/gitignore) from Github.
* [Rich](https://github.com/Textualize/rich) from Textualize.

&copy; Crossref 2023

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/crossref/labs/preservationDatabase",
    "name": "preservation-database",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Martin Paul Eve <meve@crossref.org>",
    "keywords": "digital preservation,academic",
    "author": "Martin Paul Eve",
    "author_email": "meve@crossref.org",
    "download_url": "https://files.pythonhosted.org/packages/32/52/bc59ecacd13b20096ce6c23e2814db803e815bf1c5e3da34e0013e3493ea/preservation-database-0.0.104.tar.gz",
    "platform": null,
    "description": "# Preservation Status Database Builder\nReturns the preservation status of a Crossref DOI matched against mainstream digital preservation platforms.\n\n![license](https://img.shields.io/gitlab/license/crossref/labs/preservation-database) ![activity](https://img.shields.io/gitlab/last-commit/crossref/labs/preservation-database) <a href=\"https://github.com/psf/black\"><img alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"></a>\n\n![Django](https://img.shields.io/badge/django-%23092E20.svg?style=for-the-badge&logo=django&logoColor=white) ![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white) ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) ![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black) ![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)\n\nThis application allows you to build a database of digital preservation sources and then to match a DOI against common digital preservation systems.\n\n## Installation\nThe easiest install is via pip:\n    \n    pip install preservation-database\n\nThen add \"preservationdatabase\" (no hyphen) to your list of INSTALLED_APPS.\n\n## Usage\n\n    export DJANGO_SETTINGS_MODULE=import_settings.settings\n\n    Usage: python -m preservationdatabase.cli [OPTIONS] COMMAND [ARGS]...\n    \n    Options:\n      --help  Show this message and exit.\n    \n    Commands:\n        clear-cache                    Clear the import cache\n        import-all                     Download and import all data (excluding...\n        import-cariniana               Download and import data from Cariniana\n        import-clockss                 Download and import data from CLOCKSS\n        import-hathi                   Import data from Hathi (requires local...\n        import-internet-archive        Import data from Internet Archive...\n        import-internet-archive-items  Import item data from Internet Archive\n        import-issnl                   Import ISSN-L mappings\n        import-lockss                  Download and import data from LOCKSS\n        import-ocul                    Import data from Ocul (requires local...\n        import-pkp                     Download and import data from PKP's...\n        import-portico                 Download and import data from Portico\n        random-samples                 Return random samples that occur in and...\n        show-archives                  Clear the import cache\n        show-cache                     Show last fill date/times and cache status\n        show-issn                      Show preservation items that match an ISSN\n        show-preservation              Determine whether a DOI is preserved\n        stamp-cache-today              Mark the latest imports as today\n\n## Features\n* Cariniana import.\n* CLOCKSS import.\n* HathiTrust import.\n* Internet Archive import.\n* Internet Archive item-level import.\n* LOCKSS import.\n* PKP PLN import.\n* Portico import.\n* Crossref DOI lookup.\n\n## First-Run Setup\nFirst, copy example_settings.py to settings.py and check settings.py to ensure that the database you want to use is set correctly. The default is db.sqlite. You should carefully read and check all of settings.py.\n\n    DATABASES = {\n        'default': {\n            'ENGINE': 'django.db.backends.sqlite3',\n            'NAME': BASE_DIR / 'db.sqlite3',\n        }\n    }\n\nNext, run the database build commands:\n\n    python3 manage.py makemigrations\n    python3 manage.py makemigrations preservation-database\n    python3 manage.py migrate \n\nYou should then have a working database into which you can import new preservation data.\n\n## Archive Notes\n\n### Internet Archive\nThe Internet Archive gives a KBART file for the Keepers Registry that we use as a primary ingest source: https://archive.org/details/ia-keepers-registry-kbart. However, this source is not the total coverage of the Internet Archive. However, sadly, the Internet Archive snapshots do not contain external identifiers and the container-level snapshots do not present coverage extent. While it is possible to download the entire 217GB FATCAT database snapshot, this will not be viable for many users. We have therefore stuck with the KBART file that Keepers uses. Extent of coverage in the Internet Archive may, therefore, be under-reported.\n\n# Credits\n* [Django](https://www.djangoproject.com/) for the ORM.\n* [Git](https://git-scm.com/) from Linus Torvalds _et al_.\n* [.gitignore](https://github.com/github/gitignore) from Github.\n* [Rich](https://github.com/Textualize/rich) from Textualize.\n\n&copy; Crossref 2023\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A database builder for digital preservation information.",
    "version": "0.0.104",
    "split_keywords": [
        "digital preservation",
        "academic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9ecf9d968cb13f58f0d0472a3a653cf6a93a22f0d0fce09c59cb1c197b0750b",
                "md5": "1da5416dea0ed84c67e4c211d02385ef",
                "sha256": "78f527bc2414b93d89248ce45bfb8ca95326c3c2e91f8bbd7acc466e45ed77fa"
            },
            "downloads": -1,
            "filename": "preservation_database-0.0.104-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1da5416dea0ed84c67e4c211d02385ef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 31288,
            "upload_time": "2023-04-09T16:57:43",
            "upload_time_iso_8601": "2023-04-09T16:57:43.543467Z",
            "url": "https://files.pythonhosted.org/packages/a9/ec/f9d968cb13f58f0d0472a3a653cf6a93a22f0d0fce09c59cb1c197b0750b/preservation_database-0.0.104-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3252bc59ecacd13b20096ce6c23e2814db803e815bf1c5e3da34e0013e3493ea",
                "md5": "d72200ba75006f7bda0b3c87672f4dfd",
                "sha256": "114cf7d85a196592c5605efbd75fa5886a19e70ab610da192f2b5b80541c7a0b"
            },
            "downloads": -1,
            "filename": "preservation-database-0.0.104.tar.gz",
            "has_sig": false,
            "md5_digest": "d72200ba75006f7bda0b3c87672f4dfd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 28656,
            "upload_time": "2023-04-09T16:57:50",
            "upload_time_iso_8601": "2023-04-09T16:57:50.456992Z",
            "url": "https://files.pythonhosted.org/packages/32/52/bc59ecacd13b20096ce6c23e2814db803e815bf1c5e3da34e0013e3493ea/preservation-database-0.0.104.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-09 16:57:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "preservation-database"
}
        
Elapsed time: 0.05415s