Implementation of annotatorjs's Storage/Search API.
Project description
django-annotator
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:
poetry install
poetry run python3 ./demo.py
This will run the tests, after which a demo. page will be available at /demo.
Installation
The package can be installed via poetry:
poetry add django-annotator
Following installation it can be added to any Django project by updating the
INSTALLED_APPS, along with its dependencies:
INSTALLED_APPS = (
...
"rest_framework",
"django_filters",
"annotator",
)
As per the integration
documentation
for django-filter, DEFAULT_FILTER_BACKENDS must also be added to
settings.py:
REST_FRAMEWORK = {
"DEFAULT_FILTER_BACKENDS": (
"django_filters.rest_framework.DjangoFilterBackend",
),
},
Then run migrate to include the new tables from django-annotator:
poetry run python3 ./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
django-cors-headers.
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 django_annotator-2.2.11.tar.gz.
File metadata
- Download URL: django_annotator-2.2.11.tar.gz
- Upload date:
- Size: 90.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd6d8938b3a0c783890ef4ccf2fd950aa3727e512726b09f3c26c544c8306e1b
|
|
| MD5 |
153156fc07ae23cf532f40d0989eac0f
|
|
| BLAKE2b-256 |
712aa1c51ea5c74f6ae1025834ca2b24f76e23b6bea3caa0bfe8958c37398f44
|
Provenance
The following attestation bundles were made for django_annotator-2.2.11.tar.gz:
Publisher:
bump-release.yml on PsypherPunk/django-annotator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_annotator-2.2.11.tar.gz -
Subject digest:
bd6d8938b3a0c783890ef4ccf2fd950aa3727e512726b09f3c26c544c8306e1b - Sigstore transparency entry: 592287811
- Sigstore integration time:
-
Permalink:
PsypherPunk/django-annotator@d397f6c5da10e55b06df7f1dab08cba8c2432e55 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PsypherPunk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bump-release.yml@d397f6c5da10e55b06df7f1dab08cba8c2432e55 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_annotator-2.2.11-py3-none-any.whl.
File metadata
- Download URL: django_annotator-2.2.11-py3-none-any.whl
- Upload date:
- Size: 91.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c664f3043c79b301ce6a9901d6f6a961f60f755f40e35a91e9896c24164618
|
|
| MD5 |
87b169b21b2bcabbdf34e2c6d2b28e6d
|
|
| BLAKE2b-256 |
33613e6513f352a6f40a9e3569dfddcad67bbc99061e6ab9c210fbb4ed674de0
|
Provenance
The following attestation bundles were made for django_annotator-2.2.11-py3-none-any.whl:
Publisher:
bump-release.yml on PsypherPunk/django-annotator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_annotator-2.2.11-py3-none-any.whl -
Subject digest:
14c664f3043c79b301ce6a9901d6f6a961f60f755f40e35a91e9896c24164618 - Sigstore transparency entry: 592287818
- Sigstore integration time:
-
Permalink:
PsypherPunk/django-annotator@d397f6c5da10e55b06df7f1dab08cba8c2432e55 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PsypherPunk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bump-release.yml@d397f6c5da10e55b06df7f1dab08cba8c2432e55 -
Trigger Event:
push
-
Statement type: