Skip to main content

Linguistic Data Hub API

Project description

CircleCI

LinHub API

LinHub is a Django-based API for managing linguistic data and annotations.

Installation

You can install LinHub as part of the Linalgo package:

pip install linalgo[hub]

Or install it directly:

pip install .

For development:

pip install -e .

Running the Server

After installation, you can run the server in several ways:

  1. Using the installed command:
linhub
  1. As a Python module:
python -m linhub
  1. Directly from source:
python linhub/management/commands/run.py

Configuration

You can configure LinHub using environment variables:

# Debug mode
export LINHUB_DEBUG=true

# Database settings
export LINHUB_DB_ENGINE=django.db.backends.postgresql_psycopg2
export LINHUB_DB_NAME=linhub
export LINHUB_DB_USER=postgres
export LINHUB_DB_PASSWORD=your_password
export LINHUB_DB_HOST=localhost
export LINHUB_DB_PORT=5432

# Site settings
export LINHUB_SITE_NAME="My LinHub"
export LINHUB_SITE_DOMAIN=my-linhub.example.com
export LINHUB_SITE_PROTOCOL=https

# Email settings
export LINHUB_NOTIFICATION_FROM_EMAIL="LinHub <noreply@example.com>"
export LINHUB_NOTIFICATION_TO_EMAILS="admin1@example.com,admin2@example.com"

Development

  1. Clone the repository:
git clone https://github.com/linalgo/linhub.git
cd linhub
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install development dependencies:
pip install -e ".[dev]"
  1. Run the development server:
linhub

API Documentation

Once the server is running, you can access:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Creating a task

TODO: Describe how to add a task

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

linhub-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linhub-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file linhub-0.1.0.tar.gz.

File metadata

  • Download URL: linhub-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linhub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c053a56a82eec0ae396995a078ec962f97295f3c7b43e4a362ffe5c553fe27bc
MD5 e3b6755d374cbd5c27934e4705d861f7
BLAKE2b-256 25e2750d7e45bf5ed313e6aae196b9c56b05a8d3919fabe4364f76d5674b72bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for linhub-0.1.0.tar.gz:

Publisher: pypi.yml on linalgo/linhub-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file linhub-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: linhub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linhub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc774a11bd4330b19f6278ae324ed16ea0e8bf293ca3fadfe3f135c4637db4d5
MD5 f678520b7e0da9d9e8a17a315c2061f7
BLAKE2b-256 de0ad7d5090c1bc9b10db0c7fdc9f04d2479e5b44f9779b85f893485fa97d25e

See more details on using hashes here.

Provenance

The following attestation bundles were made for linhub-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on linalgo/linhub-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page