Name Authority App for Django.
Project description
# Django Name [![Build Status](https://travis-ci.org/unt-libraries/django-name.svg?branch=master)](https://travis-ci.org/unt-libraries/django-name) [![Docs Status](https://img.shields.io/badge/docs-latest-blue.svg)](https://django-name.readthedocs.org) [![PyPI Version](https://img.shields.io/pypi/v/django-name.svg)](https://pypi.python.org/pypi/django-name)
Python Implementation of NACO Normalization Rules
The Name App is a tool originally developed for documenting names used by the UNT Libraries in its various digital library systems and collections. The app provides a consistent way of communicating the authorized version of a name and information about the name that is useful for reuse. The Name App generates a unique URL for each name that can be used to unambiguously refer to a person, organization, event, building or piece of software. In addition to an HTML page for each name there are a number of other formats available for each record including a MADS XML version and a simple JSON representation. A key feature of the UNT Name App is the ability to link to other vocabularies such as the Virtual International Authority File (VIAF), the Library of Congress Name Authority File, or Wikipedia.
---
## Installation
For installation instructions, see the [Installation](http://django-name.readthedocs.org/en/latest/installation.html) page in the docs.
## License
See LICENSE.
## Acknowledgements
django-name was developed at the UNT Libraries.
Contributors:
- [Joey Liechty](https://github.com/yeahdef)
- [Damon Kelley](https://github.com/damonkelley)
- [Lauren Ko](https://github.com/ldko)
- [Mark Phillips](https://github.com/vphill)
- [Gio Gottardi](https://github.com/somexpert)
## Developing
To take advantage of the dev environment that is already configured, you need to have Docker(>= 1.3) and Docker Compose installed.
Install [Docker](https://docs.docker.com)
Install Docker Compose
```sh
$ pip install docker-compose
```
Clone the repository.
```sh
$ git clone https://github.com/unt-libraries/django-name.git
$ cd django-name
```
Warm up the MySQL database. This only needs to be done when the database container doesn't exist yet. This will take about a minute once the image has been pulled.
```sh
$ docker-compose up -d mysql
```
Start the app and run the migrations.
```sh
# start the app
$ docker-compose up -d
# run the migrations
$ docker-compose run --rm web ./manage.py migrate
# optional: add a superuser in order to login to the admin interface
$ docker-compose run --rm web ./manage.py createsuperuser
```
The code is in a volume that is shared between your workstation and the web container, which means any edits you make on your workstation will also be reflected in the Docker container. No need to rebuild the container to pick up changes in the code.
However, if the requirements files change, it is important that you rebuild the web container for those packages to be installed. This is something that could happen when switching between feature branches, or when pulling updates from the remote.
```sh
# stop the app
$ docker-compose stop
# remove the web container
$ docker-compose rm web
# rebuild the web container
$ docker-compose build web
# start the app
$ docker-compose up -d
```
#### Running the Tests
To run the tests via Tox, use this command.
```sh
$ docker-compose run --rm web tox
```
The Tox configuration will test this app with Django 1.10 - 1.11.
To run the tests only with the development environment (i.e. with Django 1.11)
```sh
$ docker-compose run --rm web ./runtests.py
```
Note: This is the same command that Tox issues inside each test environment it has defined.
Python Implementation of NACO Normalization Rules
The Name App is a tool originally developed for documenting names used by the UNT Libraries in its various digital library systems and collections. The app provides a consistent way of communicating the authorized version of a name and information about the name that is useful for reuse. The Name App generates a unique URL for each name that can be used to unambiguously refer to a person, organization, event, building or piece of software. In addition to an HTML page for each name there are a number of other formats available for each record including a MADS XML version and a simple JSON representation. A key feature of the UNT Name App is the ability to link to other vocabularies such as the Virtual International Authority File (VIAF), the Library of Congress Name Authority File, or Wikipedia.
---
## Installation
For installation instructions, see the [Installation](http://django-name.readthedocs.org/en/latest/installation.html) page in the docs.
## License
See LICENSE.
## Acknowledgements
django-name was developed at the UNT Libraries.
Contributors:
- [Joey Liechty](https://github.com/yeahdef)
- [Damon Kelley](https://github.com/damonkelley)
- [Lauren Ko](https://github.com/ldko)
- [Mark Phillips](https://github.com/vphill)
- [Gio Gottardi](https://github.com/somexpert)
## Developing
To take advantage of the dev environment that is already configured, you need to have Docker(>= 1.3) and Docker Compose installed.
Install [Docker](https://docs.docker.com)
Install Docker Compose
```sh
$ pip install docker-compose
```
Clone the repository.
```sh
$ git clone https://github.com/unt-libraries/django-name.git
$ cd django-name
```
Warm up the MySQL database. This only needs to be done when the database container doesn't exist yet. This will take about a minute once the image has been pulled.
```sh
$ docker-compose up -d mysql
```
Start the app and run the migrations.
```sh
# start the app
$ docker-compose up -d
# run the migrations
$ docker-compose run --rm web ./manage.py migrate
# optional: add a superuser in order to login to the admin interface
$ docker-compose run --rm web ./manage.py createsuperuser
```
The code is in a volume that is shared between your workstation and the web container, which means any edits you make on your workstation will also be reflected in the Docker container. No need to rebuild the container to pick up changes in the code.
However, if the requirements files change, it is important that you rebuild the web container for those packages to be installed. This is something that could happen when switching between feature branches, or when pulling updates from the remote.
```sh
# stop the app
$ docker-compose stop
# remove the web container
$ docker-compose rm web
# rebuild the web container
$ docker-compose build web
# start the app
$ docker-compose up -d
```
#### Running the Tests
To run the tests via Tox, use this command.
```sh
$ docker-compose run --rm web tox
```
The Tox configuration will test this app with Django 1.10 - 1.11.
To run the tests only with the development environment (i.e. with Django 1.11)
```sh
$ docker-compose run --rm web ./runtests.py
```
Note: This is the same command that Tox issues inside each test environment it has defined.
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
django-name-2.0.0.tar.gz
(43.0 kB
view details)
Built Distribution
File details
Details for the file django-name-2.0.0.tar.gz
.
File metadata
- Download URL: django-name-2.0.0.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb20423d38198d66394a741ca15dfe8b1e007877c671b3c56f14d3f3bf12b67c |
|
MD5 | 1672a5c455e30964387a00c17c27a69a |
|
BLAKE2b-256 | 7bc28873c2cfafcd163f35d91e9d8da9e6b67da70b89c4f906d5201c5d53c278 |
File details
Details for the file django_name-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_name-2.0.0-py3-none-any.whl
- Upload date:
- Size: 53.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce4a666a11a2ee8b73b2383e5aa8c693c7e49c45b8c4ad5c909da3b4bdb99ee7 |
|
MD5 | a2b4e17c28fd59d3f42a33545901dde3 |
|
BLAKE2b-256 | befdfa0d9a18b8e342ba257e90b9dae0fb2b34b5324d14f00d5ecc3776141615 |