Implementation of annotatorjs's Storage/Search API.
Project description
2.1.0
Django implementation of annotatorjs Storage.
Implements most of the methods as per the Core Storage/Search API documentation (root, index, create, read, update, delete and search).
To see a working demo:
virtualenv annotatorjs
cd annotatorjs
source bin/activate
git clone https://github.com/PsypherPunk/django-annotator.git
cd django-annotator
./demo.py
This will run the tests, after which a demo. page will be available at /demo.
Installation
The package can be installed via pip:
pip install django-annotator
Following installation it can be added to any Django project by updating the INSTALLED_APPS:
INSTALLED_APPS = (
...
"annotator",
...
)
Then run migrate to include the new tables from django-annotator:
./manage.py migrate
Annotator
The package relies on Annotator being installed in your project—see the documentation for details of its inclusion.
Settings
As per Annotator’s documentation, the root endpoint will return information in the format:
{
"name": "django-annotator-store",
"version": "2.1.0"
}
The name returned can be configured by setting ANNOTATOR_NAME in your settings (defaulting to the above).
django-cors-headers
If you have any issues with Cross-origin resource sharing (CORS), consider installing the django-cors-headers package.
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
File details
Details for the file django-annotator-2.1.0.tar.gz
.
File metadata
- Download URL: django-annotator-2.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5372ae987ce0bd0760e97fc06e53abb4d248c8dbc756e9bc1a083867b8e7a6a6 |
|
MD5 | fa2ea0ec3da898e82d0c643cc89c3b59 |
|
BLAKE2b-256 | 298aef351c236d07164189367b561c3fcf038052000b115aa294c1a5ccc34d11 |