Skip to main content

DANE

The Distributed Annotation 'n' Enrichment (DANE) system handles compute task assignment and file storage for the automatic annotation of content.

This repository contains contains the building blocks for with DANE, such as creating custom analysis workers or submitting new task.

Installation

This package can be installed through pip:

pip install dane

Configuration

DANE components are configured through the dane.config module, which is described here: https://dane.readthedocs.io/en/latest/intro.html#configuration It is however noteable that, because all DANE components are expected to rely on it, some of the DANE-server, ElasticSearch and RabbitMQ configuration are included in the default config. As such it is recommended that you create a $HOME/.dane/config.yml or $DANE_HOME/config.yml which contain machine-wide settings for how to connect to these services, which involves specifying the following settings:

DANE:
    API_URL: 'http://localhost:5500/DANE/'
    MANAGE_URL: 'http://localhost:5500/manage/'
RABBITMQ:
    HOST: 'localhost'
    PORT: 5672
    EXCHANGE: 'DANE-exchange'
    RESPONSE_QUEUE: 'DANE-response-queue'
    USER: 'guest'
    PASSWORD: 'guest'
ELASTICSEARCH:
    HOST: ['localhost']
    PORT: 9200
    USER: 'elastic'
    PASSWORD: 'changeme'
    SCHEME: 'http'
    INDEX: 'your_dane_index'

The values given here are the default values.

Usage

Examples of how to use DANE can be found in the examples/ directory.

Local Development

We moved from setup.py & requirements.txt to a single pyproject.toml. For local builds and publishing we use poetry.

For local installation:

poetry install
poetry shell

After installation the following unit test should succeed:

python -m test.test_dane

To build a wheel + source package (will end up in dist directory):

poetry build

The wheel can be conveniently tested in e.g. your own DANE worker by installing it e.g. using pip:

pip install path_to_dane_wheel_file

or with poetry

poetry add path_to_dane_wheel_file

Breaking changes after 0.3.1

Since version 0.3.1 DANE must be imported in lowercase letters:

import dane

Before version 0.3.1 you should import using uppercase letters:

import DANE

Metadata

Release files for DANE 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DANE 0.4.3
File Size Uploaded
dane-0.4.3.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DANE 0.4.3
File Interpreter ABI Platform
dane-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 72.3 kB

Release files / dane-0.4.3.tar.gz

Download URL dane-0.4.3.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1af481db2e9c69ff69a4b28281ca1512ec5ef7fb15155616993b28666b99f63
BLAKE2b-256 checksum
How to use checksums
733931fd1af94b766e13cdb43846f0350178ce05aca11b4eaf0c5e036cf601fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.7 Linux/5.15.146.1-microsoft-standard-WSL2

Release files / dane-0.4.3-py3-none-any.whl

Download URL dane-0.4.3-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd695608caf43f9b9f943e5d0c4b35f5434f6d84b77d37d231bfc857333d61f6
BLAKE2b-256 checksum
How to use checksums
c2feae8eb08e052dd05a4b49cc69c42b01f500b7bdebda9480b7aca58ba4d2a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.7 Linux/5.15.146.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.12

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page